# InterviewBit Problems

Good Ranges : Solved Two out of Three : Unsolved Longest Common Prefix : Solved Height of every node in a tree : Unsolved Breaking Chocolate Bars : Unsolved Sort stack using another stack : Unsolved TEMPLATES : Unsolved Next Permutation : Solved Burn a Tree : Unsolved Find the Defective Ball II : Solved Subarrays Xor less Than B : Unsolved Distribute candies : Unsolved Valid Email Address : Solved Gates of Heaven : Unsolved KEEP SWAPPING : Unsolved Design Messenger : Solved Vowels : Unsolved Clone a linked list : Unsolved Starting indices of the substrings in s : Unsolved Numbers with most occurences : Unsolved Task Scheduler : Solved CHOOSE4 : Unsolved Word Break : Unsolved Count Complete Tree Nodes : Solved Sum binary tree or not : Unsolved Redundant Braces : Solved Right view of Binary tree : Solved Subarrays with B Different Integers : Unsolved QUIRKS MODE : Solved WiFi Routers : Unsolved Special Integer : Solved Counting Triangles : Unsolved Sorted Permutation Rank : Solved LOOP_CMPL2 : Solved Merge K sorted arrays! : Solved Painter's Partition Problem : Unsolved Subarrays Xor less Than B : Solved REC_CMPL1 : Unsolved Height of every node in a tree : Solved KEEP SWAPPING : Solved Greatest Common Divisor : Solved Points on the Straight Line : Solved Valid phone number : Solved Unique Binary Search Trees : Unsolved Even Reverse : Solved Number of sextuplets (or six values) th : Unsolved ARRAY_2D : Solved Daughters' Ages : Solved The Sequence game : Unsolved WiFi Routers : Solved Valid Email Address : Unsolved Count Delete : Unsolved Distance between Nodes of BST : Solved 0/1 String : Solved Balanced Binary Tree : Solved Number of Hosts per Subnet : Unsolved Distribute candies : Solved Next Greater Circular Array! : Unsolved Valid Number : Solved Populate Next Right Pointers Tree : Unsolved Shortest Distance in a graph with two d : Solved Spider's Web : Unsolved Majority Element : Unsolved Longest Palindromic Subsequence : Solved MATH_BUG01 : Solved Minimum Number of Refueling Stops : Unsolved NESTED_CMPL : Solved maximum sum of array with no repeating : Unsolved Palindromic Substrings Count : Unsolved Micro and Lucky Tree : Unsolved Sort stack using another stack : Solved Clone a linked list : Solved Implement StrStr : Unsolved Paint House! : Solved ARRAY_BUG : Solved Numbers with most occurences : Solved Prime Numbers : Solved Longest Subarray Length : Solved Max Product Subarray : Solved TEMPLATES : Solved Transpose File : Solved Size three subsequences divisible by B : Unsolved Chocolate Distribution : Unsolved Subarrays with B Different Integers : Solved Find Rectangle in binary matrix : Unsolved EDIBLE STRINGS : Unsolved Next Greater Circular Array! : Solved Job Sequencing : Solved Another Coin Problem : Solved Number of Hosts per Subnet : Solved Repeat and Missing Number Array : Solved GCD_CMPL : Unsolved Thread : Solved QUIRKS MODE : Unsolved Convert an arbitrary Binary Tree to a t : Solved maximum sum of array with no repeating : Solved Spinning Disc's Direction : Solved Count Delete : Solved Spinning Disc's Direction : Unsolved Jelly Beans Jars : Solved Treasure Hunt : Unsolved Color of the last ball : Unsolved NESTED_CMPL2 : Solved Maximum Depth : Unsolved Equilateral Triangles using Toothpicks : Solved Distinct Primes : Solved Convert to Palindrome : Unsolved Max Sum Without Adjacent Elements : Solved Good Subarrays : Unsolved Arithmetic operators on Numbers : Solved Micro and Lucky Tree : Solved Divide the Cake : Solved Meeting rooms : Solved Min Steps in Infinite Grid : Unsolved Egg Drop Problem! : Unsolved First Repeating element : Unsolved Maximum difference between two elements : Unsolved Color of the last ball II : Unsolved World Trips : Solved Measure Time by Burning Ropes : Unsolved Genie and Hats : Solved Going back to OS : Solved Measure Time by Hourglass : Solved Arrange Cubes : Solved Palindrome Partitioning : Solved Activity Selection : Unsolved Swap List Nodes in pairs : Unsolved Is Rectangle? : Solved Cats and a Square : Solved Thread : Unsolved Maximum Depth : Solved Transpose File : Unsolved Substring Concatenation : Solved Max Product Subarray : Unsolved Palindrome Partitioning II : Solved EDIBLE STRINGS : Solved Helium Balloon : Solved Activity Selection : Solved Make a Statement : Solved Two Numbers : Solved LONGEST COMMON SUBSTRING : Unsolved Excel Column Title : Unsolved Min Elevator Trips : Unsolved Merge Overlapping Intervals : Unsolved Flip Counter : Solved Minimum Number of Refueling Stops : Solved Helium Balloon : Unsolved Good Subarrays : Solved RECTANGLE SUM : Unsolved Diffk II : Solved Number of sextuplets (or six values) th : Solved Arithmetic operators on Numbers : Unsolved Train Station : Solved Sum binary tree or not : Solved Allocate Books : Solved Distribute in Circle! : Unsolved Container With Most Water : Unsolved Good Processor : Unsolved First Repeating element : Solved Quarters on a Table : Solved Divisor Sequences : Solved Divide Gold Bar : Unsolved Maximum level sum : Solved Evaluate Expression To True : Unsolved Seats : Solved Knight On Chess Board : Solved Maximum difference between two elements : Solved Next Number : Solved Gates of Heaven : Solved Find Rectangle in binary matrix : Solved Ways to make array non decreasing : Unsolved Cross the Bridge II : Solved BALLS IN BOXES : Unsolved Color of the last ball : Solved Measure Milk by Cans : Solved Binary Tree Paths : Unsolved Rook Movement : Unsolved Blindfolded Coin Toss : Unsolved Blindfolded Coin Toss : Solved Ratio of Boys and Girls : Unsolved Best Time to Buy and Sell Stocks II : Solved Celebrity Problem : Unsolved World Trips : Unsolved Six Colored Cubes : Unsolved Last Palindromic Date : Unsolved Last Palindromic Date : Solved Binary Tree Paths : Solved Cats and a Square : Unsolved RECTANGLE SUM : Solved Next Number II : Unsolved Longest path in a subtree : Unsolved Matrix Search : Unsolved Remove Duplicate Letters : Solved Reverse Alternate K Nodes : Unsolved Capture Regions on Board : Unsolved LONGEST COMMON SUBSTRING : Solved Bee Travel : Unsolved Roads and Libraries : Unsolved Compare Version Numbers : Unsolved Reverse Bits : Solved Arithmetic operators on Strings : Solved City Tour : Solved Distinct Subsequences : Solved Find the Defective Ball II : Unsolved Combination Sum : Unsolved Pick from both sides! : Unsolved Palindromic Substrings Count : Solved Square Root of Integer : Solved Two Numbers : Unsolved One Mile on the Globe : Solved EZPZ : Solved Deterministic Finite Automaton : Unsolved Deterministic Finite Automaton : Solved Scores : Solved Flip Array : Solved Trailing Zeros in Factorial : Solved Byes : Unsolved Ten Black and White Socks : Unsolved Max Sum Contiguous Subarray : Solved Distinct Initial Matrices : Solved Rook Movement : Solved Region in BinaryMatrix : Unsolved Maximum Sum Triplet : Unsolved Points on the Straight Line : Unsolved Cross the Bridge II : Unsolved Trailing Zeroes : Unsolved Minimum cost to connect cities : Unsolved BALLS IN BOXES : Solved Ants on a Triangle : Unsolved Tiling With Dominoes : Solved Chocolate Distribution : Solved Design Messenger : Unsolved Common Nodes in Two Binary Search Trees : Solved Celebrity Problem : Solved DEVICE CROSSOVER : Solved PRETTYPRINT : Unsolved Remove Invalid Parentheses : Unsolved Burst Balloons : Unsolved Longest Common Subsequence : Unsolved Ways to make array non decreasing : Solved Dinner Hand Shakes : Solved Minimum cost to connect cities : Solved Sort List : Unsolved Increasing SubArrays : Solved Remove Element from Array : Solved Min Stack : Solved Design URL Shortener Remove Invalid Parentheses : Solved List Cycle : Solved Evaluate Expression : Solved Divide Gold Bar : Solved Burst Balloons : Solved Next Similar Number : Unsolved Distinct Initial Matrices : Unsolved Shortest Path in Simple Graph : Unsolved Longest path in a subtree : Solved Arithmetic operators on Strings : Unsolved Subarray with equal occurences! : Unsolved Modular Expression : Solved Dinner Hand Shakes : Unsolved Transform CSV : Solved Increasing SubArrays : Unsolved Get Mode Array Updates : Unsolved PRODDISC : Unsolved Min Jumps : Unsolved Min Jumps : Solved Reverse pairs : Unsolved Cross the Bridge : Unsolved Byes : Solved Number of 1 Bits : Unsolved Marbles in Jar : Unsolved NEIGH : Unsolved Valid Binary Search Tree : Unsolved Prisoners and Poison : Solved Genie and Hats : Unsolved WoodCutting Made Easy! : Unsolved Power of 3 : Unsolved Max Chunks To Make Sorted : Solved Profit Maximisation : Unsolved Count Total Set Bits : Unsolved Gcd Ordering : Unsolved The Ghost Type : Unsolved Build Identical Trees : Solved Tree coloring with three colors : Unsolved Equal Tree Partition : Unsolved Decode String : Unsolved Input and Output : Solved Largest BST Subtree : Unsolved Treasure Hunt : Solved Transform CSV : Unsolved Valid BST from Preorder : Unsolved IIFE : Solved Coin Sum Infinite : Unsolved Reverse the String : Unsolved Grep : Solved Palindrome Pairs : Unsolved Profit Maximisation : Solved PRODDISC : Solved Fraction : Solved One Mile on the Globe : Unsolved Magician and Chocolates : Unsolved The Ghost Type : Solved Decode String : Solved Node distance C in binary tree : Unsolved Unique Binary Search Trees II : Solved Longest Consecutive Sequence : Unsolved Pattern Printing -2 : Unsolved ITS TIME FOR SOME DBMS : Unsolved Path Sum : Unsolved Add Two Numbers as Lists : Unsolved Power of 3 : Solved Input and Output : Unsolved Next Number II : Solved Rain Water Trapped : Unsolved Shortest Distance in a Maze : Unsolved Shortest Distance in a Maze : Solved Highly Consistent Database : Solved Max Continuous Series of 1s : Unsolved Ugly Pairs : Unsolved WHILE_CMPL : Unsolved Tree coloring with three colors : Solved Search in a row wise and column wise so : Unsolved List Cycle : Unsolved Atoi : Solved Sub-matrix Sum Queries : Unsolved Node distance C in binary tree : Solved Combine Maximum : Solved Useful Extra Edges : Solved Identical Binary Trees : Unsolved KEEP SWAPPING 2 : Unsolved Deepu and girlfriend : Unsolved N max pair combinations : Solved Longest Subarray Difference : Solved Balanced Parantheses! : Solved FRUIT PACKETS : Unsolved Matrix Permutation : Unsolved Are they same - I : Solved Bus and Passenger : Unsolved Ugly Pairs : Solved Pattern Printing -2 : Solved Minimum Difference Subsets! : Solved Cut the rod : Unsolved ZigZag Level Order Traversal BT : Solved Variables and Types : Solved Quarters on a Table : Unsolved LOOP_CMPL2 : Unsolved Shortest Distance from All Buildings : Unsolved Minimum Cost to Hire K Workers : Unsolved Single Element in a Sorted Array : Solved Sub-matrix Sum Queries : Solved Ways to form Max Heap : Solved CHOOSE1 : Unsolved K DISTANCE : Unsolved Permutation Swaps! : Solved Bus and Passenger : Solved Solve sub-sequences and return OR : Solved Time Based Key-Value Store : Unsolved Design Twitter Regular Expression Match : Solved Marbles in Jar : Solved Design Linked list : Unsolved Design Search Typeahead Sorted Insert Position : Unsolved Grep Log : Solved Remove Duplicates from Sorted Array : Solved NEIGH : Solved Palindrome Pairs : Solved Highly Consistent Database : Unsolved Tushar's Birthday Party : Solved Pattern Printing -1 : Unsolved Shortest Distance from All Buildings : Solved Bee Travel : Solved EZPZ : Unsolved REC_CMPL3 : Unsolved 2-Sum Binary Tree : Solved Generate all Parentheses II : Solved Count of rectangles with area less than : Solved Ratio of Boys and Girls : Solved N max pair combinations : Unsolved Find subsequence : Unsolved Fastest Horses : Solved Delete Edge! : Unsolved MIN MAX RIDDLE : Unsolved LOOP_CMPL : Solved Variables and Types : Unsolved Kth Node From Middle : Unsolved Sum of all Submatrices : Unsolved Left view of binary tree : Unsolved ADD OR NOT : Unsolved Kingdom War : Unsolved Length of longest consecutive ones : Solved NESTED_CMPL2 : Unsolved Intersecting Chords in a Circle : Unsolved Remove Duplicates from Sorted List : Solved Grep Log : Unsolved Deepu and girlfriend : Solved Pattern Printing -1 : Solved Sum of all Submatrices : Solved Cousins in Binary Tree : Unsolved Stringoholics : Unsolved Hotel Reviews : Unsolved Hotel Bookings Possible : Solved Consecutive Numbers Sum : Solved Good Processor : Solved Highly Available Database WINNER NAME : Unsolved Shortest Path in Simple Graph : Solved Rotate List : Unsolved Tenth Line : Unsolved ADD OR NOT : Solved Fake Note : Unsolved Valid Sudoku : Unsolved Lines in a given range : Solved Palindrome String : Unsolved Best Time to Buy and Sell Stocks I : Unsolved LOOP_CMPL : Unsolved Divisibility by 8 : Unsolved Preorder Traversal : Unsolved Consecutive Number Sum : Solved Count Right Triangles : Unsolved Pairs With Given Xor : Unsolved Design Cache : Solved Best Time to Buy and Sell Stocks I : Solved Divide the Cake : Unsolved Smallest Subarray : Unsolved Max Non Negative SubArray : Solved Measure Time by Hourglass : Unsolved Equal Average Partition : Unsolved REC_CMPL2 : Unsolved Conditions and If-Else : Solved Max Min : Solved Longest valid Parentheses : Solved Pascal Triangle : Unsolved Boundary Traversal Of Binary Tree : Solved Justified Text : Unsolved Accessibility : Solved Next Greater Number BST : Unsolved Equal : Unsolved Sum of minimum and maximum elements of : Unsolved MIN MAX RIDDLE : Solved 132 Pattern : Unsolved All Factors : Unsolved Eggs and Building : Unsolved Divisibility by 8 : Solved IIFE : Unsolved Compute nCr % m : Unsolved WINNER NAME : Solved Coins in a Line : Unsolved Design Cache : Unsolved Rearrange the array : Unsolved Max Chunks To Make Sorted II : Unsolved Path in Directed Graph : Unsolved SUBTRACT : Unsolved LEFTOVER : Unsolved LEFTOVER : Solved Actors and their Movies : Solved All Unique Permutations : Unsolved Order them : Unsolved Accessibility : Unsolved Sum of divisor of N factorial : Unsolved Regular Expression II : Unsolved Single Number II : Solved Stairs : Solved Allocate Books : Unsolved Noble Integer : Solved Try some SQL : Unsolved Total Moves For Bishop! : Unsolved Count Right Triangles : Solved Insertion Sort List : Unsolved Sharding a Database : Solved Find the Defective Ball : Unsolved Permutation Swaps! : Unsolved Conditions and If-Else : Unsolved Water Flow : Solved Compute nCr % m : Solved BST nodes in a range : Unsolved Subarray Sum Equals K : Unsolved Find Permutation : Solved Count the primes : Unsolved Justified Text : Solved Functions : Solved Parity Queries : Unsolved Min Stack : Unsolved MinimiZe : Solved Painter's Partition Problem : Solved Bulbs : Unsolved ITS TIME FOR SOME DBMS : Solved 132 Pattern : Solved Mod Sum : Unsolved Remove Duplicates from Sorted Array II : Solved Highest Product : Unsolved Rearrange the array : Solved Kth Smallest Element In Tree : Unsolved Step by Step : Unsolved Best Time to Buy and Sell Stock with Co : Unsolved Maximum array sum after B negations : Unsolved Highest Product : Solved 3 Length Paths : Solved Remove the Substring : Unsolved Longest Subarray Difference : Unsolved SUBTRACT : Solved Patch the tire : Solved Shortest Unique Prefix : Unsolved Best Time to Buy and Sell Stock atmost : Solved Sharding a Database : Unsolved ODD SUM : Unsolved Remove Nth Node from List End : Solved Functions : Unsolved Minimum Paratheses! : Unsolved Modular Expression : Unsolved 100 People in a Circle : Solved Order them : Solved Try some SQL : Solved Level Order : Unsolved Longest Palindromic Subsequence : Unsolved Check two bracket expressions : Solved K DISTANCE : Solved Ways to color a 3xN Board : Unsolved Find the Defective Ball : Solved Maximum array sum after B negations : Solved Minimum Paratheses! : Solved JAVASCRIPT TAG : Solved Sum of divisor of N factorial : Solved ODD SUM : Solved Leaders in an array : Solved Something on IP's : Unsolved Best Time to Buy and Sell Stock with Co : Solved CHOOSE2 : Solved Sort by Frequency : Unsolved Parity Queries : Solved Subarray Sum Equals K : Solved MODIFIED SEARCH : Unsolved Design URL Shortener : Solved Word Ladder I : Solved Compute nCr % p : Unsolved JAVASCRIPT TAG : Unsolved 3 Length Paths : Unsolved Black Shapes : Solved Minimum operations of given type to mak : Unsolved Mod Sum : Solved Increasing Path in Matrix : Unsolved Next Greater Number BST : Solved Binary Representation : Solved The Sequence game : Solved Finding Position : Solved The Tribe : Unsolved Dungeon Princess : Unsolved LRU Cache : Unsolved Design URL Shortener : Unsolved Word Ladder II : Unsolved Steps to get out of complete binary tre : Unsolved Maximum Rectangle : Unsolved Find duplicate rows in a binary matrix : Solved Prime Subarrays : Unsolved Prime Subarrays : Solved Wizards and Drawves : Solved Compute nCr % p : Solved Find subsequence : Solved MinimiZe : Unsolved Difference between odd and even level : Unsolved GREEDY PICK : Unsolved Pair With Given Difference : Unsolved Convert the amount in number to words : Solved Kingdom War : Solved Array and Prime Divisors : Unsolved N digit numbers with digit sum S : Solved MODIFIED SEARCH : Solved Two out of Three : Solved REMOVE DUPLICATES : Unsolved Light Switches in the Cellar : Unsolved Grep : Unsolved Smallest Subarray : Solved Balance Array : Unsolved Best Time to Buy and Sell Stock with Tr : Unsolved Search for a Range : Unsolved Breaking Chocolate Bars : Solved Rotated Arrays : Unsolved CHOOSE3 : Solved Merge elements : Unsolved Zigzag String : Unsolved Six Colored Cubes : Solved Sudoku : Solved Starting indices of the substrings in s : Solved Into Blocks : Unsolved Balanced Brackets Queries : Unsolved Max Chunks To Make Sorted II : Solved Cousins in Binary Tree : Solved Array and Prime Divisors : Solved Maximum Rectangle : Solved Random Attendance : Unsolved Matrix Permutation : Solved Subsets II : Solved Delete Edge! : Solved GREEDY PICK : Solved BST Iterator : Solved Another chocolate game : Solved REMOVE DUPLICATES : Solved Next Pointer Binary Tree : Unsolved Regular Expression Match : Unsolved Common Nodes in Two Binary Search Trees : Unsolved Build Identical Trees : Unsolved Partitions : Solved Remove K Digits : Unsolved Inorder Traversal : Solved Longest Common Prefix II : Solved Sort List : Solved Something on IP's : Solved Difference between odd and even level : Solved Convert Integer To Roman Number : Solved Number of Squareful Arrays : Solved Into Blocks : Solved Different Bits Sum Pairwise : Unsolved Jelly Beans Jars : Unsolved Max Distance : Unsolved Convert the amount in number to words : Unsolved Recover Binary Search Tree : Unsolved Check Palindrome! : Unsolved Kth Permutation Sequence : Solved ARRAY_BUG : Unsolved Stairs : Unsolved Best Time to Buy and Sell Stock with Tr : Solved TOP VIEW : Solved Fake Note : Solved Maximum Sum Triplet : Solved Random Attendance : Solved Maximum Frequency stack : Unsolved Balanced Brackets Queries : Solved Diameter of Binary Tree : Unsolved Maximum Longest Common Subsequence : Unsolved Maximum Longest Common Subsequence : Solved NEXTGREATER : Unsolved Get Mode Array Updates : Solved Longest Common Prefix II : Unsolved Remove K Digits : Solved Anagram Substring Search : Unsolved Commutable Islands : Unsolved Light Switches in the Cellar : Solved Vowels : Solved Large Factorial : Solved Rotated Arrays : Solved Ways to Decode : Unsolved NUMRANGE : Solved 0-1 Knapsack : Unsolved K-th character of decrypted string : Solved Add Binary Strings : Unsolved Measure Time by Burning Ropes : Solved Spiral Order Matrix II : Unsolved Swap Forward And Backward Slash : Unsolved Word Ladder II : Solved Heater and Houses : Unsolved Equal : Solved Train Station : Unsolved Reverse integer : Solved Merge Two BSTs : Unsolved Different Bits Sum Pairwise : Solved First Scheduler : Unsolved Sort an array according to the order de : Unsolved Diameter of Binary Tree : Solved B XOR : Unsolved Count Permutations of BST : Solved Anagram Substring Search : Solved Count Element Occurence : Solved Remove Punctuations : Unsolved Longest Increasing Subsequence : Unsolved Reverse Linked List : Solved Count of pairs with the given sum II : Unsolved Substring Concatenation : Unsolved Ways to color a 3xN Board : Solved Spider's Web : Solved Greatest Common Divisor : Unsolved Maximum Path in Triangle : Solved Scores : Unsolved Maximum level sum : Unsolved Simplify Directory Path : Solved Valid Ip Addresses : Solved Max Sum Path in Binary Tree : Unsolved Verify Prime : Solved Maximum coin in a tree : Unsolved Sort by Frequency : Solved Maximum Frequency stack : Solved Count the primes : Solved Merge K Sorted Lists : Unsolved B XOR : Solved Count of pairs with the given sum II : Solved ARRAY_IMPL1 : Solved Evaluate Expression To True : Solved Make a Statement : Unsolved Reduce the string : Unsolved The square game : Unsolved Sort an array according to the order de : Solved MATH_BUG01 : Unsolved Merge Two BSTs : Solved Aggressive cows : Solved Minimum Swaps 2 : Solved Reverse pairs : Solved Three Numbers : Solved Find duplicate rows in a binary matrix : Unsolved Longest Increasing Subsequence : Solved First Scheduler : Solved Construct Binary Tree From Inorder And : Solved Heater and Houses : Solved Substring Game : Unsolved Convert Integer To Roman Number : Unsolved REC_CMPL2 : Solved Lines in a given range : Unsolved Max Depth of Binary Tree : Solved Leaf nodes from Preorder of a Binary Se : Unsolved SUMMATION : Unsolved Pretty Json : Solved SUMMATION : Solved Design Search Typeahead : Solved All Factors : Solved Maximum Product Increasing Subsequence : Unsolved Valid BST from Preorder : Solved Meeting rooms : Unsolved Intersecting Chords in a Circle : Solved Next Permutation : Unsolved Path in Directed Graph : Solved Box Stacking Problem : Unsolved Check divisibility by 7 : Unsolved The square game : Solved REVERSE OR NOT : Unsolved Smallest Good Base : Unsolved Queen Attack : Solved Leaders in an array : Unsolved Maximum Unsorted Subarray : Unsolved Delete and Conquer : Unsolved Duplicates in binary tree : Solved Maximum coin in a tree : Solved Check divisibility by 7 : Solved Too Odd to be a Palindrome : Unsolved Longest Subarray Sum B : Unsolved In an array : Unsolved Triplets with Sum between given range : Solved Task Scheduler : Unsolved Assign Mice to Holes : Solved Design Search Typeahead : Unsolved Median of stream of running integers : Solved Minimum Difference Subsets! : Unsolved Queries On A Tree : Unsolved Remove Punctuations : Solved Count of paths in a grid : Solved PRETTYPRINT : Solved AMORTIZED1 : Unsolved Boundary Traversal Of Binary Tree : Unsolved Leaf nodes from Preorder of a Binary Se : Solved Rotate Matrix : Unsolved Smallest sequence with given Primes : Solved 2-Sum Binary Tree : Unsolved LCA of array : Unsolved Too Odd to be a Palindrome : Solved 100 People in a Circle : Unsolved Tiling Problem : Unsolved Delete and Conquer : Solved Travelling Saleman Problem : Solved Counting Special Numbers! : Unsolved Bob and Queries : Unsolved REVERSE OR NOT : Solved Paint House! : Unsolved CHOOSE3 : Unsolved Number Of Open Doors : Solved Palindrome Partitioning : Unsolved 3 Numbers : Unsolved Smallest Good Base : Solved Function : Unsolved Smallest XOR Queries : Unsolved Remove Half Nodes : Solved Falling Squares : Solved Queries On A Tree : Solved Design Twitter : Solved Required Substrings : Unsolved CHOOSE2 : Unsolved Subarray with equal occurences! : Solved Clone Graph : Solved Insertion Sort List : Solved Merge K sorted arrays! : Unsolved Reduce the string : Solved Integer To Roman : Solved Sub Matrices with sum Zero : Solved Shortest common superstring : Unsolved Daughters' Ages : Unsolved K reverse linked list : Solved Substring Game : Solved Design Twitter : Unsolved Intersection of Two Lines : Unsolved Window String : Unsolved Find sub-array with the given sum : Unsolved TOP VIEW : Unsolved Sum of pairwise Hamming Distance : Unsolved Power Of Two Integers : Solved Maximum Product Increasing Subsequence : Solved Bob and Queries : Solved 3 Numbers : Solved Sum of adjacent elements is always even : Unsolved N/3 Repeat Number : Solved Longest Subarray Length : Unsolved Two teams? : Solved Function : Solved B-th Smallest Prime Fraction : Unsolved Tiling Problem : Solved Sliding Window Maximum : Unsolved Very Hard Queries : Unsolved Implement StrStr : Solved Square Root of Integer : Unsolved Counting Special Numbers! : Solved Count of pairs with the given sum : Solved Intersection of Two Lines : Solved In an array : Solved Carotenemia : Unsolved Assign Mice to Holes : Unsolved Carotenemia : Solved Required Substrings : Solved Useful Extra Edges : Unsolved Tenth Line : Solved Smallest XOR Queries : Solved Invert the Binary Tree : Unsolved Regular Expression II : Solved Check if each internal node of a BST ha : Unsolved Unique Binary Search Trees : Solved Highly Available Database : Solved K reverse linked list : Unsolved Add Binary Strings : Solved Identical Binary Trees : Solved Difference of Candies : Unsolved LCA of array : Solved Rotated Array : Unsolved Postorder Traversal : Unsolved Combinations : Solved Longest Consecutive Sequence : Solved Roads and Libraries : Solved Size three subsequences divisible by B : Solved CHOOSE4 : Solved Highly Available Database : Unsolved Medicine Chest on a Boat : Solved Highly Consistent Database Best Time to Buy and Sell Stocks II : Unsolved Partition List : Solved Power of 2 : Unsolved Minimum Bracket Reversals : Solved Rotated Array : Solved Min Sum Path in Triangle : Unsolved Edit Distance : Solved Floyd Warshall Algorithm : Unsolved Difference between odd and even levels : Unsolved Design Linked list : Solved First non-repeating character in a stre : Solved Min XOR value : Unsolved Multiplication of previous and next : Unsolved Unique Paths in a Grid : Unsolved Minimum Parantheses! : Unsolved Find sub-array with the given sum : Solved Produce the number : Unsolved Difference of Candies : Solved Two teams? : Unsolved Minimum Absolute Difference : Solved Produce the number : Solved Array with consecutive elements : Solved Triplets with Sum between given range : Unsolved Smallest Missing Sum! : Unsolved Combinations : Unsolved Min Depth of Binary Tree : Solved Two Pills each day : Solved Find nth Magic Number : Solved Multiplication of previous and next : Solved Sum of adjacent elements is always even : Solved Minimum swaps required to bring all ele : Unsolved Smaller or equal elements : Unsolved Row with maximum number of ones : Unsolved Longest Substring Without Repeat : Unsolved Vowel and Consonant Substrings! : Unsolved Elements which have at-least two greate : Unsolved Delete middle node of a Linked List : Unsolved Row with maximum number of ones : Solved Infix to Postfix : Solved Egg Drop Problem! : Solved Find the closest pair from two sorted a : Unsolved Minimum Absolute Difference : Unsolved Expected number of Segments : Unsolved Floyd Warshall Algorithm : Solved Move all zeroes to end of the array : Solved Word Break II : Solved Max Sum Path in Binary Tree : Solved Add One To Number : Unsolved Sum Of Fibonacci Numbers : Solved Duplicates in binary tree : Unsolved Max Rectangle in Binary Matrix : Unsolved Length of longest palindromic list : Unsolved Count Palindromic Subsequences : Unsolved Move all zeroes to end of the array : Unsolved Falling Dominoes : Solved Longest Substring Without Repeat : Solved Find the closest pair from two sorted a : Solved Difference between odd and even levels : Solved Remove Duplicate Letters : Unsolved String representation using its substri : Unsolved Find The Next : Unsolved Longest Consecutive Sequence in Binary : Solved Dijsktra : Unsolved Number of Squareful Arrays : Unsolved Unique Paths III : Unsolved Longest Pallindromic Subsequence : Unsolved Delete middle node of a Linked List : Solved Check if each internal node of a BST ha : Solved Kth Smallest Element in the Array : Unsolved Order of People Heights : Solved FRUIT PACKETS : Solved BST nodes in a range : Solved Merge Two Sorted Arrays : Unsolved Min Elevator Trips : Solved Queen Attack : Unsolved Find nth Magic Number : Unsolved Smallest Missing Sum! : Solved Finding Position : Unsolved Steps to get out of complete binary tre : Solved INFINITE STRING : Unsolved 0/1 String : Unsolved Color of the Bear : Unsolved Expected number of Segments : Solved Monkeys and Doors : Solved Cows and snacks : Unsolved Dijsktra : Solved Day of the week : Unsolved Unique Paths III : Solved Search in Bitonic Array! : Solved Swap Forward And Backward Slash : Solved Simplify Directory Path : Unsolved Longest Pallindromic Subsequence : Solved Falling Dominoes : Unsolved Minimum Cost to Hire K Workers : Solved Detect and Remove Loop from a linked li : Unsolved B Closest Points to Origin : Solved Counting Subarrays! : Unsolved Number of Digit One : Unsolved Equal Tree Partition : Solved Deserialize Binary Tree : Unsolved Find if there is a sub-array with 0 sum : Solved Recover Binary Search Tree : Solved Count of pairs with the given sum : Unsolved Maximum height of the staircase : Unsolved Maximum height of the staircase : Solved Find if two rectangles overlap : Unsolved Find if two rectangles overlap : Solved Number Of Open Doors : Unsolved Number of Digit One : Solved Rectangle Area : Solved Find a peak element : Solved Length of Last Word : Unsolved Count of divisors for multiple queries : Unsolved Count of divisors for multiple queries : Solved Product array puzzle : Unsolved Product array puzzle : Solved Merge Intervals : Unsolved Reverse integer : Unsolved String representation using its substri : Solved Unreliable Rover : Unsolved DIVISIONS : Unsolved Power of 2 : Solved Count of smaller numbers after self : Solved Cows and snacks : Solved Count of Range Sum : Solved Maximum Difference : Unsolved Maximum Difference : Solved Inversion count in an array : Unsolved Subarrays with distinct integers! : Solved Lightsabers : Unsolved Lightsabers : Solved Check two bracket expressions : Unsolved Preimage Size of Factorial Zeroes Funct : Unsolved Three Numbers : Unsolved Merge Two Sorted Arrays : Solved Sorted Array To Balanced BST : Unsolved Maximum Sum Square SubMatrix : Solved Length of longest palindromic list : Solved Find pairs in array whose sum is alread : Unsolved Find pairs in array whose sum is alread : Solved Count pairs in array whose sum is divis : Solved Unreliable Rover : Solved Max Rectangle in Binary Matrix : Solved Simple Queries : Solved Is given level order a BST? : Unsolved B-th Smallest Prime Fraction : Solved Detect and Remove Loop from a linked li : Solved Rotten Oranges : Unsolved Grid Illumination : Unsolved Grid Illumination : Solved INFINITE STRING : Solved Remove nodes from Path sum less than B : Unsolved Check if given Preorder, Inorder and Po : Unsolved Count of smaller numbers after self : Unsolved Best Time to Buy and Sell Stocks III : Solved Kth Manhattan Distance Neighbourhood : Solved Tushar's Birthday Bombs : Unsolved Rotten Oranges : Solved Median of Array : Solved Connect ropes with minimum length : Unsolved kth character in double decrypted strin : Unsolved Reverse Bits : Unsolved Check for BST with exactly one child of : Unsolved Preimage Size of Factorial Zeroes Funct : Solved kth character in double decrypted strin : Solved Deserialize Binary Tree : Solved Check for BST with exactly one child of : Solved Combination Sum II : Unsolved Burn a Tree : Solved Longest Common Pallindromic Subsequence : Unsolved Find a peak element : Unsolved Remove nodes from Path sum less than B : Solved Coins in a Line : Solved Number of islands : Unsolved Eggs and Building : Solved Balanced Parantheses! : Unsolved Gas Station : Solved Reverse String : Unsolved Lexographically Greater Strings : Solved Pairs With Given Xor : Solved Minimise the maximum difference between : Unsolved Max Depth of Binary Tree : Unsolved Sample Question : Unsolved Remove_k _ Digits : Unsolved SUBARRAY OR : Unsolved Is given level order a BST? : Solved H-index : Unsolved Intersection of Linked Lists : Unsolved Connect ropes with minimum length : Solved Monkeys and Doors : Unsolved Longest Subarray Sum B : Solved Diffk : Unsolved Longest Palindromic Substring : Solved Find Duplicate in Array : Solved Number of islands : Solved Minimum Swaps 2 : Unsolved Check if given Preorder, Inorder and Po : Solved Most Stones Removed : Solved FAMOUS PRODUCT : Unsolved Custom Sort String : Unsolved Longest Common Pallindromic Subsequence : Solved Count of Range Sum : Unsolved Aggressive cows : Unsolved Largest Permutation : Unsolved Rectangle Area : Unsolved Custom Sort String : Solved N integers containing only 1,2 and 3 : Solved Maximum Sum Combinations : Solved First negative integer in window size B : Unsolved First negative integer in window size B : Solved Reversing the first B elements of queue : Unsolved Reversing the first B elements of queue : Solved Most Stones Removed : Unsolved All Unique Permutations : Solved N integers containing only 1,2 and 3 : Unsolved Merge Two Sorted Lists : Unsolved Inorder Traversal of Cartesian Tree : Solved Another Coin Problem : Unsolved Numbers of length N and value less than : Solved FAMOUS PRODUCT : Solved H-index : Solved Max edge queries! : Solved Minimum Size Subarray Sum : Unsolved Reorder List : Unsolved Minimum Size Subarray Sum : Solved Obsessive String : Unsolved Cycle in Directed Graph : Unsolved Wave Array : Unsolved Median of Array : Unsolved Print all root to leaf paths : Unsolved Ants on a Triangle : Solved Count of rectangles with area less than : Unsolved Time Based Key-Value Store : Solved Distance of nearest cell having 1 in a : Unsolved REDUCTION : Unsolved ALL GCD : Solved Print all root to leaf paths : Solved N/3 Repeat Number : Unsolved Sum Of Fibonacci Numbers : Unsolved Maximum Absolute Difference : Solved Path with good nodes! : Solved Rat In a Maze : Unsolved Capture Regions on Board : Solved Single Element in a Sorted Array : Unsolved Combination Sum II : Solved Multiply Strings : Unsolved ALL GCD : Unsolved Sample Question : Solved Jesse and two string : Unsolved Obsessive String : Solved Subarray with given XOR : Unsolved Ways to Decode : Solved Sorted Insert Position : Solved Make it : Unsolved Vertical Order traversal of Binary Tree : Unsolved Excel Column Number : Solved Two Strings : Solved Length of Longest Subsequence : Solved Color of the Bear : Solved Prime Sum : Unsolved Max Continuous Series of 1s : Solved Kth Row of Pascal's Triangle : Unsolved Multiple left rotations of the array : Unsolved Length of Longest Subsequence : Unsolved Distance of nearest cell having 1 in a : Solved Day of the week : Solved Sum of minimum and maximum elements of : Solved Make it : Solved Min Steps in Infinite Grid : Solved Rat In a Maze : Solved Vertex Cover Problem : Unsolved Serialize Binary Tree : Unsolved Generate all Parentheses : Solved Minimum Weight Cycle in an Undirected w : Solved Populate Next Right Pointers Tree : Solved Strobogrammatic Number III : Unsolved Largest Number : Solved Next Number : Unsolved Jesse and two string : Solved REDUCTION : Solved Sort Binary Linked List : Unsolved Minimum swaps required to bring all ele : Solved Left view of binary tree : Solved Array with consecutive elements : Unsolved Array 3 Pointers : Solved Swap List Nodes in pairs : Solved Vertex Cover Problem : Solved Subsets II : Unsolved NESTED_CMPL : Unsolved Sharding a Database Path to Given Node : Solved Strobogrammatic Number III : Solved Serialize Binary Tree : Solved Snake Ladder Problem! : Unsolved Hotel Reviews : Solved B Closest Points to Origin : Unsolved K Largest Elements : Solved Maximise the coins by popping balloons : Solved REC_CMPL1 : Solved Sum Root to Leaf Numbers : Solved Convert an arbitrary Binary Tree to a t : Unsolved Diffk II : Unsolved DIVISIONS : Solved LAST SUBSET PROBLEM : Unsolved LAST SUBSET PROBLEM : Solved Check whether the graph is bipartide or : Unsolved Reverse Alternate K Nodes : Solved Minimum Weight Cycle in an Undirected w : Unsolved Fastest Horses : Unsolved Alternate positive and negative element : Solved Movie Character : Solved Min Cost Path : Solved Gcd Ordering : Solved NESTED_CMPL3 : Unsolved Reverse a stack using recursion : Unsolved Alternate Lower Upper Sort : Solved Single Number II : Unsolved Order of People Heights : Unsolved Valid Ip Addresses : Unsolved Trees and Sum of Distances : Unsolved Amazing Subarrays : Solved Valid Path : Solved Smaller or equal elements : Solved ALL GCD PAIR : Unsolved Check Palindrome! : Solved Array 3 Pointers : Unsolved String count : Unsolved Shortest Distance in a graph with two d : Unsolved Window String : Solved Check whether the graph is bipartide or : Solved KEEP SWAPPING 2 : Solved TRIPLET OF AND : Unsolved AMORTIZED1 : Solved Min Sum Path in Matrix : Unsolved Min Sum Path in Triangle : Solved Next Similar Number : Solved Merge Intervals : Solved Remove Duplicates from Sorted List II : Solved K Largest Elements : Unsolved MINIMIZE THE XOR : Solved Best Time to Buy and Sell Stock atmost : Unsolved Chain of Pairs : Solved Strongly Connected Components : Unsolved Strongly Connected Components : Solved Bridges in a graph : Unsolved Bridges in a graph : Solved String count : Solved Smallest Multiple With 0 and 1 : Solved Minimum Appends for Palindrome! : Solved Toeplitz Matrix : Unsolved Trees and Sum of Distances : Solved Subset Sum Problem! : Unsolved Trailing Zeroes : Solved Search in a row wise and column wise so : Solved Sum Root to Leaf Numbers : Unsolved Matrix Median : Solved SUM OF SQUARES : Unsolved SUM OF SQUARES : Solved Intersection of Linked Lists : Solved Find Permutation : Unsolved Cross the Bridge : Solved XOR TRIPLETS : Unsolved Maximum Edge Removal : Unsolved Minimum number of swaps required for ar : Solved Two Pills each day : Unsolved Count And Say : Unsolved FizzBuzz : Solved ALL GCD PAIR : Solved Smallest Subtree with all the Deepest N : Unsolved Smallest Subtree with all the Deepest N : Solved Cut the rod : Solved TRIPLET OF AND : Solved Actors and their Movies : Unsolved Knight On Chess Board : Unsolved Toeplitz Matrix : Solved Largest Permutation : Solved Ways to form Max Heap : Unsolved Travelling Saleman Problem : Unsolved Largest Continuous Sequence Zero Sum : Solved Minimum number of swaps required for ar : Unsolved Pair With Given Difference : Solved Kth Smallest Element in a Sorted Matri : Unsolved Longest Palindromic Substring : Unsolved Maximum product of an increasing subseq : Solved Reverse Link List Recursion : Unsolved Length of Longest Fibonacci Subsequence : Unsolved Length of Longest Fibonacci Subsequence : Solved Maximum Points on the same line : Solved Search in Bitonic Array! : Unsolved Matrix Chain Multiplication : Unsolved Matrix Chain Multiplication : Solved Russian Doll Envelopes : Unsolved Distinct Primes : Unsolved Valid Binary Search Tree : Solved Max Chunks To Make Sorted : Unsolved 2 Sum : Solved Permutations : Solved Stringoholics : Solved Find The Next : Solved Merge elements : Solved Word Break : Solved Sorted Array To Balanced BST : Solved Ath Magical Number : Unsolved Russian Doll Envelopes : Solved Nearest Smaller Element : Unsolved Kth Smallest Element in a Sorted Matri : Solved INVERSIONS : Unsolved Distinct Subsequences : Unsolved Middle element of linked list : Unsolved Interleaving Strings : Solved Max subset XOR : Unsolved N digit numbers with digit sum S : Unsolved Palindromic Binary Representation : Unsolved Flatten Binary Tree to Linked List : Unsolved BST Iterator : Unsolved Chain of Pairs : Unsolved Maximal String : Solved Divisor Sequences : Unsolved Box Stacking Problem : Solved Wave Array : Solved Count of paths in a grid : Unsolved Smallest sequence with given Primes : Unsolved Length of longest consecutive ones : Unsolved Number of islands II : Solved Grid Unique Paths II : Unsolved Grid Unique Paths II : Solved Contiguous Array : Unsolved Contiguous Array : Solved Max subset XOR : Solved Palindromic Characteristics : Unsolved Number of islands II : Unsolved Sorted Permutation Rank : Unsolved Maximum product of an increasing subse : Unsolved Rotate Matrix : Solved Maximum Edge Removal : Solved Largest area of rectangle with permutat : Unsolved XOR TRIPLETS : Solved Valid phone number : Unsolved Inorder Traversal : Unsolved Least Common Ancestor : Solved Median of stream of running integers : Unsolved Tushar's Birthday Party : Unsolved K-th character of decrypted string : Unsolved WHILE_CMPL : Solved Ath Magical Number : Solved MAXSPPROD : Solved Another chocolate game : Unsolved Paranthesis Everywhere : Unsolved Right view of Binary tree : Unsolved Multiply Strings : Solved Birthday odddays : Unsolved Reverse Linked List : Unsolved Sliding Window Maximum : Solved Pretty Json : Unsolved Very Hard Queries : Solved Repeating Sub-Sequence : Unsolved Letter Phone : Solved Palindromic Characteristics : Solved Invert the Binary Tree : Solved First Missing Integer : Unsolved Short Films : Unsolved Minimum Bracket Reversals : Unsolved First non-repeating character in a stre : Unsolved Count of coprimes in two array : Unsolved AMORTIZED2 : Solved Anagrams : Unsolved Root to Leaf Paths With Sum : Unsolved Rod Cutting : Unsolved Reorder List : Solved Maximum Sum Combinations : Unsolved FizzBuzz : Unsolved Prime Sum : Solved Solve sub-sequences and return OR : Unsolved Equal Average Partition : Solved Search for a Range : Solved Maximum product of an increasing subse : Solved Delete middle of the linked list : Unsolved Equilateral Triangles using Toothpicks : Unsolved Birthday odddays : Solved Lexographically Greater Strings : Unsolved Increasing Path in Matrix : Solved Count And Say : Solved Rearrange Array : Solved Probablity of knight inside chess board : Unsolved Maximise the coins by popping balloons : Unsolved Probablity of knight inside chess board : Solved Find if there is a sub-array with 0 sum : Unsolved Arrange II : Unsolved Subset Sum Problem! : Solved Black Shapes : Unsolved WoodCutting Made Easy! : Solved Min Sum Path in Matrix : Solved Snake Ladder Problem! : Solved Alice and Bob : Unsolved Water Flow : Unsolved Symmetric Binary Tree : Unsolved Middle element of linked list : Solved Gas Station : Unsolved Step by Step : Solved Paranthesis Everywhere : Solved Single Number : Solved 3 Sum Zero : Solved Maximum Weight Edge Sum : Unsolved Invoiced Billing : Unsolved CHOOSE1 : Solved Count of coprimes in two array : Solved Maximum Weight Edge Sum : Solved PipeCUTS : Unsolved Delete middle of the linked list : Solved Distance between Nodes of BST : Unsolved Arithmetic Subsequences : Unsolved Arithmetic Subsequences : Solved Alternate positive and negative element : Unsolved Rod Cutting : Solved Longest Common Prefix : Unsolved Minimum Parantheses! : Solved Distribute Candy : Solved Temp : Unsolved Vowel and Consonant Substrings! : Solved Integer To Roman : Unsolved Text Justification : Solved Count Complete Tree Nodes : Unsolved Subset : Unsolved City Tour : Unsolved Consecutive Number Sum : Unsolved stream of B : Unsolved PipeCUTS : Solved Maximum Ones After Modification : Unsolved AMORTIZED2 : Unsolved Alice and Bob : Solved DEVICE CROSSOVER : Unsolved Invoiced Billing : Solved Single Number : Unsolved Symmetric Binary Tree : Solved Minimum operations of given type to mak : Solved Maximum product of an increasing subseq : Unsolved Palindrome String : Solved Hotel Bookings Possible : Unsolved Maximum Ones After Modification : Solved Measure Milk by Cans : Unsolved Rust and his transfer : Solved Largest Coprime Divisor : Unsolved Flip Counter : Unsolved Maximum Median : Solved Kth Manhattan Distance Neighbourhood : Unsolved Maximum Median : Unsolved Ticket Game : Unsolved Gray Code : Solved Patch the tire : Unsolved Ticket Game : Solved String Sum : Unsolved stream of B : Solved Largest Coprime Divisor : Solved Permutations : Unsolved Rust and his transfer : Unsolved Going back to OS : Unsolved Max edge queries! : Unsolved Temp : Solved Simple Queries : Unsolved Minimise the maximum difference between : Solved Inorder Traversal of Cartesian Tree : Unsolved Reverse String : Solved Count Permutations of BST : Unsolved Magician and Chocolates : Solved Maximum Path in Arrays : Unsolved Least Common Ancestor : Unsolved Jump Game Array : Solved LRU Cache : Solved Scramble String : Solved Good Ranges : Unsolved Container With Most Water : Solved ARRAY_2D : Unsolved Count pairs in array whose sum is divis : Unsolved Copy List : Unsolved Gray Code : Unsolved Preorder Traversal : Solved Maximum Path in Arrays : Solved H-index II : Unsolved Roman To Integer : Unsolved Maximum Points on the same line : Unsolved String Sum : Solved MATH_BUG02 : Unsolved Max Distance : Solved Combine Maximum : Unsolved Job Sequencing : Unsolved Path to Given Node : Unsolved Maximum product : Unsolved Wizards and Drawves : Unsolved H-index II : Solved Sub Matrices with sum Zero : Unsolved Rotated Sorted Array Search : Unsolved Remove Duplicates from Sorted Array II : Unsolved Set Matrix Zeros : Solved Max Sum Contiguous Subarray : Unsolved Add Two Numbers as Lists : Solved ARRAY_IMPL1 : Unsolved Best Time to Buy and Sell Stocks III : Unsolved Largest area of rectangle with permutat : Solved Minimum Lights to Activate : Solved Remove Nth Node from List End : Unsolved Find Nth Fibonacci : Solved Vertical Order traversal of Binary Tree : Solved Missing Element : Unsolved Tushar's Birthday Bombs : Solved Missing Element : Solved Find Nth Fibonacci : Unsolved An Increment Problem : Solved MAXSPPROD : Unsolved REC_CMPL3 : Solved Number of 1 Bits : Solved Maximum product : Solved Maximum positivity : Unsolved Postorder Traversal : Solved Distinct Numbers in Window : Unsolved Palindrome Partitioning II : Unsolved The Tribe : Solved Flip : Unsolved Rain Water Trapped : Solved Evaluate Expression : Unsolved Atoi : Unsolved Min Jumps Array : Solved Movie Character : Unsolved Amazing Subarrays : Unsolved Distribute Candy : Unsolved Sort by Color : Solved Maximum Intervals Overlap : Unsolved Consecutive Numbers Sum : Unsolved Remove_k _ Digits : Solved Path Sum : Solved Clone Graph : Unsolved 4 Sum : Solved Excel Column Number : Unsolved Inversion count in an array : Solved Combination Sum : Solved Anti Diagonals : Solved Maximum positivity : Solved Maximum Absolute Difference : Unsolved An Increment Problem : Unsolved Convert Sorted List to Binary Search Tr : Unsolved Largest BST Subtree : Solved Maximum Size Square Sub-matrix : Unsolved Largest Distance between nodes of a Tre : Solved Longest valid Parentheses : Unsolved Largest Number : Unsolved Reverse Link List Recursion : Solved Zigzag String : Solved Diagonal Traversal : Unsolved Maximum Intervals Overlap : Solved Matrix Median : Unsolved Reverse the String : Solved Minimum Lights to Activate : Unsolved Maximum Area of Triangle! : Unsolved Verify Prime : Unsolved Reverse Subarray for Sorting : Unsolved Next Smallest Palindrome! : Solved Palindromic Binary Representation : Solved Maximum Area of Triangle! : Solved Next Smallest Palindrome! : Unsolved Dungeon Princess : Solved MATH_BUG02 : Solved Min Jumps Array : Unsolved MINIMIZE THE XOR : Unsolved Numbers of length N and value less than : Unsolved Minimize the absolute difference : Unsolved Design Cache Even Reverse : Unsolved Remove Half Nodes : Unsolved Binary Representation : Unsolved Word Ladder I : Unsolved Max Min : Unsolved Spiral Order Matrix II : Solved Rotate List : Solved Diffk : Solved Is Rectangle? : Unsolved NESTED_CMPL3 : Solved Bulbs : Solved XOR-ing the Subarrays! : Solved Path with good nodes! : Unsolved Total Moves For Bishop! : Solved Distribute in Circle! : Solved NQueens : Solved Minimize the absolute difference : Solved Reverse Subarray for Sorting : Solved NQueens : Unsolved Subarrays with distinct integers! : Unsolved Commutable Islands : Solved Sort by Color : Unsolved Implement Power Function : Solved Maximum Consecutive Gap : Solved Construct Binary Tree From Inorder And : Unsolved Kth Smallest Element In Tree : Solved Divide Integers : Unsolved Grid Unique Paths : Unsolved Reverse Link List II : Solved Design Messenger Kth Row of Pascal's Triangle : Solved NEXTGREATER : Solved Max Non Negative SubArray : Unsolved Word Search Board : Unsolved Colorful Number : Solved Copy List : Solved Colorful Number : Unsolved Alternate Lower Upper Sort : Unsolved Edit Distance : Unsolved Sum of pairwise Hamming Distance : Solved Xor Between Two Arrays! : Unsolved Remove Consecutive Characters : Solved Unique Paths in a Grid : Solved Maximum Sum Square SubMatrix : Unsolved Elements which have at-least two greate : Solved SUBARRAY OR : Solved Prime Numbers : Unsolved Neutral Reviewers : Solved Anti Diagonals : Unsolved Neutral Reviewers : Unsolved 0-1 Knapsack : Solved Remove the Substring : Solved Merge Two Sorted Lists : Solved Nearest Smaller Element : Solved Color of the last ball II : Solved Largest Continuous Sequence Zero Sum : Unsolved Possibility of finishing all courses gi : Unsolved Merge K Sorted Lists : Solved Shortest common superstring : Solved Valid Path : Unsolved Word Break II : Unsolved Convert Sorted List to Binary Search Tr : Solved Perfect Peak of Array : Unsolved Pascal Triangle : Solved Arrange Cubes : Unsolved Sudoku : Unsolved Subarray with given XOR : Solved Text Justification : Unsolved Valid Sudoku : Solved ZigZag Level Order Traversal BT : Unsolved Perfect Peak of Array : Solved Count Total Set Bits : Solved 4 Sum : Unsolved Min Cost Path : Unsolved Merge two Binary Tree : Unsolved Convert to Palindrome : Solved Medicine Chest on a Boat : Unsolved Trailing Zeros in Factorial : Unsolved Reverse Level Order : Unsolved Excel Column Title : Solved Prisoners and Poison : Unsolved Are they same - I : Unsolved Counting Subarrays! : Solved Min XOR value : Solved Large Factorial : Unsolved Root to Leaf Paths With Sum : Solved Sorted Permutation Rank with Repeats : Solved Spiral Order Matrix I : Unsolved Divide Integers : Solved Coin Sum Infinite : Solved Flip Array : Unsolved Seats : Unsolved Roman To Integer : Solved Disjoint Intervals : Unsolved Balanced Binary Tree : Unsolved Minimum Characters required to make a S : Solved Cycle in Undirected Graph : Solved Tiling With Dominoes : Unsolved Reverse Level Order : Solved Falling Squares : Unsolved Word Search Board : Solved Scramble String : Unsolved Remove Consecutive Characters : Unsolved Rearrange Array : Unsolved Find Duplicate in Array : Unsolved Maximum Path in Triangle : Unsolved Merge Overlapping Intervals : Solved Set Matrix Zeros : Unsolved Balance Array : Solved Redundant Braces : Unsolved Short Films : Solved Count Palindromic Subsequences : Solved Smallest Multiple With 0 and 1 : Unsolved Infix to Postfix : Unsolved Flatten Binary Tree to Linked List : Solved Palindrome Integer : Unsolved 3 Sum : Unsolved Noble Integer : Unsolved Longest Consecutive Sequence in Binary : Unsolved Valid Number : Unsolved NUMRANGE : Unsolved Matrix Search : Solved Two Strings : Unsolved 3 Sum : Solved Subarray with B odd numbers : Solved Subarray with B odd numbers : Unsolved Pick from both sides! : Solved Reverse Link List II : Unsolved Special Integer : Unsolved Implement Power Function : Unsolved Binary Tree From Inorder And Postorder : Unsolved Stepping Numbers : Solved 2 Sum : Unsolved Partitions : Unsolved Palindrome List : Unsolved Merge Two Sorted Lists II : Unsolved Remove Duplicates from Sorted List II : Unsolved Kth Permutation Sequence : Unsolved Counting Triangles : Solved Length of Last Word : Solved Flip : Solved Level Order : Solved Maximum Size Square Sub-matrix : Solved Jump Game Array : Unsolved Cycle in Undirected Graph : Unsolved Longest Common Subsequence : Solved Kth Node From Middle : Solved Maximum Consecutive Gap : Unsolved Sort array with squares! : Unsolved XOR-ing the Subarrays! : Unsolved GCD_CMPL : Solved Arrange II : Solved Kth Smallest Element in the Array : Solved Generate all Parentheses II : Unsolved Binary Tree From Inorder And Postorder : Solved Sorted Permutation Rank with Repeats : Unsolved Sort array with squares! : Solved Multiple left rotations of the array : Solved Rotated Sorted Array Search : Solved Intersection Of Sorted Arrays : Unsolved Next Pointer Binary Tree : Solved Diagonal Traversal : Solved Intersection Of Sorted Arrays : Solved Remove Duplicates from Sorted Array : Unsolved Shortest Unique Prefix : Solved Count Element Occurence : Unsolved Reverse a stack using recursion : Solved Maximum Unsorted Subarray : Solved Max Sum Without Adjacent Elements : Unsolved Anagrams : Solved Longest Arithmetic Progression : Unsolved Spiral Order Matrix I : Solved Stepping Numbers : Unsolved Largest Distance between nodes of a Tre : Unsolved Remove Element from Array : Unsolved Minimum Characters required to make a S : Unsolved Generate all Parentheses : Unsolved Interleaving Strings : Unsolved Largest Rectangle in Histogram : Solved Unique Binary Search Trees II : Unsolved Palindrome Integer : Solved First Missing Integer : Solved Grid Unique Paths : Solved Disjoint Intervals : Solved INVERSIONS : Solved Palindrome List : Solved Maximal String : Unsolved Ten Black and White Socks : Solved Cycle in Directed Graph : Solved Partition List : Unsolved Majority Element : Solved Repeating Sub-Sequence : Solved Merge two Binary Tree : Solved Region in BinaryMatrix : Solved Sort Binary Linked List : Solved Fraction : Unsolved Subset : Solved Add One To Number : Solved Xor Between Two Arrays! : Solved 3 Sum Zero : Unsolved Power Of Two Integers : Unsolved Largest Rectangle in Histogram : Unsolved Longest Arithmetic Progression : Solved Letter Phone : Unsolved Min Depth of Binary Tree : Unsolved Distinct Numbers in Window : Solved Repeat and Missing Number Array : Unsolved Minimum Appends for Palindrome! : Unsolved Possibility of finishing all courses gi : Solved Compare Version Numbers : Solved Remove Duplicates from Sorted List : Unsolved Merge Two Sorted Lists II : Solved

C++ | Can't get any easier | Map will give TLE | Use array
[Subarray with equal occurences! : Solved]
(1)

O(n)time and o(n)space solution using sliding window
[Subarrays with distinct integers! : Solved]
(1)