Simple DSA Question That Hurt My Ego : But Valuable Lessons Learned
Question
Problem Statement
Input and Output Formats
Time and Space constrains
Sample Test Cases
Input
4
4
<<>>
4
>><<
5
>>>>>
7
<><><><
Output
3
3
6
2
Algorithm I came up with
Idea
We just have to simulate a stack ;
One idea is to start from 0,...
niranjangopal.dev5 min read