码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
LeetCode -- Maximal Square
Question: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the fol ...
分类:其他好文   时间:2016-04-11 18:45:17    阅读次数:126
LeetCode -- Counting Bits
Question: 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 representa ...
分类:其他好文   时间:2016-04-11 11:45:26    阅读次数:142
HDOJ 1390 Binary Numbers(进制问题)
Problem Description Given a positive integer n, find the positions of all 1’s in its binary representation. The position of the least significant bit is 0.ExampleThe positions of 1’s in the binary rep...
分类:其他好文   时间:2016-04-10 14:57:38    阅读次数:123
104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree Total Accepted: 136537 Total Submissions: 286367 Difficulty: Easy Given a binary tree, find its maximum depth. The m ...
分类:其他好文   时间:2016-04-10 12:50:26    阅读次数:146
Jetty开发指导:WebSocket介绍
WebSocket是一个新的基于HTTP的双向通讯的协议。 它是基于低级别的框架协议。使用UTF-8 TEXT或者BINARY格式传递信息。 在WebSocket中的单个信息能够是不论什么长度(然而底层框架有单帧63bits的限制)。 发送的信息数量不受限制。 信息被持续的发送,基础协议不支持交叉的 ...
分类:Web程序   时间:2016-04-09 21:54:01    阅读次数:287
Redis资料汇总(二) 数据类型
1. keys redis本质上一个key-value db,所以我们首先来看看他的key.首先key也是字符串类型,但是key中不能包括边界字符 由于key不是binary safe的字符串,所以像"my key"和"mykey\n"这样包含空格和换行的key是不允许的 顺便说一下在redis内部 ...
分类:其他好文   时间:2016-04-09 16:49:15    阅读次数:196
257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2 3 \ 5 All root-to-leaf paths are: ["1->2->5" ...
分类:其他好文   时间:2016-04-09 13:37:09    阅读次数:124
LeetCode_104_Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from th ...
分类:其他好文   时间:2016-04-09 12:19:07    阅读次数:160
[LeetCode]Lowest Common Ancestor of a Binary Search Tree
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:其他好文   时间:2016-04-08 19:33:34    阅读次数:150
leetcode笔记:Invert Binary Tree
题目意图很明显,即翻转一棵二叉树。后面是几句话,大概的意思是:Google:我们有90%的工程师在使用你写的软件(Homebrew?),但你居然不会在白板上翻转一棵二叉树,真是操蛋。...
分类:其他好文   时间:2016-04-08 15:18:37    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!