LYZ

代码仓库 https://github.com/li-yazhou

【排序算法】排序算法总结

排序算法】排序算法总结排序算法分类插入排序: 直接插入、希尔排序 选择排序: 简单选择、堆排序 交换排序: 冒泡排序、快速排序 归并排序: 归并排序桶排序、基数排序、计数排序 排序算法总结简单的排序 冒泡排序 bubble sort 选择排序 selection sort 直接插入排序 st...

2017-06-14 09:03:43

阅读数:265

评论数:0

剑指offer面试题汇总-Java实现

剑指offer面试题汇总-Java实现 说明:参考DERRANTCM的剑指offer学习专栏的排版。 DERRANTCM是我的学习榜样,他的博客给予我极大的帮助。感谢你!让我们一起分享知识,创造快乐! 目录第01-10题面试题2 实现单例模式面试题3 二维数组中的查找面试题4 替换空格面...

2017-05-24 10:51:50

阅读数:848

评论数:0

秋招面试算法汇总

秋招面试算法汇总 排序算法汇总 冒泡排序、选择排序、插入排序、堆排序、归并排序、快排、希尔排序 【算法分析 + 源码】的地址是 https://github.com/lyz0907/java-core/tree/master/algorithm-core/src/main/java/al...

2018-07-17 22:14:31

阅读数:101

评论数:0

Java体系结构图

Java体系声明:图片来自于网络,一张来自牛客网,一张来自瞬息之间,另一张忘记出处,在此对作者表示感谢,侵必删

2017-11-07 17:16:55

阅读数:360

评论数:0

【Leetcode-Hard-124】Binary Tree Maximum Path Sum

【Leetcode-Hard-124】Binary Tree Maximum Path Sum题目Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence o...

2017-10-21 21:13:11

阅读数:331

评论数:0

【Leetcode-Medium-94】Binary Tree Inorder Traversal

【Leetcode-Medium-94】Binary Tree Inorder Traversal题目Given a binary tree, return the inorder traversal of its nodes’ values.For example: Given binary ...

2017-10-21 20:27:10

阅读数:612

评论数:0

【Leetcode-Medium-22】Generate Parentheses

【Leetcode-Easy-22】Generate Parentheses题目Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For ex...

2017-10-21 19:49:26

阅读数:606

评论数:0

【Leetcode-Medium-583】Delete Operation for Two Strings

【Leetcode-Medium-583】Delete Operation for Two Strings题目Given two words word1 and word2, find the minimum number of steps required to make word1 and w...

2017-10-20 22:02:12

阅读数:446

评论数:0

【Leetcode-Medium-547】Friend Circles

Leetcode-Medium-547】Friend CirclesTODO: 对比2017-09-12去哪儿校招真题”六度人脉,最大的度”题目There are N students in a class. Some of them are friends, while some are no...

2017-10-20 21:38:33

阅读数:263

评论数:0

【Leetcode-Medium-238】Product of Array Except Self

【Leetcode-Easy-238】Product of Array Except Self题目Given an array of n integers where n > 1, nums, return an array output such that output[i] is equ...

2017-10-20 21:11:45

阅读数:255

评论数:0

【Leetcode-Medium-647】Palindromic Substrings

【Leetcode-Medium-647】Palindromic Substrings题目Given a string, your task is to count how many palindromic substrings in this string.The substrings with...

2017-10-20 20:06:57

阅读数:272

评论数:0

【Leetcode-Medium-494】Target Sum

【Leetcode-Medium-494】Target Sum题目You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For e...

2017-10-19 19:44:07

阅读数:280

评论数:0

【Leetcode-Medium-46】Permutations

【Leetcode-Medium-46】Permutations题目Given a collection of distinct numbers, return all possible permutations.For example, [1,2,3] have the following p...

2017-10-19 19:19:13

阅读数:299

评论数:0

【Leetcode-Medium338】Counting Bits

【Leetcode-Medium338】Counting Bits题目Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s ...

2017-10-19 19:06:28

阅读数:420

评论数:0

【Leetcode-Easy-155】 Min Stack

【Leetcode-Easy-155】 Min Stack题目Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) – Push elemen...

2017-10-19 15:27:11

阅读数:256

评论数:0

【Leetcode-Easy-160】Intersection of Two Linked Lists

【Leetcode-Easy-160】Intersection of Two Linked Lists题目Write a program to find the node at which the intersection of two singly linked lists begins.For...

2017-10-19 15:06:57

阅读数:226

评论数:0

【Leetcode-Easy-234】Palindrome Linked List

【Leetcode-Easy-234】Palindrome Linked List题目Given a singly linked list, determine if it is a palindrome.Follow up: Could you do it in O(n) time and O...

2017-10-19 15:06:04

阅读数:231

评论数:0

【Leetcode-Easy-20】 Valid Parentheses

【Leetcode-Easy-20】 Valid Parentheses题目Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is...

2017-10-19 15:05:12

阅读数:301

评论数:0

【Leetcode-Easy-141】Linked List Cycle

【Leetcode-Easy-141】Linked List Cycle题目Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?思...

2017-10-19 15:03:27

阅读数:229

评论数:0

【Leetcode-Easy-110】Balanced Binary Tree

【Leetcode-Easy-110】Balanced Binary Tree题目Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is d...

2017-10-19 15:01:44

阅读数:275

评论数:0

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