Implement a rate limiter
shouldAllowRequest() that returns true if the incoming requests have arrived at a rate less than or equal to specified rate, […]
shouldAllowRequest() that returns true if the incoming requests have arrived at a rate less than or equal to specified rate, […]
Given a string consisting of only 0, 1, A, B, C where A = AND B = OR C =
How will you print all permutations of characters in a string? 2026 Update: String Permutations — Three Approaches and the
Write a function to find the longest palindrome in a string. 2026 Update: Longest Palindrome — Character Frequency Approach There
You need to a number of floors in a building. There are 68 floors (numbered 1 to 64). Conditions: 1.
Missing Country Code Imagine you get a data set from a client that contains addresses from 150 countries all around
A man has to buy 7 floors in a building. Numbered floor 1 to 68. Conditions: 1. He cannot buy
You have 100 doors to be painted and 2 painters. 1 starts at one end and paints every other door.
IF You have 5 unbreakable light bulbs and a 80 floor building. Using fewest possible drops, determine how much of
2026 Update: Sorted Matrix Search — From O(mn) to O(m+n) If the matrix is sorted (rows and columns both non-decreasing),
Implement a function to return a ratio from a double function (0.25 -> 1/4). If the function tolerance is .01
Three people need to cross a weak bridge at night. They have just one turn and the bridge is only
How would you design a server that has to process a fair number of functions of a requests in a
Write a multiply function that multiples 2 integers without using “*”. 2026 Update: Integer Multiplication — Without Using Multiply Operator
Without marking nodes, find out if a linked list has a cycle in it or not. 2026 Update: Floyd’s Cycle