• Stars
    star
    138
  • Rank 264,508 (Top 6 %)
  • Language
  • Created about 10 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

前言

首先声明,我和张晓翀都不是算法牛人,确切的说应该是算法的门外汉,小白一个。所以我们为了撬开算法的大门,各自刷完了一遍LeetCode的题目,这其中碰到了很多困难,当然也少不了用了Google以及参考了别人的代码。

做完一遍下来,陡然发现,很多题目还是忘记了,再次碰到又不知道如何下手,其实这就是典型的没有理解,掌握透。所以我们决定,应该好好的将自己做题的思路记录下来,一个知识点,自己能弄懂,写出来让大家都明白,同时能做到举一反三,触类旁通,那么在一定程度上面才算是真的掌握了。

于是就有了现在准备开始的这本书:《LeetCode题解》,用来记录我们刷LeetCode题目时候的心酸历史。我们保证,书中的代码一定通过了当时LeetCode的测试,虽然后续可能因为LeetCode测试条件的改变导致某些解题无法通过,但我们会实时的跟进。

编程语言使用C++,代码风格上面并没有强制的采用什么编码规范,毕竟是算法解题,只需要代码清晰易懂就可以了。

我们准备按照LeetCode的题型分类来组织章节,譬如Array,Hash Table等,而对每个章节里面的题目,通常采用由易到难的方式进行说明。采用这种方式,能让我们在短时间内快速学习掌握某一类知识,同时也便于讲解说明。

当然,除了LeetCode现有的题目,我们也希望在每个章节加入相关的扩展知识,这需要我们参考大量现有的算法书籍,鉴于个人精力时间有限,可能并不会完全实施。

最后,我们非常欢迎大家的反馈(前提是有人看我们的东西)。如果你有任何的意见建议,欢迎在Github的issue里面提出,或者直接与我们联系。

Thanks Contributor

Maintainer

More Repositories

1

mixer

a MySQL proxy powered by Go
Go
755
star
2

go

my golang lib
Go
438
star
3

libtnet

libtnet is a tiny high performance c++ network lib, like tornado
C
277
star
4

moonmq

a fast distributed message queue implemented with go
Go
267
star
5

elasticsearch-note

Elasticsearch note
127
star
6

blog

My blog archive
85
star
7

pygmcrypto

Implementation for Chinese National Standard Ciphers
C++
42
star
8

go-log

a golang log lib supports level and multi handlers
Go
33
star
9

redis-tikv-example

A very simple example to show how to build a Redis Compatibility Cluster based on TiKV
Go
32
star
10

rust-raftkv

A simple distributed consistent key-value store with Raft and Rust
Rust
30
star
11

goredis

A simple redis client
Go
29
star
12

polaris

a restful web framework like tornado written by go
Go
28
star
13

rust-concurrency-in-action

Rust
27
star
14

github-cli

A CLI tool to help me manage too many repositories
Go
26
star
15

libcoro

a tiny coroutine lib using for c++
C++
24
star
16

tlaplus-example

TLA
17
star
17

luahelper

some tools for writing lua code
C++
15
star
18

prom-porter

Dump and load Prometheus data
Go
15
star
19

leetcode

my solution for leetcode
C++
14
star
20

slack-cli

a command tool to communicate with slack
C
13
star
21

tlock

Tiny lock service
Go
11
star
22

fio-helper

A simple tool to help me run fio benchmark
Python
11
star
23

fault-injection

Some tools to inject failure
10
star
24

tnet

a tiny lib for high performance network program
C
10
star
25

xkcdsay

A toy project like cowsay or ponysay
Go
9
star
26

lua-pycrypto-aes

implement pycrypto aes in lua
C
9
star
27

capture

A tool to capture and parse gRPC messages in TiDB
Go
7
star
28

dbbench

Yet another benchmark toolbox for database
Lua
6
star
29

mtunnel

a simple http tunnel for remote control
Python
5
star
30

tikv-proto-tonic-demo

A simple demo to build TiKV gRPC protocols based on tonic
Rust
4
star
31

youtube_summarizer

Summarize the YouTube video
Python
4
star
32

mysql-docker

A Dockerfile that installs MySQL
Shell
4
star
33

usn

a python library to operate usn journal
Python
4
star
34

tidb-helm

Operate TiDB cluster in Kubernetes
Smarty
4
star
35

tpush

a simple push server based on libev
C++
4
star
36

work-reporter

A simple tool to generate report from Jira/Github for our TiKV team
Go
4
star
37

jepsen-docker

Docker for jepsen
Shell
3
star
38

emacs

my emacs config file
Emacs Lisp
3
star
39

prom-plot

Plot and visualize the Prometheus metric
Go
3
star
40

redis-test

A DSL test tool for Redis or RESP protocol service.
Go
3
star
41

golua

use lua in go for ledisdb only, forked from https://github.com/aarzilli/golua
C
3
star
42

pingcap-newbie-workshop

Go
3
star
43

rocksdb-examples

A repo to store some examples of my use of RocksDB
C++
3
star
44

promvis

Show Prometheus Query Result in Term
Go
3
star
45

keyvisual

JavaScript
3
star
46

next-tidb-demo

JavaScript
3
star
47

tiplay

A toy project to play music (aha, Nose in fact) through Prometheus metrics
Go
2
star
48

katacoda-scenarios

Katacoda Scenarios
Shell
2
star
49

rotor-ares

A dns resolver based on rotor and c-ares.
Rust
2
star
50

aisay

A tool to interact with OpenAI
Go
2
star
51

rdb

Handling redis rdb
Go
2
star
52

jepsen-tidb

Jepsen test for TiDB
Clojure
2
star
53

learn-clojure

Clojure
2
star
54

go-websocket

Go
2
star
55

go-snappy

fork from code.google.com/p/snappy-go
Go
1
star
56

go-tokuft

a go wrapper for tokudb (https://github.com/Tokutek/ft-index)
Go
1
star
57

mrest

A simple Rust web framework based on mio.
Rust
1
star
58

snappy

a fork of snappy-1.1.2
Shell
1
star
59

wallpaper

Python
1
star
60

ideas

My ideas
1
star
61

product_analyses

1
star
62

imagecrawler

a simple crawler for fetch picture url and down
Python
1
star
63

ticomic

1
star
64

redis-canal

Sync redis data into other places
1
star
65

go-logcabin-resty

HTTP restful proxy for LogCabin with Go.
1
star
66

go-leveldb

a go wrapper to use leveldb like levigo, but simplify.
Go
1
star
67

tidb-ai-insight

A demo to get insight with Open AI + TiDB Cloud Serverless Tier
Go
1
star
68

go-bson

a go bson package
Go
1
star