@Naresh Gupta sir your explanation is superb. Sir, please make a video on Longest Happy String using priorityqueue
@ankitmishra3992 жыл бұрын
class SeatManager { int arr[]; int d=0; public SeatManager(int n) { arr=new int[n+1]; } public int reserve() { arr[d]=1; d++; return d; } public void unreserve(int s) { int e=d; for(int i=s;i
@ankitmishra3992 жыл бұрын
sir why this brute force show wrong ans instead of Time limit exceed