- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 几种计算机求解Fibonacci number的方法
Fibonacci number是这样的数列:f(0) = 0, f(1) = 1,f(n) = f(n-1) + f(n-2) (n >=2)下面给出几种求解方法1) 使用函数递归方法.这个是最容易想到的方法long fib1(int k){ if(k == 0 || k == 1) { return k; }
2015-04-17 08:02:26 948
转载 8 Essential Vim Editor Navigation Fundamentals
This article is part of the ongoing Vi / Vim Tips and Tricks series. Navigation is a vital part of text editing. To be very productive, you should be aware of all possible navigation shortcuts in yo
2015-04-15 21:38:24 776
原创 设置开机进入命令行
有时候会因为某种问题(比如显卡驱动问题)不能进入图形界面,这时需要进入命令行进行调试。在 Ubuntu 系统上,在开机系统引导界面上,选择 Advanced 的模式,进入到可以修改引导参数的界面。找到这一行: linux /boot/vmlinuz-3.13.0-49-generic root=UUID=e5afb006-0344-48ac-bc1c-63f2c72e8ef1 r
2015-04-11 07:10:36 1200
原创 Linux下查看DNS服务器IP地址
1.最常用的方法是检查 /etc/resolv.conf 的内容:cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVER
2015-04-09 22:13:39 17793
转载 10 basic examples of linux netstat command
etstat is a command line utility that can be used to list out all the network (socket) connections on a system. It lists out all the tcp, udp socket connections and the unix socket connections.A
2015-04-09 07:54:37 1037
原创 查看路由信息的几种方法
1. route 命令:$ route -nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 w
2015-04-09 06:54:11 3066
原创 背包问题(三)
先看问题:An investor intends to earn maximum profits by investing money in many companies. However, the investment unit is 100 million won. The more each company return profits the more the investor ear
2015-04-09 01:46:04 1161
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人