InterviewBit Problems


O(N) time and O(1) space solution C++ using 2 pointers [Sort Binary Linked List : Solved] (1)
Am I doing something redundant? [Palindrome Partitioning : Solved] (2)
Simple O(n) and O(1) space solution with comments [Best Time to Buy and Sell Stocks I : Solved] (1)
Very Easy Java Solution | Recursion | Optimal [Combinations : Solved] (1)
I was feeling lazy ! It's too cold One line answer C++ Code [Rotated Array : Unsolved] (1)
C++ | Longest Subarray Length | unordered_map O(N) [Longest Subarray Length : Solved] (2)
Amazing Sol || C++ [Clone Graph : Solved] (1)
Python solution using itertools (7 lines) [Count And Say : Solved] (1)
C++ | Can't get any easier | Map will give TLE | Use array [Subarray with equal occurences! : Solved] (1)
Test Case is wrong1 [Partition List : Unsolved] (1)
Whats wrong with my code [Pick from both sides! : Unsolved] (1)
What is OP of (1, 0) [N digit numbers with digit sum S : Unsolved] (3)
Very very easy java solution [Combinations : Solved] (1)
Explain the logic please [MAXSPPROD : Unsolved] (2)
Better problem description [Min Steps in Infinite Grid : Unsolved] (1)
What is wrorng in this [Longest Palindromic Substring : Unsolved] (1)
Solution mentioned is wrong in editorial [Kth Manhattan Distance Neighbourhood : Unsolved] (2)
C++ very simple and easy O(n) solution [Triplets with Sum between given range : Solved] (1)
O(n)time and o(n)space solution using sliding window [Subarrays with distinct integers! : Solved] (1)
Gives correct correct answer with custom I/P but shows WA for the same i/p when submitted [Fraction : Unsolved] (1)
Easy C++ Shortest Hashing solution [First Repeating element : Solved] (1)
C++ | DFS tweaked [Right view of Binary tree : Solved] (1)
C++ | bfs using STL <list> [Cousins in Binary Tree : Solved] (1)
Why this recursive sol is only partially correct ,help me out! [Construct Binary Tree From Inorder And : Unsolved] (2)
JS solution - o(n) [Multiply Strings : Solved] (1)
[C++][Power of 2] divide and check recursively [Power of 2 : Solved] (3)
Very Simple Code in C++ with Comments for Explanation [Populate Next Right Pointers Tree : Unsolved] (2)
Easy sliding window O(n) solution [Counting Subarrays! : Solved] (1)
Simple indented solution, Passes all cases [Search for a Range : Solved] (1)
O(n) and Constant Space Solution [Reverse the String : Solved] (1)