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 3 articles in this topic
Showing 3 of 176 articles.
Currently 11 other people reading this forum.


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

Login to reply

👍x2
helpful
1:23pm Mon 18th Mar, ANONYMOUS

If a leaderboard contains no runs, how should the get_rank_time() method behave? Should it throw an error or return positive infinity?


SVG not supported

Login to reply

👍?
helpful
1:35pm Mon 18th Mar, ANONYMOUS

Similarly, what about when the rank passed is larger than the number of runs in the leaderboard?


SVG not supported

Login to reply

👍?
helpful
5:53pm Sat 23rd Mar, ANONYMOUS

with returning positive infinity, thats what im also doing for now. and for what its worth, to cover all edge cases, im throwing negative infinity for when the rank is < 1. I am sort of just assuming that that is what we are expected to do, but ill be keeping an eye on this forum for any updates because it does feel a bit iffy.

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