码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
LeetCode --- 20. Valid Parentheses
题目链接:Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "...
分类:其他好文   时间:2015-01-30 22:40:16    阅读次数:227
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他好文   时间:2015-01-30 16:08:22    阅读次数:149
SGU[105] Div 3
Description描述There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers...
分类:其他好文   时间:2015-01-29 22:23:58    阅读次数:258
leetcode 36: Valid Sudoku
Total Accepted: 24574 Total Submissions: 90344 Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells ...
分类:其他好文   时间:2015-01-29 14:44:06    阅读次数:182
Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked list. *...
分类:其他好文   时间:2015-01-29 12:07:35    阅读次数:117
[LeetCode] Word Break 拆分词句
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:其他好文   时间:2015-01-29 07:02:47    阅读次数:150
LeetCode --- 9. Palindrome Number
题目链接:Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the...
分类:其他好文   时间:2015-01-28 21:30:17    阅读次数:208
31: Balanced Binary Tree
/* * Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which th.....
分类:其他好文   时间:2015-01-27 23:16:02    阅读次数:206
30:Path Sum
/* Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum...
分类:其他好文   时间:2015-01-27 23:09:49    阅读次数:206
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他好文   时间:2015-01-27 18:29:32    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!