Giter Club home page Giter Club logo

data-structure-algorithm-daily-practice's Introduction

Data Structure and Algorithm - Daily Practice

  • Exercices on LeetCode, solved by C and Python.
  • The project started on 31-03-2021.
  • Solve one problem each day.

Objective:

  • Learn Data Structure and Algorithm on a daily basis.
  • Acquire skills on Python and enhance C's.

Array 101

Dificulty Time Complexity Space Complexity Notes
Introduction
485. Max Consecutive Ones Easy
1295. Find Numbers with Even Number of Digits Easy
977. Squares of a Sorted Array Easy O(N) O(N)
Inserting Items into an Array
1089. Duplicate Zeros Easy
88. Merge Sorted Array Easy
Deleting Items from an Array
27. Remove Element Easy O(N) O(1)
26. Remove Duplicates from Sorted Array Easy O(N) O(1) Two-pointer technique, In-place operation
Searching for Items in an Array
1346. Check If N and Its Double Exist Easy O(N) O(N) To be continued...
941. Valid Mountain Array Easy O(N) O(1)
In-Place Operations
1299. Replace Elements with Greatest Element on Right Side Easy O(N) O(N)
283. Move Zeroes Easy O(N) O(1) Similar to #26
905. Sort Array By Parity Easy O(N) O(N)
Other Techniques
1051. Height Checker Easy
414. Third Maximum Number Easy
448. Find All Numbers Disappeared in an Array Easy

Binary Search

Dificulty Time Complexity Space Complexity
Background
704. Binary Search Easy O(logn) O(1)
Template I
69. Sqrtx Easy O(logn) O(1)
374. Guess Number Higher or Lower Easy O(logn) O(1)
33. Search in Rotated Sorted Array Medium O(logn) O(1)
Template II
278. First Bad Version Easy O(logn) O(1)
162. Find Peak Element Medium O(logn) O(1)
153. Find Minimum in Rotated Sorted Array Medium O(logn) O(1)
Template III
34. Search for a Range Medium O(logn) O(1)
658. Find K Closest Elements Medium O(logn + klogk + k) Not finished yet

Linked List

Dificulty
707. Design Linked List Medium

Hash Table

Dificulty
705. Design Hash Set Easy
706. Design Hash Map Easy

Queue & Stack

Binary Tree

Binary Search Tree

Recursion I

Recursion II

data-structure-algorithm-daily-practice's People

Contributors

lolimacat avatar thi-nguy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.