-
-
Write Code vs. Write Poetry: ThreeAndFive (Math) Question: write an algorithm to find sum of numbers which are smaller than N and divisibl...
-
http://www.cnblogs.com/grandyang/p/5616158.html Given a binary tree, find all leaves and then remove those leaves. Then repeat the previo...
-
https://leetcode.com/articles/monotonic-array/ An array is monotonic if it is either monotone increasing or monotone decreasing. An a...
-
https://leetcode.com/problems/rotate-image/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ...
-
The Towers of Hanoi problem TowerHanoi.java public static void moveTowerHanoi(int n) { List<LinkedList<Integer>> pegs ...
-
[CareerCup][Google Interview] 找最大序列 - chkkch - 博客园 A circus is designing a tower routine consisting of people standing atop one another...
-
Enumerate binary trees UniqueBinaryTreesAll.java public static List<BinaryTree<Integer>> generateAllBinaryTrees(int n) { ...
-
http://coursera.cs.princeton.edu/algs4/assignments/kdtree.html http://coursera.cs.princeton.edu/algs4/checklists/kdtree.html Write a data...
-
Searching for Patterns | Set 2 (KMP Algorithm) - GeeksforGeeks Given a text txt[0..n-1] and a pattern pat[0..m-1] , write a function searc...