I am facing issue in lexographical sort

Hey @siddhant_samal the logic you have used is not appropriate to solve this problem. To solve it you should use sort function with your own comparator function.
You can ask for help in this process If you want to :slight_smile:
To solve it you should use sort function with your own comparator function.

i was trying that method earlier , by using vector of pairs and at end , i was facing many issues to sort the vector pairs…So i thought about this method using by bucket sort but after sorting the numbers and taking value grater than 79 ,i was unable to sort the names …could you please share the code for this question how to use sort function and comparator function for better understanding

Yes sure @siddhant_samal here’s the code for the same for better understanding :slight_smile: