Code Monkey home page Code Monkey logo

saurav-s-dsa-templates's Introduction

Saurav's DSA Templates ๐Ÿ’ป ๐Ÿ“Œ

The repository holds the implementation of many basic and advanced Data Structures and Algorithms in Java. Feel free to fork the repo and use it for Problem Solving or Competitive Programming or simply understanding and modifying the implementation.

DSA Contents โ„๏ธ

Supported Data Structures ๐ŸŽ‰

  1. Binary Tree
  2. Graph Concepts
  3. Binary Heap
  4. Disjoint Union Set
  5. Tries / Prefix Tree

Supported Algorithms ๐Ÿ”†

  1. Binary Tree

    1. Building a Binary Tree from an Array.
  2. Two Pointers

    1. Two Pointer approach for Rain Water Trapping problem
  3. Graph Concept

    1. Making a Directed Graph
    2. Building a Weighted Directed Graph
    3. Computing Shortest Path - Dijkstra's with Min Heap (Optimised)
  4. Disjoin Union Set

    1. Union by Size
    2. Path Compression
    3. Finding Connected Components
  5. Trie / Prefix Tree

    1. Implementation
    2. Insertion, Search and Prefix Search
  6. Binary Heap

    1. Binary Max Heap implementation
    2. Finding K most frequent elements
  7. Fast IO for taking inputs in huge amount. Suited for Competitive Programming.

  8. Helper Methods:

    1. A method which takes input a list of integers from the user and returns an array of integers.

DSA Problems Solved ๐ŸŽฏ

S.No. Problem Name Link Runtime Tags
1. House Robber III View Problem 5 ms DP, Tree, DFS
2. Container with most water View Problem 5 ms Two Pointers, Array
3. Course Schedule View Problem 3 ms Graphs, DFS, Directed Graphs
4. Evaluate Division View Problem 8 ms Graphs, DFS, Directed Graphs, Weighted Graphs
5. Number of Provinces View Problem 2 ms Disjoint Union Set, Connected Components, Graph
6. Word Break View Problem 11 ms Recursion, Dynamic Programming
7. Implement Trie View Problem 45 ms Trie, Prefix Tree
8. Top K Frequent Elements View Problem 17 ms Binary Max Heap
9. Network Delay Time View Problem 76 ms Graph, Heap, Dijkstras Algorithm, Shortest Path

All the DSA Problems' solution implements the Data Structures and Algorithms from this repo to achieve the above mentioned Runtime.

saurav-s-dsa-templates's People

Contributors

sauravp97 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.