- Categories · Question-
2017
[Question] Trie Wildcard String Matching
May 22, 2017
[Question] Dutch national flag problem
May 13, 2017
2015
[Question] Swizzle Sort
November 21, 2015
[Question] Partition Problem (divide array into halves)
November 15, 2015
[Amazon] All Strings by Placing Spaces
October 7, 2015
[Question] Find Cloest Leaf in Binary Tree
October 7, 2015
[Question] Largest Sub-square with Edges filled
October 7, 2015
[Palantir] Sort Letters Given Lexicographic Order
May 21, 2015
[Question] 编程之美 NIM 一排石头的游戏
April 14, 2015
[UVa] Wooden Sticks
April 14, 2015
[Palantir] Find Duplicate within K Distance
April 12, 2015
[Palantir] MultiMap in Java without using Collections
April 12, 2015
[LinkedIn] Sum of integer weighted by depth
February 13, 2015
[LinkedIn] Unique combination of factors (因式分解)
February 13, 2015
[LinkedIn] Sort part to make entire array sorted
February 13, 2015
[LinkedIn] Executive's Schedule
February 12, 2015
[LinkedIn] Isomorphic Strings
February 11, 2015
[Question] Count multiples of array
February 9, 2015
[Facebook] Generate number with Given probability
February 8, 2015
[Question] Check string with no common letters (Bitmask)
February 7, 2015
[Question] Reservoir sampling
February 7, 2015
[Amazon] Grep command interview question
February 4, 2015
[Greedy] Activity Selection Problem
February 1, 2015
[Greedy] Each Employee 2 events
February 1, 2015
[Question] Stock Span Problem (couting BST)
February 1, 2015
[Question] 2D Bin Packing
January 30, 2015
[Question] Packing Rectangles
January 29, 2015
[Apple] Calculate Area
January 29, 2015
[Question] Product Array Puzzle
January 29, 2015
[Question] Two Dimensional Knapsack Problem
January 28, 2015
[Question] Push and Pop Sequences of Stacks
January 26, 2015
[Palantir] Largest basin size in matrix
January 20, 2015
[Question] Check if two line segments intersect
January 19, 2015
[Question] Check if given point inside polygon
January 19, 2015
[Amazon] Lexicographic rank of a string
January 18, 2015
[Question] Maximum square sub-matrix with all 1s
January 18, 2015
[Amazon] Find nodes of distance k from Binary Tree
January 17, 2015
[Question] All distinct subsequences with given length
January 11, 2015
[LinkedIn] Find all repeating substring with given length
January 11, 2015
[Amazon] Longest Repeating Substring
January 11, 2015
[Question] Number of distinct sub-sequence
January 11, 2015
[Question] Number of occurence of given sub-sequence
January 11, 2015
[Amazon] Mininum Range that includes at least One
January 10, 2015
[Amazon] Match triplet with reverse order
January 9, 2015
[Question] Most Frequent Word from a book
January 9, 2015
[Question] Longest Common Substring
January 7, 2015
[Facebook] Scheduling Jobs with Max Cost
January 7, 2015
[Facebook] Write a Json prettifier
January 6, 2015
[Question] Frog Crossing (dynamic programming)
January 2, 2015
2014
[Facebook] Maximum sum such that no two elements are adjacent
December 22, 2014
[Question] Split an integer or coin
December 22, 2014
[Facebook] Binary Search Tree 3Sum
December 18, 2014
[Facebook] Print a Binary Tree in Vertical Order
December 17, 2014
[Question] Equilibrium Points in 2D Array
December 17, 2014
[Epic] Patient Disease Data Structure
December 8, 2014
[Question] Axis Aligned Rectangles
December 2, 2014
[Question] Multiples of 3 and 5
November 30, 2014
[Question] Find row with most 1s
November 1, 2014
[Question] Interleave Positive and Negative Numbers
October 8, 2014
[Question] Celebrity Problem
September 11, 2014
[Facebook] Hamming Distance of Array
September 1, 2014
[Twitter] Count Visible Nodes in Binary Tree
August 27, 2014
[Question] Duplicate Rows in Matrix
August 27, 2014
[Twitter] Largest Cycle in Permutation
August 27, 2014
[Question] Count Set Bit in Binary Number
August 20, 2014
[Question] Ways of Dice Throw
August 20, 2014
[Question] Square Count of Matchstick Graph
August 20, 2014
[Question] Count Level in Perfect Binary Tree
August 19, 2014
[Twitter] Arithmetic Expression Evaluation
August 17, 2014
[ItInt5] Number of Valid Trees Given Preorder and Postorder
August 17, 2014
[ItInt5] Numbers Concatenation Max (Largest Number)
August 17, 2014
[ItInt5] Excel Decimal Conversion
August 16, 2014
[Question] Greatest Common Divisor
August 15, 2014
[ItInt5] 跳马问题加强版
August 15, 2014
[Facebook] Task Scheduling Question
August 15, 2014
[Facebook] Query Search (HashMap, suffix array)
August 14, 2014
[ItInt5] Maximum circular subarray sum
August 11, 2014
[Question] Add Integers without +/++
August 8, 2014
[Question] Decimal to Hexadecimal
August 8, 2014
[Question] Max Sum Of Non-Consecutive Elements
August 8, 2014
[Question] Print Numbers containing 5
August 5, 2014
[Question] Arranging Sequence
August 1, 2014
[Question] Max Sum In A 2D Array (sub-matrix)
August 1, 2014
[Question] Overriding private method
August 1, 2014
[Question] Shuffle An Array (Fisher–Yates)
August 1, 2014
[Question] Inorder Successor in Binary Search Tree
July 31, 2014
[Question] Points On Globe Puzzle
July 31, 2014
[Question] Run-Length Encoding
July 31, 2014
[Question] Nth Fibonacci Number In O(LogN)
July 30, 2014
[Question] Peripheral Of A Complete Tree
July 30, 2014
[Question] Construct a BST from Preorder Traversal
July 29, 2014
[Question] Find Min & Max in an Array Using Minimum Comparisons
July 29, 2014
[Question] Remove chars in Pairs
July 29, 2014
[Question] Which loop is faster
July 29, 2014
[Question] Breaking Chocolate Bars
July 28, 2014
[Question] Check If Number Exists
July 28, 2014
[Question] Matching Nuts And Bolts
July 28, 2014
[Question] Elephant And Bananas
July 27, 2014
[Question] Fit 1*2 Dominos In 2*N Strip
July 27, 2014
[Question] Reconstruct Tree From Pre-Order Traversal
July 27, 2014
[Question] Random Number Generate Question
July 26, 2014
[Question] Truth tell brain teaser
July 26, 2014
[Question] Find 10001st Prime (Sieve of E)
July 25, 2014
[Question] Find the first non-repeating character
July 24, 2014
[Question] Largest palindrome product
July 23, 2014
[Question] Least Number after Deleting Digits
July 23, 2014
[Question] Implement Stack using Two Queues
July 23, 2014
[Question] Bucket Sort (bin sort)
July 22, 2014
[Question] Longest Substring with At Most Two Distinct Characters
July 21, 2014
[Question] Quick Sort
July 21, 2014
[Question] Max Binary Gap
July 21, 2014
[Question] Check Power of 2
July 4, 2014
[Question] Subarray with 0 Sum
July 4, 2014
[Question] Subarray with Particular Sum
July 4, 2014
[Question] Subarray with Sum Closest
July 4, 2014
[Question] Implement a HashMap
July 1, 2014
[Question] Implement Queue using Stacks
July 1, 2014
[Question] Median in a stream of integers
July 1, 2014
[Question] Min Stack
July 1, 2014
[Question] The Skyline Problem
July 1, 2014
[Question] Coin Change Problem
June 30, 2014
[Question] Make a fair coin from a biased coin
June 30, 2014
[Question] 0-1 Knapsack Problem
June 30, 2014
[Question] Single Number III
June 28, 2014
[Question] Single Number IV
June 28, 2014
[Question] Topology Sort
June 27, 2014
[Brain teaser] Khan Academy 8 brain teasers
June 26, 2014
[Question] Number Sum Sequence
June 18, 2014
[Brain teaser] 2 Eggs 100 Floors Puzzle
June 18, 2014
[Question] Union and Intersection of two Linked Lists
June 17, 2014
[Question] Binary Search Tree find upper/lower bound
June 15, 2014
[Question] Count negative in a 2D Sorted Matrix
June 14, 2014
[Question] Iterator of Binary Search Tree
June 14, 2014
[Question] Search Range in BST (Trim a BST)
June 13, 2014
[Question] Compare Mergesort and Quicksort
June 12, 2014
[Question] First Character Appearing Only Once
June 10, 2014
[Question] Junit Hand-on Notes
June 4, 2014
[Question] ASCII, Utf-8, Utf-16 and Unicode
June 4, 2014
2013
[Question] Get Max Number Game (minmax + dp)
November 21, 2013
[Question] Insert Plus and Minus to Complete Expression
November 21, 2013
[Amazon] Infix to Postfix conversion
November 20, 2013
[Question] Count Arithmetic Slices
November 15, 2013
[Question] Shuffle and Get Max Difference
November 15, 2013
[Question] Number Of Bus Stations (meeting rooms)
November 5, 2013