Category: Question 2017 [Question] Trie Wildcard String Matching May 22 2017 [Question] Dutch National Flag Problem May 13 2017 2015 [Question] Swizzle Sort Nov 21 2015 [Question] Partition Problem (Divide Array Into Halves) Nov 15 2015 [Question] Largest Sub-square With Edges Filled Oct 07 2015 [Question] Find Cloest Leaf in Binary Tree Oct 07 2015 [Amazon] All Strings by Placing Spaces Oct 07 2015 [Palantir] Sort Letters Given Lexicographic Order May 21 2015 [UVa] Wooden Sticks Apr 14 2015 [Question] 编程之美 NIM 一排石头的游戏 Apr 14 2015 [Palantir] MultiMap in Java Without Using Collections Apr 12 2015 [Palantir] Find Duplicate Within K Distance Apr 12 2015 [LinkedIn] Sort Part to Make Entire Array Sorted Feb 13 2015 [LinkedIn] Unique Combination of Factors (因式分解) Feb 13 2015 [LinkedIn] Sum of Integer Weighted by Depth Feb 13 2015 [LinkedIn] Executive's Schedule Feb 12 2015 [LinkedIn] Isomorphic Strings Feb 11 2015 [Question] Count Multiples of Array Feb 09 2015 [Facebook] Generate Number With Given Probability Feb 08 2015 [Question] Reservoir Sampling Feb 07 2015 [Question] Check String With No Common Letters (Bitmask) Feb 07 2015 [Amazon] Grep Command Interview Question Feb 04 2015 [Question] Stock Span Problem (Couting BST) Feb 01 2015 [Greedy] Each Employee 2 Events Feb 01 2015 [Greedy] Activity Selection Problem Feb 01 2015 [Question] 2D Bin Packing Jan 30 2015 [Question] Product Array Puzzle Jan 29 2015 [Apple] Calculate Area Jan 29 2015 [Question] Packing Rectangles Jan 29 2015 [Question] Two Dimensional Knapsack Problem Jan 28 2015 [Question] Push and Pop Sequences of Stacks Jan 26 2015 [Palantir] Largest Basin Size in Matrix Jan 20 2015 [Question] Check if Given Point Inside Polygon Jan 19 2015 [Question] Check if Two Line Segments Intersect Jan 19 2015 [Question] Maximum Square Sub-matrix With All 1s Jan 18 2015 [Amazon] Lexicographic Rank of a String Jan 18 2015 [Amazon] Find Nodes of Distance K From Binary Tree Jan 17 2015 [Question] Number of Occurence of Given Sub-sequence Jan 11 2015 [Question] Number of Distinct Sub-sequence Jan 11 2015 [Amazon] Longest Repeating Substring Jan 11 2015 [LinkedIn] Find All Repeating Substring With Given Length Jan 11 2015 [Question] All Distinct Subsequences With Given Length Jan 11 2015 [Amazon] Mininum Range That Includes at Least One Jan 10 2015 [Question] Most Frequent Word From a Book Jan 09 2015 [Amazon] Match Triplet With Reverse Order Jan 09 2015 [Facebook] Scheduling Jobs With Max Cost Jan 07 2015 [Question] Longest Common Substring Jan 07 2015 [Facebook] Write a Json Prettifier Jan 06 2015 [Question] Frog Crossing (Dynamic Programming) Jan 02 2015 2014 [Question] Split an Integer or Coin Dec 22 2014 [Facebook] Maximum Sum Such That No Two Elements Are Adjacent Dec 22 2014 [Facebook] Binary Search Tree 3Sum Dec 18 2014 [Question] Equilibrium Points in 2D Array Dec 17 2014 [Facebook] Print a Binary Tree in Vertical Order Dec 17 2014 [Epic] Patient Disease Data Structure Dec 08 2014 [Question] Axis Aligned Rectangles Dec 02 2014 [Question] Multiples of 3 and 5 Nov 30 2014 [Question] Find Row With Most 1s Nov 01 2014 [Question] Interleave Positive and Negative Numbers Oct 08 2014 [Question] Celebrity Problem Sep 11 2014 [Facebook] Hamming Distance of Array Sep 01 2014 [Twitter] Largest Cycle in Permutation Aug 27 2014 [Question] Duplicate Rows in Matrix Aug 27 2014 [Twitter] Count Visible Nodes in Binary Tree Aug 27 2014 [Question] Square Count of Matchstick Graph Aug 20 2014 [Question] Ways of Dice Throw Aug 20 2014 [Question] Count Set Bit in Binary Number Aug 20 2014 [Question] Count Level in Perfect Binary Tree Aug 19 2014 [ItInt5] Numbers Concatenation Max (Largest Number) Aug 17 2014 [ItInt5] Number of Valid Trees Given Preorder and Postorder Aug 17 2014 [Twitter] Arithmetic Expression Evaluation Aug 17 2014 [ItInt5] Excel Decimal Conversion Aug 16 2014 [Facebook] Task Scheduling Question Aug 15 2014 [ItInt5] 跳马问题加强版 Aug 15 2014 [Question] Greatest Common Divisor Aug 15 2014 [Facebook] Query Search (HashMap, Suffix Array) Aug 14 2014 [ItInt5] Maximum Circular Subarray Sum Aug 11 2014 [Question] Max Sum of Non-Consecutive Elements Aug 08 2014 [Question] Decimal to Hexadecimal Aug 08 2014 [Question] Add Integers Without +/++ Aug 08 2014 [Question] Print Numbers Containing 5 Aug 05 2014 [Question] Shuffle an Array (Fisher–Yates) Aug 01 2014 [Question] Overriding Private Method Aug 01 2014 [Question] Max Sum in a 2D Array (Sub-matrix) Aug 01 2014 [Question] Arranging Sequence Aug 01 2014 [Question] Run-Length Encoding Jul 31 2014 [Question] Points on Globe Puzzle Jul 31 2014 [Question] Inorder Successor in Binary Search Tree Jul 31 2014 [Question] Peripheral of a Complete Tree Jul 30 2014 [Question] Nth Fibonacci Number in O(LogN) Jul 30 2014 [Question] Which Loop Is Faster Jul 29 2014 [Question] Remove Chars in Pairs Jul 29 2014 [Question] Find Min & Max in an Array Using Minimum Comparisons Jul 29 2014 [Question] Construct a BST From Preorder Traversal Jul 29 2014 [Question] Matching Nuts and Bolts Jul 28 2014 [Question] Check if Number Exists Jul 28 2014 [Question] Breaking Chocolate Bars Jul 28 2014 [Question] Reconstruct Tree From Pre-Order Traversal Jul 27 2014 [Question] Fit 1*2 Dominos in 2*N Strip Jul 27 2014 [Question] Elephant and Bananas Jul 27 2014 [Question] Truth Tell Brain Teaser Jul 26 2014 [Question] Random Number Generate Question Jul 26 2014 [Question] Find 10001st Prime (Sieve of E) Jul 25 2014 [Question] Find the First Non-repeating Character Jul 24 2014 [Question] Implement Stack Using Two Queues Jul 23 2014 [Question] Least Number After Deleting Digits Jul 23 2014 [Question] Largest Palindrome Product Jul 23 2014 [Question] Bucket Sort (Bin Sort) Jul 22 2014 [Question] Max Binary Gap Jul 21 2014 [Question] Quick Sort Jul 21 2014 [Question] Longest Substring With at Most Two Distinct Characters Jul 21 2014 [Question] Subarray With Sum Closest Jul 04 2014 [Question] Subarray With Particular Sum Jul 04 2014 [Question] Subarray With 0 Sum Jul 04 2014 [Question] Check Power of 2 Jul 04 2014 [Question] the Skyline Problem Jul 01 2014 [Question] Min Stack Jul 01 2014 [Question] Median in a Stream of Integers Jul 01 2014 [Question] Implement Queue Using Stacks Jul 01 2014 [Question] Implement a HashMap Jul 01 2014 [Question] 0-1 Knapsack Problem Jun 30 2014 [Question] Make a Fair Coin From a Biased Coin Jun 30 2014 [Question] Coin Change Problem Jun 30 2014 [Question] Single Number IV Jun 28 2014 [Question] Single Number III Jun 28 2014 [Question] Topology Sort Jun 27 2014 [Brain Teaser] Khan Academy 8 Brain Teasers Jun 26 2014 [Brain Teaser] 2 Eggs 100 Floors Puzzle Jun 18 2014 [Question] Number Sum Sequence Jun 18 2014 [Question] Union and Intersection of Two Linked Lists Jun 17 2014 [Question] Binary Search Tree Find Upper/lower Bound Jun 15 2014 [Question] Iterator of Binary Search Tree Jun 14 2014 [Question] Count Negative in a 2D Sorted Matrix Jun 14 2014 [Question] Search Range in BST (Trim a BST) Jun 13 2014 [Question] Compare Mergesort and Quicksort Jun 12 2014 [Question] First Character Appearing Only Once Jun 10 2014 [Question] ASCII, Utf-8, Utf-16 and Unicode Jun 04 2014 [Question] Junit Hand-on Notes Jun 04 2014 2013 [Question] Insert Plus and Minus to Complete Expression Nov 21 2013 [Question] Get Max Number Game (Minmax + Dp) Nov 21 2013 [Amazon] Infix to Postfix Conversion Nov 20 2013 [Question] Shuffle and Get Max Difference Nov 15 2013 [Question] Count Arithmetic Slices Nov 15 2013 [Question] Number of Bus Stations (Meeting Rooms) Nov 05 2013