先编写Dockerfile

1
2
3
4
5
6
7
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/
阅读全文 »

前言

阅读全文 »

原题

1
2
3
4
5
6
7
8
9
10
11
12
13
Given a binary tree, find its maximum depth.

The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.

For example:
Given binary tree [3,9,20,null,null,15,7],

3
/ \
9 20
/ \
15 7
return its depth = 3.
阅读全文 »

Sensor

传感器已经是Android手机必备技术,没有传感器可以称的是老古董。下面介绍几个比较常用的传感器。

阅读全文 »

原题:

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

阅读全文 »
0%