Stack is an abstract data type that serves as a collection of elements, with two principal operations:<ul><li>push, which adds an element to the collection</li><li>pop, which removes the most recently added element that was not yet removed.</li></ul>

Learn more..

Reverse Polish Notation Calculator

Calculate the value of a given expression in Reverse Polish Notation. Definitions: {expr} = [ {expr} {expr} {operator} | {integer} ] operand = {integer} operator = [+, -, /, *] valof(expr) := intv ...
Ali Ahmet Bingül
Published on Feb 26th, 2018

Poisoned Plants

There are n plants in a garden. Each of these plants has been added with some amount of pesticide. After each day, if any plant has more pesticide than the plant on its left, being weaker than the le ...
Published on Feb 2nd, 2018

Decode String Recursively

An encoded string is given. The pattern in which the strings are encoded is as follows: [substr] means that the substring 'substr' appears count times. The task is to decode the given string. Exampl ...
Berkan Teber
Published on Jan 16th, 2018