加载中...
青墨书晚风

排序算法基本内容算法分类比较分类 非线性时间比较类排序:通过比较来决定元素间的相对次序, 由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。 线性时间非比较类排序:不通过比较来决定元素间的相对次序, 它可以突破基于比
我是文章在轮播图中的摘要
听一听看一看,魔法的世界是什么样的呢
本站基本介绍,页面选项功能
本站基本介绍,主要配置项
环境配置系统:Ubuntu系统编辑器:PycharmPython版本:python3.6(自带celery4.3.0)第三方包依赖: django3.0.8 本文简介这篇文章主要介绍了celery4+django3定时任务的实现, 用于定时
#Django–自定义 Command 命令Django 对于命令的添加有一套规范,你可以为每个app 指定命令。 通俗一点讲,比如在使用manage.py文件执行命令的时候,可以自定制自己的命令,来实现命令的扩充。 ##commands的
274-H 指数(H-Index)
原文链接: https://leetcode-cn.com/problems/h-index 英文原文Given an array of integers citations where citations[i] is the number of citations a researcher received for their ith paper, return compute the researcher's h-index. According to the definition of h…
2021-12-03
275-H 指数 II(H-Index II)
原文链接: https://leetcode-cn.com/problems/h-index-ii 英文原文Given an array of integers citations where citations[i] is the number of citations a researcher received for their ith paper and citations is sorted in an ascending order, return compute the resea…
2021-12-03
283-移动零(Move Zeroes)
原文链接: https://leetcode-cn.com/problems/move-zeroes 英文原文Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array. E…
2021-12-03
284-窥探迭代器(Peeking Iterator)
原文链接: https://leetcode-cn.com/problems/peeking-iterator 英文原文Design an iterator that supports the peek operation on an existing iterator in addition to the hasNext and the next operations. Implement the PeekingIterator class: PeekingIterator(Iterator<…
2021-12-03
289-生命游戏(Game of Life)
原文链接: https://leetcode-cn.com/problems/game-of-life 英文原文According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970." The board is made up of …
2021-12-03
290-单词规律(Word Pattern)
原文链接: https://leetcode-cn.com/problems/word-pattern 英文原文Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s. Example …
2021-12-03
292-Nim 游戏(Nim Game)
原文链接: https://leetcode-cn.com/problems/nim-game 英文原文You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alternate taking turns, and you go first. On each turn, the perso…
2021-12-03
299-猜数字游戏(Bulls and Cows)
原文链接: https://leetcode-cn.com/problems/bulls-and-cows 英文原文You are playing the Bulls and Cows game with your friend. You write down a secret number and ask your friend to guess what the number is. When your friend makes a guess, you provide a hint wit…
2021-12-03
306-累加数(Additive Number)
原文链接: https://leetcode-cn.com/problems/additive-number 英文原文Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number …
2021-12-03
312-戳气球(Burst Balloons)
原文链接: https://leetcode-cn.com/problems/burst-balloons 英文原文You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked to burst all the balloons. If you burst the ith ballo…
2021-12-03
319-灯泡开关(Bulb Switcher)
原文链接: https://leetcode-cn.com/problems/bulb-switcher 英文原文There are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turnin…
2021-12-03
321-拼接最大数(Create Maximum Number)
原文链接: https://leetcode-cn.com/problems/create-maximum-number 英文原文You are given two integer arrays nums1 and nums2 of lengths m and n respectively. nums1 and nums2 represent the digits of two numbers. You are also given an integer k. Create the maximu…
2021-12-03