GDSC-MITADT-Hacktoberfest2021 / Hacktoberfest2021

13 stars 40 forks source link

DSA Queue Hard Q1 solution added #42

Closed parth2211 closed 2 years ago

parth2211 commented 2 years ago

Gave optimal solution of DSA->Queues->Hard->Q1 in c++. The time complexity is O(N) and Space complexity is O(k). Used deque as the data structure for implementing the problem statement.