Practice
Resources
Interview Guides
All Problems
Fast Track Courses
Community
Blog
Interview Preparation Kit
Video Courses
Contests
Online IDE
New
Online C++ Compiler
Online C Compiler
Online Python Compiler
Online Java Compiler
Online JavaScript Compiler
Free Mock
Powered By
Free Mock Assessment
Take popular mock tests for free with real life interview questions from top tech companies
Explore Mock Tests
Powered By
Mock Interview
Pair up with a peer like you and practise with hand-picked questions
Explore Mock Interviews
Events
New
Scaler
Please enter 3 or more characters
Experience Scaler
Experience Scaler
Profile
Settings
Help Requests
Profile
Settings
Help Requests
Login to experience InterviewBit
Sign in
Experience Scaler
Experience Scaler
Profile
Settings
Help Requests
Profile
Settings
Help Requests
Login to experience InterviewBit
Sign in
Practice
Improve your coding skills with our resources
Resources
Experience learning
Interview Guides
All Problems
Fast Track Courses
Community
Blog
Interview Preparation Kit
Video Courses
Contests
Compete in popular contests with top coders
Online IDE
Checkout our improved IDE
Online C++ Compiler
Online C Compiler
Online Python Compiler
Online Java Compiler
Online JavaScript Compiler
Free Mock
Assess yourself and prepare for interviews
Free Mock Assessment
Mock Interview
Events
Attend free live masterclass hosted by top tech professionals
New
Scaler
Explore Offerings by SCALER
Join Interviewbit
Get free unlimited access to our resources to help you prepare for your next tech interview
Sign Up or Login to get Started
Continue with Google
OR continue using other options
Are you sure you want to Exit?
You will not able to continue using resources without logging in.
Yes, Exit
No
Problem Discussion
Post a comment
This thread is for people who have not yet solved the problem. Please do not post solutions here.
A
anurag-ram
29 days ago
Whats the problem in my approach i know t.c is more but what else?
0
Reply
R
rohan-kumar_204
8 months ago
Java 10 Lines Of Code!
0
Reply
A
amrit-vyas
9 months ago
Deque C++ || O(n)
1
Reply
S
shubham-sawlani
10 months ago
Go | O(N) | Using Raw implementation of Dequeue
0
Reply
G
gaurav-iiitd
10 months ago
Deque Solution | O(n) | C++
1
Reply
A
arnab-nath_572
about 1 year ago
Is there something wrong with this approach, its running all test cases successfully. (I am not using deque)
1
Reply
F
fiza-naaz
about 1 year ago
Python3 solulu for everyone
0
Reply
T
tushargahlaut74_3941
over 1 year ago
C++ Deque Solution + Explanation
0
Reply
M
maninder-singh_278
over 1 year ago
Easy C++ solution using sliding window Algo
0
Reply
U
ujjawal_476
over 1 year ago
Sliding window method (JAVA) easy
0
Reply
R
rabi-shaw
almost 2 years ago
Simple C++ O(N) solution using maps
6
Reply
S
sanskari-londaxd
almost 2 years ago
Can anyone tell which case it is failing on
0
Reply
C
chatrapatirajashekar
almost 2 years ago
What is problem in this code ,pls anyone help me withis code .it is giving exact output as expected but still it is showing wrong answer
1
Reply
B
bhav-khurana-4-year
almost 2 years ago
Multiset approach
1
Reply
A
aashaydoshi
over 2 years ago
Use python deque?
0
Reply
N
nisarg.01
over 2 years ago
C++ ,Easy Priority Queue | vector pair Solution
0
Reply
S
shivam2000_7df671abd
over 2 years ago
C++ || Deque Implementation || Standard problem
0
Reply
A
atharv-diwan
almost 3 years ago
Deque c++ not getting result can someone help
0
Reply
M
momidi-midhilesh
almost 3 years ago
Deque Implementation in python
0
Reply
S
shikhar-mishra_440
almost 3 years ago
C++ | O(n) | Using Ordered Maps
0
Reply
S
shivam2000_7df671abd
almost 3 years ago
C++ || Deque Implementation || Short & Clean code
0
Reply
A
aamitprasad618_71c98
almost 3 years ago
CPP sliding window easy coad
0
Reply
P
prakharkhare52rk_c4a
almost 3 years ago
TLE solution but using dequeue will run it in O(n)
0
Reply
R
raghav-kaushal_933
over 3 years ago
What a beautiful Question ! 'Check my C++ code
0
Reply
S
shashank-kumar_980
almost 4 years ago
Best in JAVA solution T.C. => O(n) Using Dequq ; By : Shashank
0
Reply
S
shubham-kumar_741
almost 4 years ago
Wrong Answer in TC
1
Reply
V
viv_Shubham
almost 4 years ago
Hard Problem, Cannot be done without prior knowledge
5
Reply
S
shaikwasef
about 4 years ago
Why run time exceeded using priority queue?
0
Reply
P
prasant_garasia_kkc
about 4 years ago
Sample cases are very weak
0
Reply
Post a comment
This thread is for people who have solved the problem. You may discuss your solutions here.
A
animesh-jain_339
7 months ago
JAVA | Priority Queue
0
Reply
D
dhameliya-yagnik
9 months ago
C++ | Deque | Easy and Intuitive Comment Explanation
0
Reply
A
aditya-gupta_125_128
10 months ago
Using Priority_queue
0
Reply
P
pradeep-sooryavanshe
over 1 year ago
Sliding Window Maximum || Easy C++ Solution
0
Reply
A
anshikaaggarwal566_3
almost 2 years ago
Easy C++ Video Solution
0
Reply
I
ironboyrazib72942_d7
over 2 years ago
C++ || Easy & Clean || Multiset
0
Reply
J
jitesh-bhashwani
over 2 years ago
Space O(1) simple solution (without any stack map or queue)
0
Reply
2
2020csb1117_c084052d
almost 3 years ago
Easy C++ O(N) solution using map
0
Reply
R
ricky-patel
almost 3 years ago
O(nlogn) solution easy
0
Reply
V
vishal-mishra_326
almost 3 years ago
Striver deque logic in easily
0
Reply
A
arkadeep-ghosh_228
almost 3 years ago
Implementation using Priority Queue
0
Reply
A
anand-kasaudhan
almost 3 years ago
Simple Deque solution
0
Reply
A
adil_374
almost 3 years ago
C++ || MultiSet
0
Reply
H
harmandeep-singh_348
almost 3 years ago
Very interesting question ! Check my c++ code
0
Reply
P
priyanshu-chaudhary
almost 3 years ago
C++ || Ordered Map || easy and clean code
0
Reply
T
the-elite-gamers-rem
about 3 years ago
Multiset O(nlogn) solution
1
Reply
D
dipesh-saili
over 3 years ago
Help, runtime error (Help with full solution please)
0
Reply
M
mohammad-abdullah-an
almost 4 years ago
Easy solution without usage of stack or queue
0
Reply
K
kritarth_e489a8a73e0
almost 4 years ago
Map based O(N), sexy code
0
Reply
N
NishthavanDahiya
almost 4 years ago
Try This way using Left Max and Right Max array approach
0
Reply
L
lakshya-agarwal_797
almost 4 years ago
Ver Very Easy C++ sol
2
Reply
N
naman-jain_652
almost 4 years ago
Java Solution using Deque
1
Reply
J
jyotiraditya
almost 4 years ago
C++ O(n) solution using deque with comments
0
Reply
S
Sonukshikshak
almost 4 years ago
C++ Easy Solution by Sonu
0
Reply
S
sarthakSrivastava
almost 4 years ago
Easy solution using map C++
0
Reply
I
imran-wahid
almost 4 years ago
Easy C++ solution without using any Deque | Time complexity O(n)
0
Reply
K
karansoni158
almost 4 years ago
A different nlogn approach using c++ set
0
Reply
S
suraj1737993_3840603
about 4 years ago
Easy c++ solution , O(n)
0
Reply
A
arya-abhishek_694
about 4 years ago
Next Greater Element to Right and 2 pointer Approach
1
Reply
Click here to start solving coding interview questions
Join Interviewbit
Get free unlimited access to our resources to help you prepare for your next tech interview
Sign Up or Login to get Started
Continue with Google
OR continue using other options
Join Interviewbit
Get free unlimited access to our resources to help you prepare for your next tech interview
Sign Up or Login to get Started
Continue with Google
OR continue using other options
Unlock the complete InterviewBit
experience for free
Sign Up Using
Or use email
1 Million +
Strong Tech Community
500 +
Questions to Practice
100 +
Expert Interview Guides
Free Mock Assessment
Powered By
Fill up the details for personalised experience.
Phone Number
*
OTP will be sent to this number for verification
+1
*
Type to search
+1
No results found
Phone Number
Change Number
Graduation Year
*
Graduation Year
*
Type to search
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
No results found
*
Enter the expected year of graduation if you're student
Current Employer
Company Name
Type to search
No results found
College you graduated from
College/University Name
Type to search
No results found
Job Title
Job Title
Type to search
Engineering Leadership
Software Development Engineer (Backend)
Software Development Engineer (Frontend)
Software Development Engineer (Full Stack)
Data Scientist
Android Engineer
iOS Engineer
Devops Engineer
Support Engineer
Research Engineer
Engineering Intern
QA Engineer
Co-founder
SDET
Product Manager
Product Designer
Backend Architect
Program Manager
Release Engineer
Security Leadership
Database Administrator
Data Analyst
Data Engineer
Non Coder
Other
No results found
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account?
Log in
Free Mock Assessment
Powered By
Instructions from Interviewbit
Start Test