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 s is a ...
分类:
其他好文 时间:
2018-10-15 11:52:49
阅读次数:
128
题目 Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and t ...
分类:
其他好文 时间:
2018-10-14 14:13:21
阅读次数:
145
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 s is a ...
分类:
其他好文 时间:
2018-10-14 14:05:13
阅读次数:
139
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: ...
分类:
其他好文 时间:
2018-10-11 20:06:25
阅读次数:
132
Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one eleme ...
分类:
其他好文 时间:
2018-10-07 14:41:32
阅读次数:
308
In general, you can tell whether something is callable or not with the built-in function callable. 1 import math 2 3 x=1 4 y=fibs_compute 5 print(call ...
分类:
编程语言 时间:
2018-10-05 12:21:40
阅读次数:
147
题目链接 Problem DescriptionFibonacci numbers are well-known as follow: Now given an integer N, please find out whether N can be represented as the sum of ...
分类:
其他好文 时间:
2018-10-04 13:44:28
阅读次数:
183
An Easy Physics Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3845 Accepted Submission( ...
分类:
其他好文 时间:
2018-10-04 11:36:40
阅读次数:
187
Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary search tree. You may assume each number in the seq ...
分类:
其他好文 时间:
2018-10-02 14:20:32
阅读次数:
165
In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o ...