Problem : There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time com ...
分类:
其他好文 时间:
2020-03-27 18:31:14
阅读次数:
78
vector 线性的动态分配存储空间。定义如下 template <class T, class Alloc = alloc> class vector { public: // 类型相关定义 typedef T value_type; typedef value_type* pointer; ty ...
分类:
其他好文 时间:
2020-03-27 16:51:10
阅读次数:
70
Sometimes you'd like to measure how two implementations compare in regards to run time. In this lesson you will learn how to quickly do this using Con ...
分类:
Web程序 时间:
2020-03-26 19:44:25
阅读次数:
87
题意:在BST中寻找两个节点,使它们的和为一个给定值。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(in ...
分类:
其他好文 时间:
2020-03-26 01:22:25
阅读次数:
70
914. 翻转游戏 中文English You are playing the following Flip Game with your friend: Given a string that contains only two characters: + and -, you can flip ...
分类:
其他好文 时间:
2020-03-26 01:06:15
阅读次数:
79
[leetcode]1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 链接 "leetcode" 描述 Given two binary trees original and cloned and giv ...
分类:
其他好文 时间:
2020-03-25 19:39:53
阅读次数:
70
Calculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line. Sample Input ...
分类:
其他好文 时间:
2020-03-25 16:09:38
阅读次数:
100
官网改版时碰到的问题。简单记录下: 【 问题 】 官网index页面移动端测试时,发现底部页脚的a标签无论如何点不动。 【 Debug 过程 】 1、先是在pc端用浏览器模拟手机看了下,问题重现; 2、然后看了下“规则”和“计算后”面板(用的是FireFox,习惯了……分别对应Chrome的styl ...
分类:
其他好文 时间:
2020-03-25 13:29:44
阅读次数:
67
Given a 2D grid, each cell is either a wall 2, a zombie 1 or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/down/left/rig ...
分类:
其他好文 时间:
2020-03-25 10:53:03
阅读次数:
76
A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker c ...
分类:
其他好文 时间:
2020-03-25 01:13:56
阅读次数:
53