加载中...
青墨书晚风

排序算法基本内容算法分类比较分类 非线性时间比较类排序:通过比较来决定元素间的相对次序, 由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。 线性时间非比较类排序:不通过比较来决定元素间的相对次序, 它可以突破基于比
我是文章在轮播图中的摘要
听一听看一看,魔法的世界是什么样的呢
本站基本介绍,页面选项功能
本站基本介绍,主要配置项
环境配置系统:Ubuntu系统编辑器:PycharmPython版本:python3.6(自带celery4.3.0)第三方包依赖: django3.0.8 本文简介这篇文章主要介绍了celery4+django3定时任务的实现, 用于定时
#Django–自定义 Command 命令Django 对于命令的添加有一套规范,你可以为每个app 指定命令。 通俗一点讲,比如在使用manage.py文件执行命令的时候,可以自定制自己的命令,来实现命令的扩充。 ##commands的
143-重排链表(Reorder List)
原文链接: https://leetcode-cn.com/problems/reorder-list 英文原文You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following form: L0 → Ln &r…
2021-12-03
155-最小栈(Min Stack)
原文链接: https://leetcode-cn.com/problems/min-stack 英文原文Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() initializes the stack object. void push(int val) pushes th…
2021-12-03
162-寻找峰值(Find Peak Element)
原文链接: https://leetcode-cn.com/problems/find-peak-element 英文原文A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find a peak element, and return its index. If the array contains multiple peaks, retur…
2021-12-03
164-最大间距(Maximum Gap)
原文链接: https://leetcode-cn.com/problems/maximum-gap 英文原文Given an integer array nums, return the maximum difference between two successive elements in its sorted form. If the array contains less than two elements, return 0. You must write an algorithm …
2021-12-03
165-比较版本号(Compare Version Numbers)
原文链接: https://leetcode-cn.com/problems/compare-version-numbers 英文原文Given two version numbers, version1 and version2, compare them. Version numbers consist of one or more revisions joined by a dot '.'. Each revision consists of digits and may contain …
2021-12-03
168-Excel表列名称(Excel Sheet Column Title)
原文链接: https://leetcode-cn.com/problems/excel-sheet-column-title 英文原文Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 ... Example 1: I…
2021-12-03
172-阶乘后的零(Factorial Trailing Zeroes)
原文链接: https://leetcode-cn.com/problems/factorial-trailing-zeroes 英文原文Given an integer n, return the number of trailing zeroes in n!. Note that n! = n * (n - 1) * (n - 2) * ... * 3 * 2 * 1. Example 1: Input: n = 3 Output: 0 Explanation: 3! = 6, no tra…
2021-12-03
174-地下城游戏(Dungeon Game)
原文链接: https://leetcode-cn.com/problems/dungeon-game 英文原文The demons had captured the princess and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of m x n rooms laid out in a 2D grid. Our valiant knight was initially posit…
2021-12-03
175-组合两个表(Combine Two Tables)
原文链接: https://leetcode-cn.com/problems/combine-two-tables 英文原文Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | personId | int | | lastName | varchar | | firstName | varchar | +-------------+---------+ personI…
2021-12-03
176-第二高的薪水(Second Highest Salary)
原文链接: https://leetcode-cn.com/problems/second-highest-salary 英文原文Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Ea…
2021-12-03
177-第N高的薪水(Nth Highest Salary)
原文链接: https://leetcode-cn.com/problems/nth-highest-salary 英文原文Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Each …
2021-12-03
178-分数排名(Rank Scores)
原文链接: https://leetcode-cn.com/problems/rank-scores 英文原文Table: Scores +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | score | decimal | +-------------+---------+ id is the primary key for this table. Each row …
2021-12-03
180-连续出现的数字(Consecutive Numbers)
原文链接: https://leetcode-cn.com/problems/consecutive-numbers 英文原文Table: Logs +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | num | varchar | +-------------+---------+ id is the primary key for this table. Write…
2021-12-03
179-最大数(Largest Number)
原文链接: https://leetcode-cn.com/problems/largest-number 英文原文Given a list of non-negative integers nums, arrange them such that they form the largest number. Note: The result may be very large, so you need to return a string instead of an integer. Examp…
2021-12-03