Getting a partial correct answer on the problem Not All Flavours
My logic is pretty simple-> to use 2 pointer technique and std::set to track that segment of the array which is just less than k unique elements
please suggest a bad test case and/or the bug in the code!
Link to Code-Submission
Thanks in Advance