java对转义字符没有提供任何特殊处理。编译器在将程序解析成各种符号之前,先将 Unicode转义字符转换成为它们所表示的字符[JLS 3.2] Read More
posted @ 2016-01-13 10:22 Dance With Automation Views(98) Comments(0) Diggs(0) Edit
java对转义字符没有提供任何特殊处理。编译器在将程序解析成各种符号之前,先将 Unicode转义字符转换成为它们所表示的字符[JLS 3.2]阅读笔记 Read More
posted @ 2016-01-13 10:18 Dance With Automation Views(119) Comments(0) Diggs(0) Edit
1: /// 2: /// Assume you have a method isSubstring which checks if one word is a substring of another. 3: /// Given two strings, s1 and s2, 4: /// write cod... Read More
posted @ 2014-01-10 12:49 Dance With Automation Views(185) Comments(0) Diggs(0) Edit
1: /// 2: /// Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column is set to 0. 3: /// 4: class Program 5: { ... Read More
posted @ 2014-01-07 19:21 Dance With Automation Views(241) Comments(0) Diggs(0) Edit
1: /// 2: /// Q:Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, 3: /// write a method to rotate the image by 90 degrees. Can yo... Read More
posted @ 2014-01-07 18:51 Dance With Automation Views(275) Comments(0) Diggs(0) Edit
1: class Program 2: { 3: static void Main(string[] args) 4: { 5: string s = File.ReadAllText(@"e:\test.txt"); 6: Program p =... Read More
posted @ 2013-12-30 20:31 Dance With Automation Views(281) Comments(0) Diggs(0) Edit
1: class Program 2: { 3: static void Main(string[] args) 4: { 5: string s = File.ReadAllText(@"e:\test.txt"); 6: Program... Read More
posted @ 2013-12-27 20:04 Dance With Automation Views(364) Comments(0) Diggs(0) Edit
1: class Program 2: { 3: static void Main(string[] args) 4: { 5: string s = File.ReadAllText(@"e:\test.txt"); 6: Prog... Read More
posted @ 2013-12-27 11:04 Dance With Automation Views(247) Comments(0) Diggs(0) Edit
1: class Program 2: { 3: static void Main(string[] args) 4: { 5: Program p = new Program(); 6: string r = p.ReverseString("5毛1234\0"); 7: ... Read More
posted @ 2013-12-25 20:27 Dance With Automation Views(289) Comments(0) Diggs(0) Edit
1: class Program 2: { 3: static void Main(string[] args) 4: { 5: Program p = new Program(); 6: List result = p.FindMostF... Read More
posted @ 2013-12-24 20:34 Dance With Automation Views(230) Comments(0) Diggs(0) Edit