please check its printing one object again and again.
Problem in sort game
use bubble sort to sort salary and name array according to salary array and along with sorting sort with lexographically if salaries are equal
share your updated code
example test case is correct.
but code not submitting. showing blank output when submitting. tried about 10 times.
Hey @vivek21,
You needn’t do all this. https://ide.codingblocks.com/s/148182 Understand this approach and complete the code. You need to create a separate class for Salary inputs and define a constructor to take input and compare function to remove redundant values.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.