码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
Valid Palindrome
[leetcode]Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases....
分类:其他好文   时间:2014-09-17 23:24:22    阅读次数:198
[leetcode] Valid Palindrome @ Python
原题地址:https://oj.leetcode.com/problems/valid-palindrome/题意:Given a string, determine if it is a palindrome, considering only alphanumeric characters an...
分类:编程语言   时间:2014-09-16 08:05:40    阅读次数:239
LeetCode Solutions : Path Sum I & II
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. For example: Given the below binary...
分类:其他好文   时间:2014-09-15 17:54:12    阅读次数:229
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? 1 /** 2 * Definition for singly-linked l....
分类:其他好文   时间:2014-09-13 20:06:35    阅读次数:184
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.Fo...
分类:其他好文   时间:2014-09-13 20:04:45    阅读次数:278
Leetcode: Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:其他好文   时间:2014-09-13 13:16:25    阅读次数:142
LeetCode: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? 1 /** 2 * Definition for singly-linked l....
分类:其他好文   时间:2014-09-11 22:18:12    阅读次数:311
#leetcode#Linked List Cycle
1、题目Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?2、思路设置两个指针,一个每次走一步,另一个每次走两步。走两步的一定会追上走...
分类:其他好文   时间:2014-09-11 19:04:32    阅读次数:223
Leetcode:Word Break 字符串分解为单词
Word BreakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary w...
分类:其他好文   时间:2014-09-11 16:54:22    阅读次数:170
Leetcode dp Word Break
Word Break  Total Accepted: 22281 Total Submissions: 105657My Submissions Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence o...
分类:其他好文   时间:2014-09-09 21:39:29    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!