The material in this repo are for
-
revising basics
-
Trying new(mainly C++ 17, 20) features
-
some auxiliary prototypes for various work project
Dynamic Programming is similar to backtracking except that we stop making redundant computations (i.e. Memoization. Calculate the answer to each subproblem only once)
The algorithm begins with anempty solution and extends the solution step by step. The search recursively goes through all different ways how a solution can be constructed. climb-stairs
(https://gcc.godbolt.org/z/aK8jzT)
Find a way to place n queens on an nxn chessboard so that no two queens are attacking each other.
topological sort using indegrees
BB is an optimization algorithm converts a maximization into a minimization problem.
-
Should you use raw or unique ptr?