码迷,mamicode.com
首页 > 其他好文
Word Ladder
1. TitleWord Ladder2. Http addresshttps://leetcode.com/problems/word-ladder/3. The questionGiven two words (beginWordandendWord), and a dictionary's w...
分类:其他好文   时间:2015-11-01 19:15:46    阅读次数:141
rem
2015-11-01今天突发奇想,如果css设为html{font-size:1px},那不就是不需要数值变换了,1px=1rem。后来亲自试了下,我想多了。原来谷歌浏览的默认字体是12px,就是说最小就是12px,如果你把font-size设为1px,它也不认你,所有低为12px的都按12px来算...
分类:其他好文   时间:2015-11-01 19:14:58    阅读次数:204
C- 流程控制(顺序结构,选择结构,循环结构)
一、选择结构1.if 特点: 同一时刻,只有一个大括号里面的代码会被执行2,switch 特点 默认情况下,只有一个case后面的代码会被执行 如果一个case后面没有break,而且这个case成立,就会被顺序执行后面所有case中的语句,知道遇到break为止 如果要在case后面定义...
分类:其他好文   时间:2015-11-01 19:15:39    阅读次数:151
Word Search
1. TitleWord Search2. Http addresshttps://leetcode.com/problems/word-search/3. The questionGiven a 2D board and a word, find if the word exists in the...
分类:其他好文   时间:2015-11-01 19:14:52    阅读次数:183
随机数
设计思路:1.用radom函数产生随机数放在数组中;2.用循环语句进行随机数相加,得到相应的结果。3.调用JOptionPane类输出相应的结果。流程图:源程序代码:importjavax.swing.JOptionPane.*;publicclass number {publicstaticvoi...
分类:其他好文   时间:2015-11-01 19:14:04    阅读次数:244
Two Sum
1. TitleTwo Sum2. Http addresshttps://leetcode.com/problems/two-sum/3. The questionGiven an array of integers, find two numbers such that they add up ...
分类:其他好文   时间:2015-11-01 19:15:34    阅读次数:113
期中总结
熟知任务:1. 复习Linux命令,特别是man -k, cheat, grep -nr xxx /usr/include2. 复习vi, gcc, gdb,make的使用3. 复习教材内容ch01 ch02 ch03 ch04 ch06 ch074. 复习前面的考题(答案解析见http://gro...
分类:其他好文   时间:2015-11-01 19:15:03    阅读次数:231
NOIP前夕:noi.openjudge,Ubiquitous Religions
Ubiquitous Religions总Time Limit:5000msMemory Limit:65536kBDescriptionThere are so many different religions in the world today that it is difficult to ...
分类:其他好文   时间:2015-11-01 19:14:43    阅读次数:181
[LeetCode]Swap Nodes in Pairs
题目描述:(链接)Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Y...
分类:其他好文   时间:2015-11-01 19:13:14    阅读次数:124
使用Tcmalloc进行堆栈分析
在前一篇译文《使用TCmalloc的堆栈检查》,介绍了Tcmalloc进行堆栈检查,今天翻译《heap-profiling using tcmalloc》,了解如何 TCmalloc进行堆栈分析。一、堆栈分析的用法:这篇技术文档描述了如何使用C++程序来分析堆栈。可以用来做一下三条事情:在任何时间了...
分类:其他好文   时间:2015-11-01 19:12:26    阅读次数:292
*_*
1、linus炮轰C++原帖(英文)http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=579182、2007年,linus之父炮轰C++:糟糕程序员的垃圾语言(中文)CSDN刘江的博客,包括事件前因后果的演变。htt...
分类:其他好文   时间:2015-11-01 19:12:49    阅读次数:119
关于c中的%x及其它格式化符
原文:http://blog.csdn.net/lincyang/article/details/6252443格式化:%x表示按16进制输出;int a = 16;%02x:输出10;%03x:输出:010;%04x:输出:0010;下文转载:http://tech.e800.com.cn/art...
分类:其他好文   时间:2015-11-01 19:14:11    阅读次数:250
信息安全系统设计基础期中总结
搜索指令:man -k例: man -k k1 | grep k2 | grep 数字搜索同时含有k1 k2 最后的数字代表区段,常用的:1.Linux2.系统调用3.c语言Vim指令:进入插入模式:i退出插入模式:Esc命令行::保存并退出:wq只退出不保存:qGcc与Gdb:Gcc:预处理:gc...
分类:其他好文   时间:2015-11-01 19:13:18    阅读次数:262
安装Nginx
在线安装 $sudo apt-get install nginx Nginx的版本是1.2.1 ubuntu安装Nginx之后的文件结构大致为: 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 启动...
分类:其他好文   时间:2015-11-01 19:12:52    阅读次数:197
HashMap原理解析
今天花了一天的时间敲代码查资料查阅了java 7 的HashMap的工作原理,java 8 的hashMap 代码更为复杂,一下是java 7的原理: ? ? put 方法 ? ? ? ? 1、首先对key 值进行null 验证,如果为null,则把元素存储到...
分类:其他好文   时间:2015-11-01 18:08:35    阅读次数:170
public final Cursor query ()参数解析
public final Cursor query (Uri uri, String[] projection,String selection,String[] selectionArgs, StringsortOrder) 第一个参数,uri是一个唯一的标识用来标识所要访问的Provider ? 第二个参数,projectio...
分类:其他好文   时间:2015-11-01 18:09:24    阅读次数:134
修复MBR的工具MBRFix下载
修复MBR的工具MBRFix下载 安装过linux系统的朋友,有过这样的经历,安装Grub的时候,把硬盘的MBR修改了,但是删除LINUX的时候,却连原来的WINDOWS系统也启动不了,怎么办? 写入MBR的方法,有两种比...
分类:其他好文   时间:2015-11-01 18:10:31    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!