码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
mysql 主从 Got fatal error 1236 from master when reading data from binary log: 'Could not find first 错误
本地MySQL环境,是两台MySQL做M-M复制。今天发现错误信息:mysql 5.5.28-log> show slave status\G *************************** 1. row *************************** Slave_IO_State....
分类:数据库   时间:2015-06-05 12:08:25    阅读次数:669
Binary Tree Preorder Traversal -- leetcode
Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recursive soluti...
分类:其他好文   时间:2015-06-05 10:14:40    阅读次数:158
LeetCode191:Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 0000000000000...
分类:其他好文   时间:2015-06-05 10:13:12    阅读次数:133
Maximal Square
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 following matr...
分类:其他好文   时间:2015-06-05 06:23:58    阅读次数:298
Java for LeetCode 144 Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3...
分类:编程语言   时间:2015-06-04 22:33:35    阅读次数:133
Java for LeetCode 145 Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,...
分类:编程语言   时间:2015-06-04 22:23:54    阅读次数:210
二分查找法
$arr = array(4,58,11,34,88,45,32,54,63,78);function binary($arr,$bnum){ if(is_array($arr) && count($arr) > 0) { sort($arr); $start = 0; $end = coun...
分类:其他好文   时间:2015-06-04 13:21:10    阅读次数:91
Project Euler:Problem 36 Double-base palindromes
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases. Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2. (Please note that the...
分类:其他好文   时间:2015-06-04 12:00:19    阅读次数:109
Maximal Square
Maximal Square问题:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.思路: 动态规划我的代码:public....
分类:其他好文   时间:2015-06-04 11:45:38    阅读次数:85
Leetcode 116 Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他好文   时间:2015-06-04 11:36:24    阅读次数:97
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!