DSA Day 61/100
Topic: Stack
Questions Successfully Completed: 2
1) Immediate Smaller ElementEasy2) Implement two stacks in an arrayEasy
Immediate Smaller Element
Time Complexity : O(N)
Space Complexity : O(1)
QuestionInput: N = 5 Arr[] = {4, 2, 1, 5, 3} Output: 2 ...
preetikaprakash.hashnode.dev2 min read