Implement a rate limiter
shouldAllowRequest() that returns true if the incoming requests have arrived at a rate less than or equal to specified rate,
Boolean String Value
Given a string consisting of only 0, 1, A, B, C where A = AND B = OR C =
Print String Permutations
How will you print all permutations of characters in a string?
Longest palindrome in a string
Write a function to find the longest palindrome in a string.
Prime number problem
You need to a number of floors in a building. There are 68 floors (numbered 1 to 64). Conditions: 1.
Missing country code
Missing Country Code Imagine you get a data set from a client that contains addresses from 150 countries all around
Prime number problem
A man has to buy 7 floors in a building. Numbered floor 1 to 68. Conditions: 1. He cannot buy
100 doors to be painted
You have 100 doors to be painted and 2 painters. 1 starts at one end and paints every other door.
5 Unbreakable Light Bulbs and a 80 Floor Building
IF You have 5 unbreakable light bulbs and a 80 floor building. Using fewest possible drops, determine how much of
Implement a Function to Return a Ratio
Implement a function to return a ratio from a double function (0.25 -> 1/4). If the function tolerance is .01
Three People on a Weak Bridge
Three people need to cross a weak bridge at night. They have just one turn and the bridge is only
Server to Process Fair Number of Functions
How would you design a server that has to process a fair number of functions of a requests in a
Function that Multiples 2 Integers
Write a multiply function that multiples 2 integers without using “*”.