Category: Algrithm

【leetcode】ReverseInteger

views 2,552 views    0
2013-04-21    Algrithm, CSDN    views 2,552 views    0   

Question : Reverse digits of an integer. Example1: x = […]

【leetcode】DivideTwoIntegers

views 2,556 views    0
2013-04-20    Algrithm, CSDN    views 2,556 views    0   

Question : Divide two integers without using multiplica […]

【leetcode】BinaryTreeZigzagLevelOrderTraversal

views 1,540 views    0
2013-04-20    Algrithm, CSDN    views 1,540 views    0   

Question : Given a binary tree, return the zigzag level […]

【leetcode】ZigzagConversion

views 1,735 views    0
2013-04-20    Algrithm, CSDN    views 1,735 views    0   

Question : The string "PAYPALISHIRING" is written in a […]

【leetcode】StringtoInteger(atoi)

views 5,211 views    0
2013-04-19    Algrithm, CSDN    views 5,211 views    0   

Question : Implement atoi to convert a string to an int […]

【leetcode】BinaryTreeLevelOrderTraversal

views 1,792 views    0
2013-04-19    Algrithm, CSDN    views 1,792 views    0   

Question : Given a binary tree, return the level order […]

【leetcode】MaximumDepthofBinaryTree

views 4,044 views    0
2013-04-19    Algrithm, CSDN    views 4,044 views    0   

Question : Given a binary tree, find its maximum depth. […]

【leetcode】SurroundedRegions

views 2,957 views    0
2013-04-14    Algrithm, CSDN    views 2,957 views    0   

Question : Given a 2D board containing 'X' and 'O' , ca […]

【leetcode】PalindromePartitioningII

views 2,215 views    0
2013-04-14    Algrithm, CSDN    views 2,215 views    0   

Question : Given a string s , partition s such that eve […]

【leetcode】PalindromePartitioning

views 1,750 views    0
2013-04-14    Algrithm, CSDN    views 1,750 views    0   

Question: Given a string s , partition s such that ever […]

【leetcode】PalindromeNumber

views 4,787 views    0
2013-04-14    Algrithm, CSDN    views 4,787 views    0   

Question: Determine whether an integer is a palindrome. […]

【leetcode】ValidPalindrome

views 2,195 views    0
2013-04-14    Algrithm, CSDN    views 2,195 views    0   

Question: Given a string, determine if it is a palindro […]

【leetcode】ImplementstrStr()

views 1,674 views    0
2013-04-14    Algrithm, CSDN    views 1,674 views    0   

Question: Implement strStr(). Returns a pointer to the […]

【leetcode】RotateList

views 1,681 views    0
2013-04-14    Algrithm, CSDN    views 1,681 views    0   

Question: Given a list, rotate the list to the right by […]

【leetcode】Triangle

views 1,719 views    0
2013-04-14    Algrithm, CSDN    views 1,719 views    0   

Question: Given a triangle, find the minimum path sum f […]

【leetcode】Pascal’s Triangle II

views 1,883 views    0
2013-04-14    Algrithm, CSDN    views 1,883 views    0   

Question:   Given an index k , return the k th row […]

【leetcode】Pascal’s Triangle

views 1,802 views    0
2013-04-13    Algrithm, CSDN    views 1,802 views    0   

Question:   Given numRows , generate the first num […]

【leetcode】PopulatingNextRightPointersinEachNodeII

views 2,138 views    0
2013-04-13    Algrithm, CSDN    views 2,138 views    0   

Question: Follow up for problem " Populating Next Right […]

【leetcode】PopulatingNextRightPointersinEachNode

views 1,780 views    0
2013-04-13    Algrithm, CSDN    views 1,780 views    0   

Question : Given a binary tree struct TreeLinkNode { Tr […]

【leetcode】SumRoottoLeafNumbers

views 1,421 views    0
2013-04-13    Algrithm, CSDN    views 1,421 views    0   

Question: Given a binary tree containing digits from 0- […]

【leetcode】PathSumII

views 1,991 views    0
2013-04-13    Algrithm, CSDN    views 1,991 views    0   

Question: Given a binary tree and a sum, find all root- […]

【leetcode】PathSum

views 1,551 views    0
2013-04-13    Algrithm, CSDN    views 1,551 views    0   

Question: Given a binary tree and a sum, determine if t […]

【leetcode】N-QueensII

views 1,970 views    0
2013-04-13    Algrithm, CSDN    views 1,970 views    0   

Question: Follow up for N-Queens problem. Now, instead […]

【leetcode】N-Queens

views 1,597 views    0
2013-04-13    Algrithm, CSDN    views 1,597 views    0   

Question: The n -queens puzzle is the problem of placin […]

【leetcode】AddTwoNumbers

views 2,509 views    0
2013-04-13    Algrithm, CSDN    views 2,509 views    0   

Question: You are given two linked lists representing t […]