【文件属性】:
文件名称:leetcode双人赛-leetcode-python:我的leetcode之路
文件大小:103KB
文件格式:ZIP
更新时间:2021-06-30 04:55:56
系统开源
leetcode双人赛
leetcode-python
[TOC]
Question
&
Code
#
Title
Remark
1
1.try
one
by
one
T:
$O(n^2)$
S:$O(1)$2.
key:
nums
->
value:
indexT:
$O(n)$
S:
$O(n)$
2
1.link2num;num2linkT:
$O(n)$
S:
$O(n)$2.T:
$O(n)$
S:
$O(n)$
3
1.Using
set
to
judge
repeating
string2.T:$O(n)$
S:$O(k)$
4
1.Brute
force(sort
firstly,then
median)2.T:$O(log(min(m,n)))$
S:$O(1)$
5
1.Brute
force(loop
all
the
possible
str)T:$O(n^3)$
S:$O(1)$2.T:$O(n^2)$
S:$O(n^2)$3.
T:$O(n^2)$
S:$O(1)$
6
1.
T:
$O(n)$
S:
$O(n)$2.
T:
$O(n)$
S:
$O(n)$