- 博客(4)
- 收藏
- 关注
原创 563. Binary Tree Tilt
Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtree node values and the sum of all right subtree ...
2019-02-12 13:39:01 124
原创 get_mnist.sh学习
目录第一行脚本解释器第二行注释第三行符号用法第八行if用法这是caffe里面,下载mnist数据集用到的脚本,在此记录下,也当学习一下shell,如下是脚本内容,为后续方便,添加了行号。 #!/usr/bin/env sh# This scripts downloads the mnist data and unzips it.DIR="$( cd "$(dirn...
2019-02-11 13:48:07 456
原创 977. Squares of a Sorted Array
Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order.Example 1:Input: [-4,-1,0,3,10]Output: [0,1,9,16,1...
2019-02-04 12:32:36 359
原创 458. Poor Pigs
There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison it will die within 15 minutes. What is the minimum...
2019-02-02 13:49:43 269
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人