Ad

Wednesday, 3 July 2013

Algo#33: Using existing library functions.

This problem seems different from others. But many times in interview, you can expect this type of question of using existing library function.

Given teams score and number of times they won. We have to sort team based on these. If there is tie on score, sort them using number of times they won.

We can do this easily with qsort rather than starting from scratch.

Following is implementation of above problem in c language.





Please write comments if you find anything wrong or you want to add something more related to this topic.

No comments:

Post a Comment

Write your comment here.

Ad