Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa ...
分类:
其他好文 时间:
2020-02-04 11:04:16
阅读次数:
77
1 """ 2 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 3 For example, this binary tree [1,2,2,3,4,4,3] ...
分类:
其他好文 时间:
2020-02-02 23:54:27
阅读次数:
111
1、题目 9. Palindrome Number Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example ...
分类:
其他好文 时间:
2020-01-29 17:47:22
阅读次数:
55
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 ...
Can you walk and talk at the same time? If so, you've experienced what it's like to be in two states at the same time. Hopefully, those two states hav ...
分类:
其他好文 时间:
2020-01-20 09:39:21
阅读次数:
70
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:
其他好文 时间:
2020-01-20 09:30:50
阅读次数:
92
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersReturn Tru ...
分类:
其他好文 时间:
2020-01-18 10:37:01
阅读次数:
92
原题链接在这里:https://leetcode.com/problems/24-game/ 题目: You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operate ...
分类:
其他好文 时间:
2020-01-16 14:51:19
阅读次数:
97
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the n ...
分类:
其他好文 时间:
2020-01-15 23:18:13
阅读次数:
92
#!/bin/bashSOURCE_DIR=( $* )TARGET_DIR=/dataYEAR=`date +%Y`MONTH=`date +%m`DAY=`date +%d`WEEK=`date +%u`FILES=system_backup.tgzCODE=$?if [ -z "$*" ];t ...
分类:
系统相关 时间:
2020-01-07 00:30:01
阅读次数:
116