DEV Community

Mukilan Palanichamy
Mukilan Palanichamy

Posted on

My journey in Competitive Programming

The content indicates a journey through competitive programming, from simple concepts to complex ones. Challenges and growth in understanding linked lists and stacks while solving problems have been highlighted. Some of the key points to be broken down are as follows:

Subsets:

Subsets of a given array were to be generated using backtracking. It used a stack as the data structure that tracked the current subset under formation.
The approach was based on recursion, where items were pushed and popped from the stack as subsets were produced.

Basic Calculator II:

This was a simple calculator that added/subtracted, multiplied/divided. A stack was required to keep track of intermediate results, especially for expressions with operators that have precedence such as multiplication/division before addition/subtraction. The use of a stack helped in keeping track of the order of evaluation and efficiently arrived at the final result.

Stacks:

Stacks were a rather important data structure.
Learning was focused around ways stacks could be used when sequential dependencies appeared: namely, to evaluate expressions, follow states of recursion, etc.

I hope my experience will be helpful.

Top comments (0)