自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Leetcode Binary Search

文章目录29. Divide Two Integers33. Search in Rotated Sorted Array81. Search in Rotated Sorted Array II34. Find First and Last Position of Element in Sorted Array35. Search Insert Position69. Sqrt(x)74. Se...

2019-09-17 11:02:43 403

原创 Leetcode backtracking

文章目录17. Letter Combinations of a Phone Number22. Generate Parentheses46. Permutations17. Letter Combinations of a Phone Number22. Generate ParenthesesGiven n pairs of parentheses, write a function ...

2019-09-14 15:49:05 648

原创 Leetcode DFS

文章目录100. Same101. Symmetric Tree100. SameTreeGiven two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identica...

2019-09-12 19:26:49 365

原创 深度优先搜索(DFS)和广度优先搜索(BFS) 无向图

文章目录DFS寻找路径BFS寻找路径在程序中,在搜索一幅图时遇到有多边需要遍历的情况的时候,我们会选择其中一条并将其他通道留到以后继续搜索。在深度优先搜索中,我们用了一个可以下压的栈,来支持递归搜索方法。使用LIFO(后进先出)的规则来描述压栈和走迷宫时先探索相邻的通道类似。从有待搜索的通道中选择最晚遇到的那条。在广度优先搜索中,我们希望按照起点的距离的顺序遍历所有顶点,使用FIFO(先进...

2019-09-12 16:11:34 526

原创 Leetcode DP 动态规划问题

文章目录5. Longest Palindromic Substring62. Unique Paths63. Unique Paths II64. Minimum Path Sum70. Climbing Stairs91. Decode Ways96. Unique Binary Search Trees95. Unique Binary Search Trees II5. Longest ...

2019-09-12 14:29:43 477

原创 Leetcode 26. Remove Duplicates from Sorted Array

QuestionGiven a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by...

2019-09-11 19:30:09 156

原创 Leetcode 27. Remove Element

QuestionsGiven an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the i...

2019-09-11 19:25:30 159

原创 Leetcode Sum问题

文章目录1. Two sum1. Two sumApproach 1: Brute ForceThe brute force approach is simple. Loop through each element xx and find if there is another value that equals to target - x.class solution{ public...

2019-09-09 21:37:06 260

转载 for循环语句头的执行顺序

原文链接:https://blog.youkuaiyun.com/Anthony_1223/article/details/79874927for循环的表达式一般如下:for(表达式1;表达式2;表达式3){表达式4;}执行的顺序为:1)第一次循环,即初始化循环。首先执行表达式1(一般为初始化语句),再执行表达式2(一般为条件判断语句),判断表达式1是否符合表达式2的条件,如果符合,则执行表达式...

2019-09-09 21:09:27 1002

原创 链表的基础

文章目录定义操作栈的实现定义private class Node{ Item item; Node next;}//构造Node first = new Node();Node second = new Node();Node third = new Node();//赋值first.item = to;second.item = be;third.item = or;...

2019-09-09 16:35:12 155

原创 七大查找算法

目录1. 顺序查找2. 二分查找3. 插值查找本本章是https://www.cnblogs.com/maybe2030/p/4715035.html#top 和第四版算法的总结。1. 顺序查找说明:适用于储蓄结构为顺序存储或链接存储的线性表。基本思想:从数据端的开头依次扫描,若扫描到关键字与给定值K相等,则成功,若扫描结束还没找到,则失败。时间复杂度分析:平均长度为:ASL=1/n(...

2019-09-07 17:40:55 253

原创 七种排序算法总结

这里写自定义目录标题七种排序算法总结插入排序简单插入排序希尔排序插入排序简单选择排序堆排序功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图...

2019-09-07 00:34:04 259 1

原创 MySQL必知必会pdf网盘下载+每章总结

目录MySQL必知必会第二章 连接mysql第三章 连接数据库第四章 检索数据SELECT,DISTINCT,LIMIT语句第五章 排序数据ORDER BY语句第六章 过滤数据WHERE语句第七章 数据过滤AND, OR, IN, NOT操作符第八章 用通配符进行过滤LIKE 操作符第九章 用正则表达式进行搜索REGEXPMySQL必知必会第二章 连接mysql在terminal中连接mys...

2019-09-06 15:35:58 51787 35

空空如也

空空如也

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

TA关注的人

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