水中的鱼

Showing posts with label recursion. Show all posts
Showing posts with label recursion. Show all posts
Monday, August 7, 2017

[Leetcode] Power of Three, Solution

›
Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop / recursion...

[Leetcode] Closest Binary Search Tree Value, Solution

›
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target va...
Sunday, April 7, 2013

[LeetCode] Permutation Sequence, Solution

›
The set  [1,2,3,…, n ]  contains a total of  n ! unique permutations. By listing and labeling all of the permutations in order, We get ...
Sunday, March 3, 2013

[LeetCode] Palindrome Partitioning, Solution

›
Given a string  s , partition  s  such that every substring of the partition is a palindrome. Return all possible palindrome partitionin...
Saturday, February 2, 2013

[Google] Inorder Successor in Binary Search Tree, Solution

›
In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inorder Successor is NULL for the l...
Saturday, December 29, 2012

[LeetCode] Permutations II 解题报告

›
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2]  have the fo...
2 comments:
›
Home
View web version

About Me

codingtmd
View my complete profile
Powered by Blogger.