码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
leetcode--Linked List Cycle &Linked List Cycle II
Problem: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? https://oj.leetcode.com/problems/linked-list-cycle/ Problem II: ...
分类:其他好文   时间:2015-05-10 15:44:57    阅读次数:121
LeetCode 19 Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:其他好文   时间:2015-05-10 15:35:12    阅读次数:109
LeetCode 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 tree and sum ...
分类:其他好文   时间:2015-05-09 15:04:08    阅读次数:99
Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-05-09 14:51:09    阅读次数:120
Balanced Binary Tree -- leetcode
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-05-09 13:29:28    阅读次数:101
Valid Sudoku
https://leetcode.com/problems/valid-sudoku/Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially...
分类:其他好文   时间:2015-05-09 13:04:55    阅读次数:115
LeetCode【141】Linked List Cycle
Given a linked list, determine if it has a cycle in it.快慢步,直接AC代码:值得注意一下的地方就是if(!p2->next || !p2->next->next),如果p2==NULL,那么p2->next用法是错误的,而||运算符的性质是当前...
分类:其他好文   时间:2015-05-08 12:20:50    阅读次数:121
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 "()[]{}" are ...
分类:其他好文   时间:2015-05-08 10:55:44    阅读次数:95
【leetcode】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...
分类:其他好文   时间:2015-05-08 10:46:27    阅读次数:112
Android 判断app何时是打开或者关闭的技术研究
只有两种东西能让一个团队团结,恐惧或忠诚。---《速度与激情7》 原文链接:http://engineering.meetme.com/2015/04/android-determine-when-app-is-opened-or-closed/ 存在的问题 Android开发中不可避免的会遇到...
分类:移动开发   时间:2015-05-07 22:19:35    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!