自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 28实现 strStr() 函数

实现 strStr() 函数。 给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出 needle 字符串出现的第一个位置(下标从 0 开始)。如果不存在,则返回 -1 。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/implement-strstr 自己用暴力方式做出来的 public int strStr(String haystack, String needle) { //先取出来避

2022-04-20 16:33:33 207

原创 26删除有序数中的组重复项

自己写的 public int removeDuplicates(int[] nums) { int length = nums.length; if (length == 0){ return 0; } int a = 1; for (int i = 1; i < length; i++) { if (nums[i] != nums[i-1]){ .

2022-04-19 00:34:56 63

原创 冒泡排序与二分查找

//冒泡排序 public void BubbleSort(int[] a){ int n = a.length; int temp; for (int i = 0; i < n-1; i++) { for (int j = 0; j < n-i-1; j++) { if (a[j] > a[j+1]){ temp = a[j];

2022-04-17 17:24:31 87

原创 LeetCode20有效的括号

LeetCode20有效的括号 /** * Date:2022/04/17 12:57 * * @author 小豆子 * @version 1.0 * 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。 * * 有效字符串需满足: * * 左括号必须用相同类型的右括号闭合。 * 左括号必须以正确的顺序闭合。 * * * 示例 1: * * 输入:s = "()" * 输出:true * 示例 2: * * 输入:s

2022-04-17 15:01:51 47

原创 记一次错误

记一次错误 发生在学习spring5视频中,使用注解实现aop 在IDEA的xml资源文件中出现URI is not registered错误 file --> settings- -> languages & frameworks -->Schemas and DTDs, 把报红链接添加进去,可暂时解决 解决了1后 异常:Caused by: java.lang.NoClassDefFoundError: org/springframework/aop/TargetSo

2021-10-29 17:52:34 133

原创 markdown-Typora 图标使用

markdown-Typora 图标使用 1-在 Markdown 中使用表情符号 2-Typora中的emoji表情 3-Emoji By Unicode+&#x???; 4-搜狗输入法自定义短语

2021-10-28 00:49:54 538

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除