上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 37 下一页
摘要: Ransom Note Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true 阅读全文
posted @ 2018-05-23 20:59 SkyeAngel 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2018-05-23 16:25 SkyeAngel 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Count Binary Substrings Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0 阅读全文
posted @ 2018-05-23 11:04 SkyeAngel 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Detect Capital Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be ri 阅读全文
posted @ 2018-05-20 17:05 SkyeAngel 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Goat Latin A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to 阅读全文
posted @ 2018-05-20 09:13 SkyeAngel 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 对于不是对于单个字符进行操作,而是对单词进行操作时,可以选择一些库函数 常用的有: 1. str.split(" "); 按照空格将字符串进行划分,得到字符串数组 注:这里使用的是正则表达式,当要将一片空格分开,可以采用str.split("\\s+")或者str.split(" +") 如果spl 阅读全文
posted @ 2018-05-20 09:03 SkyeAngel 阅读(560) 评论(0) 推荐(0) 编辑
摘要: Reverse String II 自己的解法: 就是用一个StringBuffer来进行字符串的接收,利用一个指针来指示当前是哪一个k部分,当 i + k < s.length() 时,证明从 i 到 i + k - 1部分是可以进行反转的,而从i + k 部分到 i + 2 * k部分是直接进行 阅读全文
posted @ 2018-05-19 16:31 SkyeAngel 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 数据流中的中位数 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。 自己的想法是利用二叉搜索树,将插入进来的数据流放入一个TreeSet中,这样就是一个有顺序的树 阅读全文
posted @ 2018-05-18 15:23 SkyeAngel 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 登录验证 店铺权限验证 拦截过滤 SpringMVC的Interceptor拦截是通过HandlerInterceptor实现的 方式1:定义的Interceptor类实现HandlerInterceptor接口,或继承实现了HandlerInterceptor接口的类(HandlerInterce 阅读全文
posted @ 2018-05-17 17:55 SkyeAngel 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 注册 register.html register.js 登录 login.html login.js 登出 logout.js 修改密码 changepwd.html changepwd.js 阅读全文
posted @ 2018-05-14 23:03 SkyeAngel 阅读(407) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 37 下一页