自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 二叉树的深度优先遍历(DFS)与广度优先遍历(BFS)

在Leetcode上刷题,二叉树的bfs和dfs用得是最多的 转载于:https://my.oschina.net/feanlau/blog/3101223...

2019-09-03 12:03:00 147

转载 [编程题]查找第K大的元素

给定一个无序的整型数组A[n],数组大小大于等于3,允许有值相同的元素;请设计算法找到该数组排序后第三大的元素值并输出.输入描述:一个非空的整数数组(至少有3个元素,可正可负)输出描述:第三大的元素值示例1输入[1,2,3,4,5]输出3示例2输入[1,1...

2019-09-01 18:44:00 334

转载 LeetCode 665-Non-decreasing Array-非递减数列

这个题目感觉是最佳的判断条件的问题 转载于:https://my.oschina.net/feanlau/blog/3095240...

2019-08-20 21:25:00 134

转载 qemu模拟器

NAME qemu-doc - QEMU Emulator User DocumentationSYNOPSIS usage: qemu [options] [disk_image]DESCRIPTION The QEMU PC ...

2019-08-20 04:01:00 1239

转载 Java for循环

第一种写法: public class Solution { public static void main(String[] args) { for (int j = 0; j < 3; j++) { System.out....

2019-08-15 12:10:00 90

转载 Java-基数排序

基数排序(radix sort)又称桶排序(bucket sort) public class RadixSort { private static void radixSort(int[] array,int d) { int n=1;//代表...

2019-08-13 10:45:00 81

转载 Java-归并排序

public class MergeSort { static int number=0; public static void main(String[] args) { int[] a = {26, 5, 98, 108, 28, 99, 100, 5...

2019-08-13 10:40:00 95

转载 Java-选择排序

public class SelectionSortExample { public static void selectionSort(int[] arr){ for (int i = 0; i < arr.length - 1; i++) ...

2019-08-13 10:36:00 93

转载 Java-冒泡排序

public class BubbleSortExample { static void bubbleSort(int[] arr) { int n = arr.length; int temp = 0; for(int i=0; i &...

2019-08-13 10:27:00 75

转载 Java数据结构-快速排序

package Sort;import java.util.Arrays;public class QuickSort { public static void main(String[] args) { int[] array = {32, 12, 7, 7...

2019-08-13 10:24:00 78

转载 Java数据结构:查找算法(顺序查找,二分查找)

线性查找 (linear search)public class LinearSearchDemo { public static void main(String[] args) { int[] data = {2, 1, 4, 6, 12, 7}; ...

2019-08-13 10:15:00 164

转载 Java—Sort简单排序

Java中Sort排序是非常常用的方法,这一章我们主要来认识一下Sort的用法和相关的实现。一、数组Sort排序升序排序,直接使用Arrays.Sort方法,例如:import java.util.Arrays;public class Solution { publi...

2019-08-13 09:51:00 93

转载 MacOS 单步调试 GoLang 项目

{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0...

2019-07-05 12:34:00 512

转载 Install PostgreSQL from Source on RHEL/CentOS

PostgreSQL, as weknow is an Open Source RDBMS. Since I am not that much into Database, I don’t know how it compares with MySQL.My focus on this po...

2019-07-02 13:22:00 93

空空如也

空空如也

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

TA关注的人

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