Coding Exercise Posts - page 26 of 43

Recent posts

Rotate List Left by K

1 minute read

Write a function that rotates a list of numbers to the left by k elements. Numbers should wrap around.

Rotate Linked List by K

less than 1 minute read

Given a linked list node and a non-negative integer k, rotate the list to the right by k places.

Roomba

1 minute read

A Roomba robot is currently sitting in a Cartesian plane at (0, 0). You are given a list of its moves that it will make, containing NORTH, SOUTH, WEST, and E...

Rookie Mistake

1 minute read

You’re given a string s containing letters of three types, R, B, and ..

Roman Numeral to Integer

2 minute read

Given a string numeral representing a Roman numeral, convert it to an integer.

Robinhood

1 minute read

You are given integers n, e, o, t. You have n dollars in principal that you invested in the stock market. Given the stock market alternates between first ret...

Revolving Door

3 minute read

You are given a list of list of integers requests. requests[i] contains [time, direction] meaning at time time, a person arrived at the door and either wante...

Reverse Words

less than 1 minute read

Given a string s of words delimited by spaces, reverse the order of words.

Reverse Sublists to Convert to Target

1 minute read

Given two lists of integers nums, and target, consider an operation where you take some sublist in nums and reverse it. Return whether it’s possible to turn ...

Reverse a Linked List

less than 1 minute read

Given a singly linked list node, return its reverse.

Repeating String

less than 1 minute read

Given a lowercase alphabet string s, return whether it’s a repeating string.

Repeated K-Length Substrings

less than 1 minute read

Given a string s and an integer k, return the number of k-length substrings that occur more than once in s.