加载中...
青墨书晚风

排序算法基本内容算法分类比较分类 非线性时间比较类排序:通过比较来决定元素间的相对次序, 由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。 线性时间非比较类排序:不通过比较来决定元素间的相对次序, 它可以突破基于比
我是文章在轮播图中的摘要
听一听看一看,魔法的世界是什么样的呢
本站基本介绍,页面选项功能
本站基本介绍,主要配置项
环境配置系统:Ubuntu系统编辑器:PycharmPython版本:python3.6(自带celery4.3.0)第三方包依赖: django3.0.8 本文简介这篇文章主要介绍了celery4+django3定时任务的实现, 用于定时
#Django–自定义 Command 命令Django 对于命令的添加有一套规范,你可以为每个app 指定命令。 通俗一点讲,比如在使用manage.py文件执行命令的时候,可以自定制自己的命令,来实现命令的扩充。 ##commands的
1078-Bigram 分词(Occurrences After Bigram)
原文链接: https://leetcode-cn.com/problems/occurrences-after-bigram 英文原文Given two strings first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and third comes immediately after …
2021-12-03
1089-复写零(Duplicate Zeros)
原文链接: https://leetcode-cn.com/problems/duplicate-zeros 英文原文Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the original array are not wri…
2021-12-03
1117-H2O 生成(Building H2O)
原文链接: https://leetcode-cn.com/problems/building-h2o 英文原文There are two kinds of threads: oxygen and hydrogen. Your goal is to group these threads to form water molecules. There is a barrier where each thread has to wait until a complete molecule can b…
2021-12-03
1115-交替打印FooBar(Print FooBar Alternately)
原文链接: https://leetcode-cn.com/problems/print-foobar-alternately 英文原文Suppose you are given the following code: class FooBar { public void foo() { for (int i = 0; i < n; i++) { print("foo"); } } public void bar() { for (int i = 0; i < n; i++) { print("…
2021-12-03
1096-花括号展开 II(Brace Expansion II)
原文链接: https://leetcode-cn.com/problems/brace-expansion-ii 中文题目如果你熟悉 Shell 编程,那么一定了解过花括号展开,它可以用来生成任意字符串。 花括号展开的表达式可以看作一个由 花括号、逗号 和 小写英文字母 组成的字符串,定义下面几条语法规则: 如果只给出单一的元素 x,那么表达式表示的字符串就只有 "x"。R(x) = &#123;x&#125; <ul> <li>例如,表达式 <code>"a"</code> 表示字符串 <c…
2021-12-03
1103-分糖果 II(Distribute Candies to People)
原文链接: https://leetcode-cn.com/problems/distribute-candies-to-people 英文原文We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to the second person, and so on …
2021-12-03
1105-填充书架(Filling Bookcase Shelves)
原文链接: https://leetcode-cn.com/problems/filling-bookcase-shelves 英文原文You are given an array books where books[i] = [thicknessi, heighti] indicates the thickness and height of the ith book. You are also given an integer shelfWidth. We want to place the…
2021-12-03
1114-按序打印(Print in Order)
原文链接: https://leetcode-cn.com/problems/print-in-order 英文原文Suppose we have a class: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third"); } } The same instance of Foo…
2021-12-03
1108-IP 地址无效化(Defanging an IP Address)
原文链接: https://leetcode-cn.com/problems/defanging-an-ip-address 英文原文Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "." with "[.]". Example 1: Input: address = "1.1.1.1" Output…
2021-12-03