Categories
JavaScript Other

Stack: Making a brackets validator

Today we will make a simple brackets validator using Stack data structure. So let’s start! As an example let’s think (a+b) is an expression; In this expression, we need to verify some rules. If the open bracket exists in the expression then make sure to close bracket should exist after the open bracket. Same for […]