码迷,mamicode.com
首页 >  
搜索关键字:solution upgrade    ( 13024个结果
6-5日
Max Points on a Line开始无脑匹配结果超时:class Solution {public: int maxPoints(vector &points) { int ans = 0; for (int i = 0; i ans) ans = num...
分类:其他好文   时间:2014-06-29 13:10:03    阅读次数:268
[leetcode]_Binary Tree Inorder Traversal
题目:二叉树的中序遍历。思路:用递归来写中序遍历非常简单。但是题目直接挑衅说,----->"Recursive solution is trivial"。好吧。谁怕谁小狗。递归代码: 1 List inOrder = new ArrayList(); 2 3 public ...
分类:其他好文   时间:2014-06-29 12:55:36    阅读次数:176
树莓派DS18b20
电路图:升级:sudo apt-get updatesudo apt-get upgrade加载驱动:sudo modprobe w1-gpio sudo modprobe w1-therm查看:lsmod 查看w1模块是否载入cat /sys/bus/w1/devices/28-*/w1_slav...
分类:其他好文   时间:2014-06-29 12:06:30    阅读次数:217
【Leetcode】Divide Two Integers
Divide two integers without using multiplication, division and mod operator. 1 class Solution { 2 public: 3 int divide(int dividend, int divisor) ...
分类:其他好文   时间:2014-06-06 17:40:07    阅读次数:193
A debugger is already attached
Today is the last day that all the laptops of winXP OS should be upgrade to WIN7. After updated. when i tried to debug my application,i received this ...
分类:其他好文   时间:2014-06-06 15:51:14    阅读次数:275
leetcode第一刷_Count and Say
水题。描写叙述的还挺麻烦的,实际上就是纸老虎,用两个string,一个存上一轮的结果,一个用来更新出这一轮的结果,每次扫描上一轮,统计一个字符出现的次数,然后把这个次数和字符增加到这一轮的字符串中就能够了。class Solution {public: string countAndSay(i...
分类:其他好文   时间:2014-06-05 18:34:43    阅读次数:204
leetcode--Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".public class Solution { /**The program is us...
分类:其他好文   时间:2014-06-05 14:08:35    阅读次数:188
leetcode--Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他好文   时间:2014-06-05 13:26:37    阅读次数:335
LeetCode Swap Nodes in Pairs
class Solution {public: ListNode *swapPairs(ListNode *head) { ListNode *a = NULL; ListNode *b = NULL; ListNode *tail = NULL; ...
分类:其他好文   时间:2014-06-05 12:55:24    阅读次数:216
VS 文件自动定位功能
在Visual Studio 中,当你在所有打开的文件中进行切换时,在Solution Explorer中也会自动定位到这个文件的目录下面,这个功能用来查找当前文件是非常有用。在Tools->Options中,有个Trace Active Item in Solution Exploer,把那个勾勾...
分类:其他好文   时间:2014-06-03 15:27:57    阅读次数:329
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!