原题: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation a ...
分类:
其他好文 时间:
2016-11-05 11:27:28
阅读次数:
202
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and ...
分类:
其他好文 时间:
2016-11-05 02:29:09
阅读次数:
220
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:
其他好文 时间:
2016-11-05 02:21:42
阅读次数:
168
接到一个项目4个静态库找不到 在 Link Binary With Libraries中添加的时候 也找不到libz.dylib 郁闷了 原来是ios9后 原来的dylib后缀名的库全部修改tbd 你要是实在想添加 没有不行 那也有办法 NOW 进入你项目的build phases ==>点击+号在 ...
分类:
其他好文 时间:
2016-11-04 16:08:57
阅读次数:
324
今天遇到一个坑,对于下列这样一个表: 它的数据如下: 现在我想在这个表上的name字段加一个唯一索引,发现无法创建: 发现UNIQUE KEY对字母的大小写不敏感,具体原因现在还没查到,查到解决方法如下: 也就是将name列的类型由varchar改为varchar binary类型,这样就可以解决了 ...
分类:
数据库 时间:
2016-11-03 18:43:28
阅读次数:
190
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:
其他好文 时间:
2016-11-03 13:25:36
阅读次数:
182
Problem: 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 f ...
分类:
其他好文 时间:
2016-11-03 09:30:34
阅读次数:
171
算法常用术语中英对照Data Structures 基本数据结构Dictionaries 字典PriorityQueues 堆Graph Data Structures 图Set Data Structures 集合Kd-Trees 线段树Numerical Problems 数值问题Solving ...
分类:
编程语言 时间:
2016-11-03 02:23:27
阅读次数:
170
##tensorflow简单介绍: TensorFlow? is an open source software library for numerical computation using data flow graphs.https://www.tensorflow.org/TensorFlo ...
分类:
其他好文 时间:
2016-11-02 23:23:07
阅读次数:
279
一 前言 MySQL 的主从复制作为一项高可用特性,用于将主库的数据同步到从库,在维护主从复制数据库集群的时候,作为专职的MySQL DBA,笔者相信大多数人都会遇到“Got fatal error 1236 from master when reading data from binary log ...
分类:
数据库 时间:
2016-11-02 18:06:21
阅读次数:
229