名词分两类: 可数名词 是指数得过来的概念 比如:apple , pencil , student. 可数名词数量在两个或两个以上,可数名词要加s,比如 two apples , three pencils , five students 可数名词有单数和复数之分: apple-apples、pen ...
分类:
其他好文 时间:
2020-03-07 20:40:49
阅读次数:
106
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:
其他好文 时间:
2020-03-06 15:05:00
阅读次数:
54
[剑指Offer]41 和为S的两个数字 VS 和为S的连续正数序列 Leetcode T1 Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specif ...
分类:
其他好文 时间:
2020-03-06 12:41:24
阅读次数:
59
YAML的块序列表示一系列节点。 每个项目都由一个前导 - 指示符表示。 请注意,YAML中的-指示符应与具有空格的节点分开。 块序列的基本表示如下 - block sequence: ··- one↓ - two : three↓ YAML 示例 请观察以下示例以更好地理解块序列。 示例1 por ...
分类:
其他好文 时间:
2020-03-06 01:22:08
阅读次数:
63
算法介绍 + 算法简介:尺取法,又名two pointers(双指针法),是一种简洁而有效的dp优化算法,常见于将时间复杂度O($n^2$)的一般dp优化为O(n)。 + 适用条件:限制变量随着指针的单向移动,而呈单调变化。 + 实现细节: 1. 申请两个指针$p_1$,$p_2$。 2. 固定$p ...
分类:
其他好文 时间:
2020-03-05 20:52:17
阅读次数:
75
"I Count Two Three" 可以预处理出所有的满足题目并且比1e9小的的数,不会很多。排个序。询问的时候二分查找就好了 ...
分类:
其他好文 时间:
2020-03-04 23:33:43
阅读次数:
99
练习地址:https://leetcode-cn.com/problems/combine-two-tables/ 表1: Person + + + | 列名 | 类型 | + + + | PersonId | int | | FirstName | varchar | | LastName | v ...
分类:
编程语言 时间:
2020-03-04 19:14:25
阅读次数:
85
There are three popular metrics to measure the correlation between two random variables: Pearson's correlation coefficient, Kendall's tau and Spearman ...
分类:
其他好文 时间:
2020-03-04 09:49:24
阅读次数:
112
A.Two Rabbits Gildong厌倦了参加过多次Codeforce攻击,决定在公园休息一下。他坐在长凳上,很快他发现两只兔子在跳来跳去。一只兔子比另一只更高。 他注意到两只兔子在互相跳来跳去。两只兔子的位置可以表示为水平线上的整数坐标。较高的兔子当前位于位置x,而较短的兔子当前位于位置y( ...
分类:
其他好文 时间:
2020-03-04 09:25:56
阅读次数:
83
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find ...
分类:
其他好文 时间:
2020-03-04 09:16:12
阅读次数:
75