Giter Club home page Giter Club logo

aps-2020's Introduction

APS-2020

Repository of the Course APS-2020

Important Question - Interview

  • Clone Graph
  • Clone LinkedList using random pointer.
  • Clone a Binary Search Tree using random pointer.
  • Questions based on modification of Dijikstra's algorithm - Flight Discount CSES
  • Finding K shortest Routes in a graph problem - Modified Dijikstra
  • Classical Problems of DP - LPS
  • Longest Flight Route - DP on Graphs (Topo sort with DP)

Important Graph Algorithms -

  • BFS
  • DFS
  • Dijkstra's Algorithm - SSSP
  • Floydd Warshall - ASSP
  • Bellman-Ford - Negative Edge shortest path
  • Kahn's Algorithm - Topological Sorting
  • Union-Find (Disjoint Set Union) - Connected Componets, Cycle detection
  • Kruskal's Algorithm - MST
  • Kosaraju's Algorithm - Strongly connected componets in directed graph
  • Eulerian path and circuit.
  • Hamiltonian path and circuit.
  • Graph Coloring - Bipartite check and 4 color theorem based problems.

Important DP concepts

  • Seletion problems, i.e, selecting one and leaving another. Ex - Choosing the Judge(Hackerearth), Boredom(Codeforces)
  • 2D DP problems -> where state change is dependent on two variables Ex - Vacation(Codeforces)
  • DP on strings - Usually we create 2D dp for such problems.
  • Minimax Algorthim problems
  • Bitmask dp - used in assignment problems
  • DP on trees - Diameter of a tree, no of paths of lenght k in a tree
  • DP on trees - Uniqe structred BST for given N (print the trees and the numbers too) - numbers can be found using catalan's number.
  • DP - Maximize profit by selling stocks with at most k transtaction
  • Dp - Tries and DP - Word Break II
  • DP - Dungeon Game - backward iteration
  • DP - Cherry Pickup - DP on grids - Find the max area square of ones - dp on grids

Important BitWise Concepts

  • Questions based on properties of XOR: eg, find missing numbers
  • "Given an array of integers, every element appears k (k > 1) times except for one, which appears p times (p >= 1, p % k != 0). Find that single one."

Important Tree Questions - LeetCode and CSES

  • All nodes distance K in binary tree

Important Backtracking questions

  • Pre-requisite: DFS on a grid
  • Word Search

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.