- Maze solver
- Gmail architecture design
- http://netlojava.blogspot.com/2013/08/gmail-server-architecture.html
- http://css.dzone.com/news/gmail-architecture-part-1
- Given a two strings, return whether the second is an anagram of a palindrome of the first string.
- Online Machine Learning
- Graph Algorithm
- Bit manipulation
- Get unfair coins using fair coins https://dicedcoins.wordpress.com/2012/07/30/simulate-fair-coins-unfair/
- Determine if a BST is valid or not
- 1) Find the single number in a array, all other elements are paired. 2) Give a array A[k], define the set S{k} := { A[k], A[A[k]], A[A[A[k]]], ... }, write program to count the maximum size of Sks.
- integer N and returns an NxN matrix with incrementing integers in a spiral, from outside in.
- Overlap intervals
- Top k terms in unsorted array
- In order iterative bst traversal
- Questions given a vector of strings of length n with each word having a length of m on average, group all anagrams into a cluster. Do this for the case that n >>>>>> m and in the most efficient way possible. Assume extra space allowed.
- Given a number, tell how many 1s are there in the binary format of this number
- http://stackoverflow.com/questions/2344496/how-can-i-print-out-all-possible-letter-combinations-a-given-phone-number-can-re
- http://www.lifeincode.net/programming/leetcode-letter-combinations-of-a-phone-number-java/
- Tree to ordered double linked list
- Implement hash table
- Given n sets of choices: (1,2,3), (2,3,4), (4,5)
You pick one element from each set of choices.
Generate all possible picking. - Trie
- Subset sum
- Topological sorting
- Implement divide operation using multiply
- http://javahungry.blogspot.com/2014/05/convert-math-number-to-equivalent-readable-word-in-java-code-with-example.html
- http://leetcode.com/2010/09/print-all-combinations-of-number-as-sum.html
- http://rleetcode.blogspot.com/2014/02/combination-sum.html
- 4SUm
- Given two nodes in a binary tree find the number of nodes, between the path to the two nodes
- LRU cache
- Given sorted dictionary, sort the characters
- Given a list of names. Find whether a particular name occurs inside a given tweet or not. If found return true otherwise false Time complexity should be less than O(n). - suffix tree
- Given the pre-order sequence of a binary tree, how many trees can be created from this
- Validate if a tree is BST
- 4 points form a square
- http://www.careercup.com/question?id=14951746
- Design a hashmap
- Design a thread safe hashtable
- Design a collaborative editor - where each participant can go offline
- Given a string representing roman numeral, find and return its numeric value. e.g. XXIV = 24 and so on.
- Top K queries from search logs
- Output : (*, *, *), (*, *, c), (*, b, *), (*, b, c), (a, *, *), (a, *, c), (a, b, *), (a, b, c) Answer Question
- Convert infix expression into postfix. Answer Question
- Write code that walks thru all src code starting from a root dir. and create histogram of number of characters per line across all files.
Apart from coding and design interview questions, this page contains updates on my learnings with Java. It helps me organize my learning. Read about my future self here : https://siliconvalleystories.blogspot.com/
Saturday, 10 January 2015
Twitter interview questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment