加载中...
青墨书晚风

排序算法基本内容算法分类比较分类 非线性时间比较类排序:通过比较来决定元素间的相对次序, 由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。 线性时间非比较类排序:不通过比较来决定元素间的相对次序, 它可以突破基于比
我是文章在轮播图中的摘要
听一听看一看,魔法的世界是什么样的呢
本站基本介绍,页面选项功能
本站基本介绍,主要配置项
环境配置系统:Ubuntu系统编辑器:PycharmPython版本:python3.6(自带celery4.3.0)第三方包依赖: django3.0.8 本文简介这篇文章主要介绍了celery4+django3定时任务的实现, 用于定时
#Django–自定义 Command 命令Django 对于命令的添加有一套规范,你可以为每个app 指定命令。 通俗一点讲,比如在使用manage.py文件执行命令的时候,可以自定制自己的命令,来实现命令的扩充。 ##commands的
182-查找重复的电子邮箱(Duplicate Emails)
原文链接: https://leetcode-cn.com/problems/duplicate-emails 英文原文Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | email | varchar | +-------------+---------+ id is the primary key column for this tabl…
2021-12-03
183-从不订购的客户(Customers Who Never Order)
原文链接: https://leetcode-cn.com/problems/customers-who-never-order 英文原文Table: Customers +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | +-------------+---------+ id is the primary key column fo…
2021-12-03
189-轮转数组(Rotate Array)
原文链接: https://leetcode-cn.com/problems/rotate-array 英文原文Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 steps to the righ…
2021-12-03
190-颠倒二进制位(Reverse Bits)
原文链接: https://leetcode-cn.com/problems/reverse-bits 英文原文Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages, such as Java, there is no unsigned integer type. In this case, both input and output will be given as a signe…
2021-12-03
191-位1的个数(Number of 1 Bits)
原文链接: https://leetcode-cn.com/problems/number-of-1-bits 英文原文Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight). Note: Note that in some languages, such as Java, there is no uns…
2021-12-03
193-有效电话号码(Valid Phone Numbers)
原文链接: https://leetcode-cn.com/problems/valid-phone-numbers 英文原文Given a text file file.txt that contains a list of phone numbers (one per line), write a one-liner bash script to print all valid phone numbers. You may assume that a valid phone number m…
2021-12-03
194-转置文件(Transpose File)
原文链接: https://leetcode-cn.com/problems/transpose-file 英文原文Given a text file file.txt, transpose its content. You may assume that each row has the same number of columns, and each field is separated by the ' ' character. Example: If file.txt has the f…
2021-12-03
195-第十行(Tenth Line)
原文链接: https://leetcode-cn.com/problems/tenth-line 英文原文Given a text file file.txt, print just the 10th line of the file. Example: Assume that file.txt has the following content: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Yo…
2021-12-03
197-上升的温度(Rising Temperature)
原文链接: https://leetcode-cn.com/problems/rising-temperature 英文原文Table: Weather +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | recordDate | date | | temperature | int | +---------------+---------+ id is the…
2021-12-03
198-打家劫舍(House Robber)
原文链接: https://leetcode-cn.com/problems/house-robber 英文原文You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent…
2021-12-03
202-快乐数(Happy Number)
原文链接: https://leetcode-cn.com/problems/happy-number 英文原文Write an algorithm to determine if a number n is happy. A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squa…
2021-12-03
204-计数质数(Count Primes)
原文链接: https://leetcode-cn.com/problems/count-primes 英文原文Given an integer n, return the number of prime numbers that are strictly less than n. Example 1: Input: n = 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.…
2021-12-03
205-同构字符串(Isomorphic Strings)
原文链接: https://leetcode-cn.com/problems/isomorphic-strings 英文原文Given two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be repl…
2021-12-03
206-反转链表(Reverse Linked List)
原文链接: https://leetcode-cn.com/problems/reverse-linked-list 英文原文Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,…
2021-12-03
213-打家劫舍 II(House Robber II)
原文链接: https://leetcode-cn.com/problems/house-robber-ii 英文原文You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first …
2021-12-03