Implement a queue which has addFront , addBack , popFront , popBack , and getSize in O(1) . Find out how close two words are to being anagrams of each o…
Question Statement Write a function that returns true if a given string is a palindrome (a palindrome is a string that is the same when reversed, if you…
Part 1 prompt: Stripe in Brazil is obliged to register customers’ transactions for each merchant with the central bank as an aggregated unit per day. Th…
Given an array A and a number b. Return a reordered array such that all numbers before b are smaller than or equal to b, and all numbers after b are gre…
Imagine you work at a recruitment company and are asked to develop a talent listings service designed to fan out user profiles seeking employment by pub…
You have an array containing N elements, and each element has a score. In each step, you can pop an element from the leftmost or the rightmost position…
Given an array of integers, find any one local minimum in the array. A local minimum is defined as an integer in the array that is less than or equal to…
Firewall Rules You are given a list of firewall rules. Each rule contains an action, either ALLOW or DENY , and an IPv4 address or CIDR block. Determine…
We have Uber HCV (High Capacity Vehicles) plying on the same routes in loops. Every route has a certain number of stops. The routes are represented as a…
The ocean is to the right of the buildings. A building has an ocean view if the building can see the ocean without obstructions. Formally, a building ha…
Consider a deck of normal playing cards. A playing card is represented as a string, where the first part represents the rank (one of Ace A, 2, 3, …, 1…
Build a simple endpoint that can filter by a time range, user, and currency. Some example use cases here would be to display some sort of transaction hi…
After creating an account, you will be assigned a unique access key. To authenticate with the ipapi API interface, simply append your access_key paramet…
Imagine you have an RPC server that produces log entries and you’re analyzing it offline. There are two entries for each call: one when the RPC starts a…
Interval Insertion You are given a set of non-overlapping intervals sorted by their start times, and another interval to insert. Insert the new interval…
Given a list of meetings, where a meeting has a start and an end time, determine the minimum number of rooms required to schedule all the meetings witho…