- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 Cracking the Coding Interview Chap1 Q1.5
Write a method to replace all spaces in a string with ‘%20’You can not put '%20' directly into a string, and the size of new string doesn't equal to old string.public class ccChap1_5 { pu
2013-10-05 13:24:08 511
原创 Cracking the Coding Interview Chap1 Q1.4
Q1.4 Write a method to decide if two strings are anagrams or notpublic class ccChap1_4 { public static void main(String[] args){ String s1 = "ABCDEFFG"; String s2 = "EFFGCBAD"; Syste
2013-10-04 12:29:37 479
原创 Cracking the Coding Interview Chap1 Q1.3
Q1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An extra copy of the array
2013-10-04 12:25:23 578
原创 Cracking the Coding Interview Chap1 Q1.2
1.2 Write code to reverse a C-Style String. (C-String means that “abcd” is represented as five characters, including the null character.)Use BufferBuilder's setCharAt method, switch the char of
2013-10-04 12:05:28 533
原创 Cracking the Coding Interview Chap1 Q1.1
Q1.1Implement an algorithm to determine if a string has all unique characters. What if you can not use additional data structures?Sol.1 :check every char of the string to every other char of
2013-10-04 11:59:04 891
原创 OVS Open vSwitch 基本操作 命令(1)
一、两种 OVS fallback behavior1. standalone这种模式下,没有运行controller的情况下,OVS会自动调回普通switch模式,如果有controller的情况,ovs会自动变成openflow switch命令:ovs-vsctl set-fail-mode ovs-switch standaloneovs-switch替换成brid
2013-05-26 21:19:52 2123
原创 UEFI win7 64 win8 usb hp
网上似乎没有太多对win8本装回win7的资料 自己稍微总结一下自己的经验 至于win8有多愚蠢我就不说了如果是新买的win8本 主板一般都会支持UEFI 尤其你发现自己的系统秒开 那基本就支持UEFI无疑了基本的步骤 以hp envy 7为例:主板设置成兼容模式把u盘格成fat32用usb制作工具将win7镜像拷到u盘 64位支持UEFI 32
2013-05-26 21:05:09 1800
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人