摘要:
题目:https://leetcode-cn.com/problems/binary-search/ 自己的代码: JAVA: public int search(int[] nums, int target) { int left = 0, right = nums.length - 1; whi 阅读全文
摘要:
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 阅读全文
摘要:
题目: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 阅读全文