Combinatoric

In competitive programming sometime we can find problem that title “count the possibility”, “find the number of ways”, etc that involve combinatoric

Combinatorics is a branch of discrete math concerning the study of countable discrete structures — Felix Halim

as we know in written mathematics, combinatoric is written as follows :

$_{n}^{r}\textrm{C}=\binom{n}{r}=\frac{n!}{(n-r)!\cdot r!}$

$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$

Journey to the moon

Hackerrank practice graph theory problem

For those who want to read the problem : link

Oversized Pancake Flipper

Google code jam 2017 Qualification Problem A

Competitive Programming Template C++

Solving Competitive programming problem maybe difficult. When coding in C++ at Topcoder and Hackerrank, I use this template to make program easier to debug, and have a good readability. You can use and edit the source code it if you like it:) Continue reading