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. N ...
分类:
其他好文 时间:
2019-04-12 13:41:55
阅读次数:
143
Given a binary tree, determine if it is a valid binary search tree (BST). Given a binary tree, determine if it is a valid binary search tree (BST). As ...
分类:
其他好文 时间:
2019-04-11 16:25:36
阅读次数:
150
import java.util.Scanner;public class yanghui{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); System.out.println("\nPlease ...
分类:
编程语言 时间:
2019-04-10 16:43:26
阅读次数:
182
https://docs.sonarqube.org/latest/user-guide/issues/#header-4 Understanding which Issues are "New" To determine the creation date of an issue, an algo ...
分类:
其他好文 时间:
2019-04-09 18:15:13
阅读次数:
184
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 binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only ...
分类:
其他好文 时间:
2019-03-31 14:02:13
阅读次数:
144
[LeetCode]20 Valid Parentheses 有效的括号 Description Given a string containing just the characters , , , , and , determine if the input string is valid. A ...
分类:
其他好文 时间:
2019-03-30 01:28:18
阅读次数:
168
FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line ...
分类:
其他好文 时间:
2019-03-28 00:21:33
阅读次数:
154
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:
其他好文 时间:
2019-03-21 21:41:27
阅读次数:
165