上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: 题目:https://leetcode-cn.com/problems/binary-search/ 自己的代码: JAVA: public int search(int[] nums, int target) { int left = 0, right = nums.length - 1; whi 阅读全文
posted @ 2021-10-07 21:18 wltree 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/reverse-words-in-a-string/ 自己的思路:使用两个指针,i 指针负责从后向前遍历整个字符串,j 指针找到单词的末尾字符,单词开头的特点是:空格+字符(字符串的开头添加一个空格);单词末尾的特点:字符+空格 阅读全文
posted @ 2021-10-06 11:26 wltree 阅读(62) 评论(0) 推荐(0) 编辑
摘要: KMP算法 题目:https://www.luogu.com.cn/problem/P3375 public static void kmp_search(String s1, String s2){ if (s2.isEmpty()) System.out.println("-1"); int n 阅读全文
posted @ 2021-10-05 17:05 wltree 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/ 我的代码: public static String replaceSpace(String s) { if (s == "") return null; return s.repla 阅读全文
posted @ 2021-10-05 10:31 wltree 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/implement-strstr/ 自己的解答: public int strStr(String haystack, String needle) { int p=-1; String b=""; if(needle.equa 阅读全文
posted @ 2021-10-04 16:31 wltree 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/add-binary/ 自己的代码: public String addBinary(String a, String b) { String r=""; int flag=0; int ap=a.length(); int b 阅读全文
posted @ 2021-09-30 09:30 wltree 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/valid-palindrome/ 自己写的代码: public boolean isPalindrome(String s) { s=s.replaceAll("[^a-zA-Z0-9]",""); String s1 ="" 阅读全文
posted @ 2021-09-29 09:56 wltree 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 来源:https://baijiahao.baidu.com/s?id=1601445047342656382&wfr=spider&for=pc 大数据是什么?其实很简单,大数据其实就是海量资料巨量资料,这些巨量资料来源于世界各地随时产生的数据,在大数据时代,任何微小的数据都可能产生不可思议的价值 阅读全文
posted @ 2021-04-01 14:11 wltree 阅读(2392) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-21 12:04 wltree 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-21 11:51 wltree 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页