-
-
Write Code vs. Write Poetry: ThreeAndFive (Math) Question: write an algorithm to find sum of numbers which are smaller than N and divisibl...
-
Uber-NY Onsite "噢你很懂design?"【一亩三分地论坛面经版】 - Powered by Discuz! 1,常见题-Design spotify,主要在问playlist和shuffle list功能。 >player,play...
-
http://www.cnblogs.com/grandyang/p/5616158.html Given a binary tree, find all leaves and then remove those leaves. Then repeat the previo...
-
The Towers of Hanoi problem TowerHanoi.java public static void moveTowerHanoi(int n) { List<LinkedList<Integer>> pegs ...
-
Enumerate binary trees UniqueBinaryTreesAll.java public static List<BinaryTree<Integer>> generateAllBinaryTrees(int n) { ...
-
https://leetcode.com/problems/rotate-image/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ...
-
https://leetcode.com/problems/new-21-game/description/ Alice plays the following game, loosely based on the card game "21". ...
-
https://leetcode.com/articles/monotonic-array/ An array is monotonic if it is either monotone increasing or monotone decreasing. An a...
-
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...