Please fill the Feedback form for PCD: forms.gle/YgfzNTxGfgP334VB8
@surajmishra69002 ай бұрын
Love you Gaurish, I hope we get a lot of Gaurish videos from TLE eliminators in the future.
@allmighty20002 ай бұрын
Gaurish always comes with best post contest solutions
@sourabhtiwari47882 ай бұрын
Bro I was troubled by the problem c whole day you explained it in the simplest way just be frequent for uploading the solution for the rounds your video solutions are very intuitive to understand.
@kshitijgarg7986Ай бұрын
very good explanation of C
@sach_in_sigma2 ай бұрын
that was super useful, thank you
@priyanshkumar172 ай бұрын
The deque way was amazing. I used 2 pointers and a vector for creating the permutation with 1 in the middle.
@64chaitanyaanand592 ай бұрын
good explanation. i still didnt understand D one. Maybe you could do a dry run in the case of a problem like D. Loved the video. thanks!
@KartikeyTT2 ай бұрын
0:40 A 8:26 B 21:24 C 34:44 D
@priyanshkumar172 ай бұрын
Great explanation of C!! Thank you Sir
@nemesis53912 ай бұрын
For B just use one half with increasing sequence and other half with decreasing sequence for permutation
@rohitsonar88582 ай бұрын
For B I just keep numbers in vector if size is even then print -1 else reverse nums.begin,nums.end and then reverse nums.begin+n/2,nums.end and print nums
@Ramneet042 ай бұрын
What's the time complexity for D problem??
@akshatsharma54262 ай бұрын
I thought of the same approach for D but could not implement it
@Harsh-w1i2 ай бұрын
For problem C, how can we be so sure that the tree is rooted at 1. What if it's rooted at 2 instead of 1?
@akshatsharma54262 ай бұрын
it is a tree you can assume it to be rooted at any node I would not change the overall structure and the corresponding parent of node
@AyushVerma-ui7re2 ай бұрын
there was no need to use a deque in B, just use for loop to first print the first half with increasing numbers, use odd numbers, then print the last half with decreasing even numbers. like 1 3 5 4 2
@cqwshi2 ай бұрын
i tried to do it but it is showing wrong answer in test case 2
@AyushVerma-ui7re2 ай бұрын
@@cqwshi #include #include #include using namespace std; int main(){ long long int t; cin>>t; while(t--){ int n; cin>>n; if(n==1) cout
@Irakkli2 ай бұрын
Thanks
@kartiknagrale14792 ай бұрын
Hello
@shanvi_ojha2 ай бұрын
Runtime error on test 8 problem c
@omkara4772 ай бұрын
Make a video on Leetcode Biweekly 137
@ashhar72842 ай бұрын
timestamp..pls
@TLE_Eliminators2 ай бұрын
It’s already there, from the very beginning
@ashhar72842 ай бұрын
@@TLE_Eliminators nah it wasn't at the time i had watched it!, now it's there.