上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 打开题目连接 题意:给2个数组(无序的)啊a,b,判断b数组中的每一个元素大于a数组中个数。 ACcode: lower_bound的详细: 参考链接 vector的详细:参考链接 阅读全文
posted @ 2015-12-19 13:36 lzyer 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 打开题目链接 题意:输入一个字符串,用,或;分隔输出字符串和整数(不含前导0和浮点数) ACcode: 阅读全文
posted @ 2015-12-19 11:36 lzyer 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Let's say you have a binary string such as the following: 011100011 One way to encrypt this string is to add to each digit the sum o 阅读全文
posted @ 2015-10-24 17:36 lzyer 阅读(390) 评论(0) 推荐(0) 编辑
摘要: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
posted @ 2015-09-25 00:45 lzyer 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 题解:二进制字符串相加 public String addBinary(String 阅读全文
posted @ 2015-09-23 22:15 lzyer 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
posted @ 2015-09-23 09:28 lzyer 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 今天打开myeclipse出现java.net.BindException: Address already in use: JVM_Bind :8080错误从网上搜了一下大多是讲端口被占用 用netstat -ano 查看8080端口,根据PID结束对应的进程。表示很无语,我用命令查看8080端口... 阅读全文
posted @ 2015-09-11 23:28 lzyer 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 现在比较流行短连接,例如新浪微博,腾讯等等公司都开始使用短连接。① 将长网址用md5算法生成32位签名串,分为4段,,每段8个字符;② 对这4段循环处理,取每段的8个字符, 将他看成16进制字符串与0x3fffffff(30位1)的位与操作,超过30位的忽略处理;③ 将每段得到的这30位又分成6段,... 阅读全文
posted @ 2015-09-02 14:50 lzyer 阅读(3294) 评论(0) 推荐(0) 编辑
摘要: Majority Element Total Accepted: 58500 Total Submissions: 163658My Submissions Question Solution Majority Element Question Solution Given an array of 阅读全文
posted @ 2015-09-01 16:36 lzyer 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Limits Constraints Examples This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of 阅读全文
posted @ 2015-08-30 12:27 lzyer 阅读(188) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页