Subscribe to the channel for Amazing Coding and Competitive Programming Content.
Problem Link:
Code Link:
Join Telegram for Post Contest Discussions, Coding Meets, Important Updates, Join Community of over 1000+ Coders:
Follow Codenav on Instagram:
Join My Telegram Channel For Daily Coding Content And Study Resources:
Website-
LinkTree-
My LinkedIn-
My Instagram-
My Facebook-
My Twitter-
Coding Blogs-
My “SO-CALLED” StartUp:- PrepEra Education
YouTube Channel-
Website (PrepEra Education)-
Instagram-
Facebook-
Linkedin-
Chapters:
00:00 Problem Statement
03:30 Logic+Explanation
14:47 Code Explanation
Join Telegram Channel for Post Contest Discussions: https://t.me/codenavdiscuss
Helpful
Waiting for this explanation!! Thanks man
Nice Implementation and Explanation.
Amazing content!!! Thanks for the solution.
Very nice explaination ๐๐
Helpful ๐
Thanks brother
You have said that 'x==1' is of no use. Dude, if it would be not present in the code, the values would be overwritten continuously. I have checked that. You should atleast know the logic of your own code.
helpful
thank you abhinav , you dont know it but you are helping me a lot with these videos.
Bhaiyaa thanks a lot!!!
Yes bro hindi is more convenient!
according to your logic, mera ek test case galat ho gaya… 11222
according to your logic, the output is:
X – + +
+ X = =
– = X +
– = – X
u can see in the last row, there should be one '+' but its not there.
EDIT: the above test case failed without using the x==1 part which u told to ignore. After using that x==1 part, the code is correct.