• Stars
    star
    161
  • Rank 233,470 (Top 5 %)
  • Language
    C++
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

References and summary for leetcode high-frequency algorithm problems

Data Structure and Algorithms Based on LeetCode

Build Status codecov Codacy Badge MIT License
stability-experimental processing PRs Welcome GitHub pull request check state

platform GitHub language count GitHub top language
GitHub contributors GitHub commit activity the past week, 4 weeks, year GitHub last commit

Badges

Solutions and practices for data structure and algorithms (DSA), refering to the high frequency questions in LeetCode.

All the solutions are located in the \src dir. It only supports C++/C++11 now.

The solution for every question has run pass the tests online and explains the detailed methods with its complexity in the \doc and every source code in \src.

Built With

This project is built with following tools:

  • C++ version: C++11
  • Build system: CMake
  • C++ compiler: g++
  • Libraries: STL only
  • Code coverage: lcov (note: it should show the code coverage is below 100%)
  • CodeCov (code coverage is measured by CodeCov).
  • Source & Tests: \src

Prerequisites

To build the project you need to install CMake. Here are the instructions. To create code coverage report you need to install lcov. Download lcov from here you can download latest lcov and here are instructions. This reports will be later uploaded to CodeCov servers.

Knowledge summary

The basic knowledge of various data structures and algorithms, along with their applications in LeetCode problems are summarized in \doc.Detailed contents are shown below:

  1. Basic operations for basic data structures.
    • array, single linked list
    • stack, queue
    • priority queue
    • skip list
    • hash
  2. Operations for tree.
    • Binary search tree (BST).
    • Heap
    • Advanced BST
      • RB tree
      • AVL tree
      • Splay tree
      • B-/B+/B* tree
  3. Operations for Graph.
  4. Dynamic programing.
  5. Other algorithms.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

More Repositories

1

awesome-blockchain

⚡️Curated list of resources for the development and applications of blockchain.
Go
2,847
star
2

RAS-MSG

Reliable asynchronous message system ensuring eventually consistency for distributed system.
JavaScript
121
star
3

Go-tutorial-cn

113
star
4

tutorial2

106
star
5

Notes

just research and study notes (deprecated)
Python
101
star
6

books

git clone [email protected]:yjjnls/books.git --depth=1
37
star
7

napi-emscripten

Implementation of webassembly code based on nodejs napi-addon.
C++
10
star
8

Proto3Json

A demo that transform data between protobuf and json using proto3.
C++
2
star
9

parameter-framework

Plugin-based and rule-based framework for describing and controlling parameters
JavaScript
2
star
10

webrtc

webrtc source code from https://chromium.googlesource.com/external/webrtc
C++
2
star
11

libgstwebrtc

webrtcbin in gstreamer-plugins-bad-1.0
CMake
2
star
12

node-plugin

bridge for C/C++ plugin for node
C++
1
star
13

tesseract-node

Gstreamer OCR sink with teseeract
1
star
14

LibEvent

Use libevent to do something
C++
1
star
15

plugin.node.old

node-plugin native addon C++ dynamlic lib
Python
1
star
16

NewWebassembly

JavaScript
1
star
17

Cpp-CodeFormat

Batch formating c/c++ codes based on clang-format
1
star
18

plugin.node

Python
1
star
19

cam

C/C++ archive build management utility
Python
1
star
20

conan-gstreamer

conan build for gstreamer
Python
1
star
21

cerberus.remix

PowerShell
1
star
22

cerbero.ribbon-1

More componets than GStreamer
1
star
23

depot_tools

source code mirrored from https://chromium.googlesource.com/chromium/tools/depot_tools
Python
1
star
24

ZeroMQ

Test the properties of zeromq and use it to do something.
C++
1
star
25

cerberus

Python
1
star
26

AustrianSchool

1
star
27

cerbero.old

C++ Open Source Software Development Kit
Python
1
star
28

logger-js

Javascript logger wrapper
JavaScript
1
star
29

httpws

HTTP over WebSocket
1
star
30

builder

Builder for cerbero
1
star
31

libgstrtspserver

local build of gst-rtsp-server
CMake
1
star