- 博客(6)
- 收藏
- 关注
转载 leetcode 155 最小栈
背景设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。push(x) -- 将元素 x 推入栈中。pop() -- 删除栈顶的元素。top() -- 获取栈顶元素。getMin() -- 检索栈中的最小元素。示例:MinStack minSta...
2019-03-12 23:01:00 83
转载 leetcode Walls and Gates
背景You are given a m x n 2D grid initialized with these three possible values.-1 - A wall or an obstacle.0 - A gate.INF - Infinity means a...
2019-02-20 22:04:00 106
转载 leetcode Shortest Distance from All Buildings
背景You want to build a house on an empty land which reaches all buildings in the shortest amount of distance. You can only move up, down, left and ...
2019-02-20 22:00:00 131
转载 leetcode 417 Pacific Atlantic Water Flow
背景Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left an...
2019-02-20 21:45:00 98
转载 图 Graph
1. 图的相关术语阶(Order)图的顶点数。子图(Sub-Graph)如果一个图的顶点集包含于另一个图的顶点集,并且边集也包含于另一个图的边集,那么这个图就是另一个图的子图。度(Degree)与这个顶点关联的边的条数。入度(In-Degree)和出度(Out-D...
2019-02-17 17:43:00 125
转载 构建Dockerfile报错 "docker build" requires exactly 1 argument
背景最近工作需要,用Dockerfile来构建镜像,找来的文档如下https://yeasy.gitbooks.io/docker_practice/content/image/build.html$ docker build -t nginx:v3 .Sending build ...
2019-02-14 00:17:00 1642
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人