Like the way we pass compare function to swap function, can we do the same with other functions made by us??
Passing a Function into another function as an argument
Hello @gaurisha yes you can make your custom compare function and make comparison acoording to you in any other functions.
Happy Learning!!