https://leetcode.com/problems/sum-of-square-numbers/ Given a non-negative integer c, your task is to decide whether there're two integers a and b such ...
分类:
其他好文 时间:
2019-04-13 10:41:19
阅读次数:
149
字符串操作 Because we need to go through the String element by element and check whether a value is a space, we’ll convert our String to an array of bytes ...
分类:
其他好文 时间:
2019-04-12 13:21:25
阅读次数:
173
description: check whether the (){}[] is valid(is pair) Note: Example: my answer: "感恩" my answer 大佬的answer: class Solution { public: bool isValid(stri ...
分类:
其他好文 时间:
2019-04-10 15:10:36
阅读次数:
117
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2019-04-09 20:27:21
阅读次数:
175
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the pr ...
分类:
其他好文 时间:
2019-04-09 00:31:16
阅读次数:
99
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: ...
分类:
其他好文 时间:
2019-04-04 09:27:56
阅读次数:
162
Given a string which we can delete at most k, return whether you can make a palindrome. For example, given 'waterrfetawx' and a k of 2, you could dele ...
分类:
其他好文 时间:
2019-03-29 13:05:49
阅读次数:
107
题目如下: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of ...
分类:
其他好文 时间:
2019-03-23 22:47:38
阅读次数:
151
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2019-03-18 13:20:52
阅读次数:
150