Tiger's leetcode solution

Friday, January 1, 2016

267. Palindrome Permutation II ##################

›
Given a string  s , return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation c...
Thursday, December 31, 2015

324. Wiggle Sort II

›
Q: Given an unsorted array  nums , reorder it such that  nums[0] < nums[1] > nums[2] < nums[3]... . Example: (1) Given  nums =...
Wednesday, December 30, 2015

266. Palindrome Permutation ----------E

›
Given a string, determine if a permutation of the string could form a palindrome. Example 1: Input: "code" Output: false Exampl...

265. Paint House II

›
There are a row of  n  houses, each house can be painted with one of the  k  colors. The cost of painting each house with a certain color is...

261. Graph Valid Tree ------------M

›
Given  n  nodes labeled from  0  to  n-1  and a list of undirected edges (each edge is a pair of nodes), write a function to check whether t...
Tuesday, December 29, 2015

256. Paint House ---------E

›
There are a row of  n  houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house w...

255. Verify Preorder Sequence in Binary Search Tree ----------M !!!!!~~~~~~

›
Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary search tree. You may assume each numbe...
‹
›
Home
View web version

About Me

Tiger
View my complete profile
Powered by Blogger.