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 ...
分类:
其他好文 时间:
2018-03-10 00:23:58
阅读次数:
140
some frequently used AC macros: AC_INIT :must AC_OUTPUT :must AC_PREREQ :determine ac version so that needed features are included AC_CONFIG_SRCDIR :d ...
分类:
其他好文 时间:
2018-03-06 12:51:14
阅读次数:
228
题目描述: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 思路: 判断一个链表是否有环。 * 同个时间Faster走的比Slo ...
分类:
其他好文 时间:
2018-03-05 11:14:41
阅读次数:
181
题目描述:Satellite Photographs Farmer John purchased satellite photos of W x H pixels of his farm (1 <= W <= 80, 1 <= H <= 1000) and wishes to determine t ...
分类:
其他好文 时间:
2018-03-04 19:01:34
阅读次数:
198
https://leetcode.com/problems/validate-binary-search-tree/description/Given a binary tree, determine if it is a valid binary search tree (BST).Assume ... ...
分类:
其他好文 时间:
2018-03-02 12:19:44
阅读次数:
140
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number i ...
分类:
其他好文 时间:
2018-03-02 10:24:03
阅读次数:
186
1.题目分析 Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are fil ...
分类:
其他好文 时间:
2018-03-02 01:11:25
阅读次数:
226
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2018-02-28 16:26:42
阅读次数:
136
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 ...
分类:
其他好文 时间:
2018-02-28 10:40:21
阅读次数:
136
https://leetcode.com/problems/balanced-binary-tree/description/Given a binary tree, determine if it is height-balanced.For this problem, a height-bala... ...
分类:
其他好文 时间:
2018-02-27 10:20:05
阅读次数:
140