摘要: package 算法; import java.util.Arrays; import java.util.Scanner; public class 字符串偏移 { /* * param A: A string * param offset: Rotate string with offset. * return: Rotated string. ... 阅读全文
posted @ 2016-10-19 22:25 鹏鹏进阶 阅读(1773) 评论(0) 推荐(0) 编辑
摘要: package 算法; /** * 字符串ABCD,可以由字符串BCDA或者CDAB通过循环移位而得到。 * 请编程实现以下检测:字符串S1是否可以由字符串S2通 过循环移位而得到。 * 语言不限(推荐C/C++,不推荐写伪码) * @author chengpeng * */ public class RotateString { private static vo... 阅读全文
posted @ 2016-10-19 13:23 鹏鹏进阶 阅读(671) 评论(0) 推荐(0) 编辑
摘要: http://www.open-open.com/lib/view/open1406105786710.html 1.在https://github.com new repository 2.在eclipse中new project 比如:Test项目 3.右击"Test"->Team->share 阅读全文
posted @ 2016-10-19 02:24 鹏鹏进阶 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 一.理论准备 Map是键值对的集合接口,它的实现类主要包括:HashMap,TreeMap,Hashtable以及LinkedHashMap等。 TreeMap:基于红黑树(Red-Black tree)的 NavigableMap 实现,该映射根据其键的自然顺序进行排序,或者根据创建映射时提供的 阅读全文
posted @ 2016-10-19 02:04 鹏鹏进阶 阅读(1286) 评论(0) 推荐(0) 编辑