In this lesson, we find the number of positions where
Coding Interviews Questions
In this two-sum problem, we use various approaches to solve the problem from brute force to an optimized approach. We also discuss the take-offs and talk about complexity analysis.
An array is called monotonic if the index of each element increases from the first to the last or decreases from the first to the last.
In the kth bit set/unset problem, we need to write a program that checks whether the kth bit of a number is either 1 or 0.
In subsets or powerset problem, we need to write a program that finds all possible subsets (the power set) of a given input. The solution set must not contain duplicate elements.
In this article, we'll learn various ways to find the missing number in an array. We use a memoization approach, a mathematical approach, and the most optimized way using the XOR operator.
In this article, we'll learn various ways to reverse strings in Java. An algorithmic approach with a flow chart and steps. Using java API methods to solve this problem and rotate kth elements or characters in an array.