xixi2


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

958. Check Completeness of a Binary Tree

发表于 2019-10-25 | 分类于 leetcode

Check Completeness of a Binary Tree

Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wikipedia:
In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h.

阅读全文 »

222. Count Complete Tree Nodes

发表于 2019-10-25 | 分类于 leetcode

Given a complete binary tree, count the number of nodes.

Definition of a complete binary tree from Wikipedia:
In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h.

阅读全文 »

209. Minimum Size Subarray Sum

发表于 2019-10-24 | 分类于 leetcode

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t one, return 0 instead.

阅读全文 »

981. Time Based Key-Value Store

发表于 2019-10-24 | 分类于 leetcode

Create a timebased key-value store class TimeMap, that supports two operations.

阅读全文 »

350. Intersection of Two Arrays II

发表于 2019-10-23 | 分类于 leetcode

Given two arrays, write a function to compute their intersection.

阅读全文 »

vector的实现

发表于 2019-10-20 | 分类于 STL

STL SGI 2.9.2版本源码中vector的实现细节。

阅读全文 »

linux常用命令

发表于 2019-10-19 | 分类于 linux基础

linux常用命令有:grep, awk, ps等待.

阅读全文 »

数据库锁

发表于 2019-10-19 | 分类于 数据库

mysql数据库中存在多种锁。

阅读全文 »

fork和vfork

发表于 2019-10-19 | 分类于 linux基础

fork和vfork

阅读全文 »

进程

发表于 2019-10-19 | 分类于 unix 高级环境编程

以下对进程相关的几个概念进行解释.

阅读全文 »
1…567…18
xixi2

xixi2

一去不复返的远方还有无法抵达的过去

175 日志
21 分类
107 标签
© 2019 xixi2
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.4
访问人数 总访问量 次