Git Product home page Git Product logo

cpp-scratch's Introduction

cpp-scratch

Contains algorithmic concepts and programming problems I am learning and revising in C++.

Note: The implementations here are definitely not the cleanest (so no judgements). It's only to keep a record of things I am learning. May end up in an organized PDF with tests and optimizations some day.

Problems taken from Blind75, Elements of Programming Interviews (book) or Leetcode/Neetcode. I also plan to add protypes of interesting concepts I am learning.

Resources

https://cp-algorithms.com/index.html The Modern C++ Challenge by Marius Bancilla Advent of Code CppCon videos

Dynamic Programming

https://www.quora.com/How-can-one-start-solving-dynamic-programming-problems

https://www.quora.com/What-is-divide-and-conquer-optimization-in-dynamic-programming

Problems to retry later

https://open.kattis.com/problems/islandalliances

https://open.kattis.com/problems/centsavings

https://leetcode.com/problems/kth-largest-element-in-an-array/description/ using quickselect

Solved Problems

The repo contains solutions to 100+ problems, the most important problem list will be updated below:

Topic Problem Solution Link Solution Approach
Graph Implement Trie Prefix - Leetcode Solution Standard Trie implementation
Graph Course Schedule - Leetcode Solution Cycle Detection in a graph
Graph Course Schedule II - Leetcode Solution Topological Sort with DFS
Graph Number of Islands - Leetcode Solution DFS - Number of connected components
Graph Max area of Island - Leetcode Solution DFS - Number of connected components
Graph Pacific Atlantic Water Flow - Leetcode Solution DFS - Find reachable nodes
Graphs Design Add and Search Words Leetcode Solution Trie word search implementation
Graphs Surrounded Regions Leetcode Solution Find path to edges through DFS
Arrays Min Stack - Leetcode Solution Track min val in stack
Linked Lists Merge Sorted Lists Leetcode Solution Merge during traversal
Two Pointers Valid Palindrome Leetcode Solution Two pointer comparison
Math Power(x,y) Leetcode Solution recursively find the power
Sliding Window Minimum Window Substring Leetcode Solution Sliding Window keeping track of matches

cpp-scratch's People

Contributors

pranav656 avatar

Watchers

 avatar

cpp-scratch's Issues

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.