__CPP__Try_Hard__niranjan2004.hashnode.dev·Apr 17, 2024Tricky Edge Case in Data Structures and AlgorithmsQuestion Make the array Beautiful Problem statement Input and Expected Output Constrains Sample Test Cases Input :- 4 4 3 3 6 6 2 10 10 5 1 2 3 4 5 3 1 4 4 Output :- YES 3 6 3 6 NO YES 2 4 1 5 3 YES 1 4 4 Understanding the Question This fig...DSAAdd a thoughtful commentNo comments yetBe the first to start the conversation.