Help in SPOJ problem- JNEXT

Revision en1, by aman_012, 2020-05-31 21:01:26

Hey there!

I came across this problem [](https://www.spoj.com/problems/JNEXT/) under the tag of stack and queues and would like to know the solution for the same. I got it accepted using basic logic but couldn't find any solution using stacks or queues.

Thanks in advance.

Tags #spoj, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aman_012 2020-05-31 21:01:26 309 Initial revision (published)