Given two strings S?1?? and S?2??, S=S?1???S?2?? is defined to be the remaining string after taking all the characters in S?2?? from S?1??. Your task ...
分类:
其他好文 时间:
2020-05-08 17:52:00
阅读次数:
67
import java.time.LocalDate; import java.time.Period; import java.util.Calendar; import java.math.*; public class demo { demo(){ } public void demo1(in ...
分类:
编程语言 时间:
2020-05-08 16:35:24
阅读次数:
79
In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have ...
分类:
其他好文 时间:
2020-05-08 12:40:20
阅读次数:
59
Recently when I do self study on Vue I find many articles in the internet with full of praise on "Vue" ‘s reactive Two Way Data binding trait. This fa ...
分类:
其他好文 时间:
2020-05-07 22:47:49
阅读次数:
138
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:
其他好文 时间:
2020-05-06 13:56:18
阅读次数:
55
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:
其他好文 时间:
2020-05-05 20:21:48
阅读次数:
56
Two Pointer 141. Linked List Cycle 判断链表是否有环 Can you solve it using O(1) (i.e. constant) memory? "leetcode 141. Linked List Cycle" 142. Linked List Cyc ...
分类:
其他好文 时间:
2020-05-05 18:11:17
阅读次数:
54
动态规划 Dynamic Programming ? 拆分(Divide): 将一个复杂问题拆分成一系列的简单子问题,每一次解决一个子 问题并将其结果存储起来。理想情况下用基于内存的数据结构。 ? 查找(lookup):在下一次遇到相同的子问题的时候,直接查找之前计算过的结果 而不是重新计算。理想情 ...
分类:
其他好文 时间:
2020-05-05 10:25:25
阅读次数:
64
"题目来源" Given two strings S 1 and S 2, S = S 1? S 2 is defined to be the remaining string after taking all the characters in S 2 from S 1. Your task is ...
分类:
编程语言 时间:
2020-05-05 01:06:54
阅读次数:
91
A Simple Problem with Integers POJ - 3468 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation ...
分类:
其他好文 时间:
2020-05-05 00:23:29
阅读次数:
80