Rotate List Left by K
Write a function that rotates a list of numbers to the left by k elements. Numbers should wrap around.
Write a function that rotates a list of numbers to the left by k elements. Numbers should wrap around.
Given a linked list node and a non-negative integer k, rotate the list to the right by k places.
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...
You’re given a string s containing letters of three types, R, B, and ..
Given a string numeral representing a Roman numeral, convert it to an integer.
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...
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...
Given a string s of words delimited by spaces, reverse the order of words.
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 ...
Given a singly linked list node, return its reverse.
Given a lowercase alphabet string s, return whether it’s a repeating string.
Given a string s and an integer k, return the number of k-length substrings that occur more than once in s.