码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
脱离SVN的控制
在桌面创建一个记事本文件,然后吧这句话复制进去for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" 然后保存,再把记事本文件重命名 叫 删除SVN信息.bat ,这时候要注意后缀名不是txt而是bat 了,然后双击这个批处理文...
分类:其他好文   时间:2014-06-28 22:33:55    阅读次数:217
Leetcode: Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?抠细节的题,题目思想如下:to...
分类:其他好文   时间:2014-06-28 22:11:37    阅读次数:214
【Leetcode】Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Could you devise a constant space solution? 思路:因为需要遍历整个矩阵,时间复杂度肯定需要O(m * n),对于空间复杂度而言,第一种是可以使用O(m * n),...
分类:其他好文   时间:2014-06-18 12:33:39    阅读次数:167
kernel编程规范
1. 制表符8个空格2. 每行最长80字符3. 代码块的{放在首行,但是函数的{放在次行4. 只有一行的if块,不加{}5. 不在()前后加空格6. 正常关键字后加一个空格,if, switch, case, for, do, while7. 但是不要在sizeof、typeof、alignof或者...
分类:其他好文   时间:2014-06-18 10:33:56    阅读次数:204
leetcode -day30 Reverse Linked List II
1、 ?? Reverse Linked List II  Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL....
分类:其他好文   时间:2014-06-17 23:03:12    阅读次数:257
Spring MVC Controller配置方式
第一种 URL对应Bean如果要使用此类配置方式,需要在XML中做如下样式配置 以上配置,访问/hello.do就会寻找ID为/hello.do的Bean,此类方式仅适用小型的应用系统第二种 为URL分配Bean使用一个统一配置集合,对各个URL对应的Controller做关系映射 hello...
分类:编程语言   时间:2014-06-17 20:22:40    阅读次数:227
shell使用for循环完成100以内累加
#100以内整数和 #!/bin/sh declare-iSUM=0 for((i=1;i<=100;i+=1)) do letSUM+=$i done echo$SUM #!/bin/sh declare-iSUM=0 foriin{1..100} do letSUM+=$i done echo$SUM #100以内偶数和 #!/bin/sh declare-iSUM=0 for((i=2;i<=100;i+=2)) do letSUM+=$i done echo$SUM..
分类:其他好文   时间:2014-06-17 17:46:32    阅读次数:232
Android中将xml布局文件转化为View树的过程分析(下)-- LayoutInflater源码分析
在Android开发中为了inflate一个布局文件,大体有2种方式,如下所示: // 1. get a instance of LayoutInflater, then do whatever you want LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOU...
分类:移动开发   时间:2014-06-17 16:42:35    阅读次数:360
Palindrome Number
题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to ...
分类:其他好文   时间:2014-06-17 16:12:39    阅读次数:226
filter press supplier
Cold weather is coming and in some northern states is already here. That means it’s time to winterize your car. Vehicle maintenance is something we do...
分类:其他好文   时间:2014-06-17 14:39:34    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!