It's UWAweek 47

help2200

This forum is provided to promote discussion amongst students enrolled in CITS2200 Data Structures and Algorithms.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 2 articles in this topic
Showing 2 of 176 articles.
Currently 2 other people reading this forum.


 UWA week 12 (1st semester, week 4) ↓
SVG not supported

Login to reply

👍?
helpful
1:50pm Tue 19th Mar, ANONYMOUS

I am unsure how the rank system works. If 10,20,20,40, then the ranks are 1,2,2,4. However, what if a get_rank_time(3) is provided, but there are no rank3? If get_rank_time(3) returns '20', then it the rank is simply the index - 1 which seems wrong.


SVG not supported

Login to reply

👍x1
helpful
12:47pm Wed 20th Mar, ANONYMOUS

No, you are right. The description for the method says it returns, quote, "The time required to place `rank`th or better."

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy