Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题目含义:判断一个列表是否有环路 ...
分类:
其他好文 时间:
2017-10-24 17:18:47
阅读次数:
142
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2017-10-24 17:14:18
阅读次数:
147
Given a singly linked list, determine if it is a palindrome. 题目含义:给定一个单列表,判断是否构成回文 ...
分类:
其他好文 时间:
2017-10-24 17:12:27
阅读次数:
163
139. Word Break Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a spac ...
分类:
其他好文 时间:
2017-10-24 00:16:50
阅读次数:
192
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. F ...
分类:
其他好文 时间:
2017-10-22 00:26:54
阅读次数:
167
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 dept ...
分类:
其他好文 时间:
2017-10-22 00:15:49
阅读次数:
175
Given an integer, write a function to determine if it is a power of two. 题目含义:判断一个数是否是2的n次方 ...
分类:
其他好文 时间:
2017-10-20 21:51:19
阅读次数:
218
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 intege ...
分类:
移动开发 时间:
2017-10-20 21:46:44
阅读次数:
251
Determine whether an integer is a palindrome. Do this without extra space. 题目含义:不要使用额外空间,判断整数是否为回文 ...
分类:
其他好文 时间:
2017-10-20 21:44:22
阅读次数:
211
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the ...
分类:
其他好文 时间:
2017-10-20 18:21:04
阅读次数:
80