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 selected article
Showing 1 of 176 articles.
Currently 4 other people reading this forum.


 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
7:06pm Thu 28th Mar, Nico B.

I was having a similar issue, with errors from test_submit_run() when either RUNS > 83, because then size <= 1. It was an AttributeError: 'NoneType'. I had to correct the sorting algorithm to make sure that if len(runs) <= 1, it would return runs (as it is already sorted). My error was specifically because I had just written `return` and not `return runs`, so it was NoneType. When it is running more tests, it is more likely to encounter a situation that the code no longer works. This is why it was only working for RUNS <= 83, because after that, size would be 1, so the error would occur. I was able to identify this by adding `try... except...` and printing size when the error occurred. I am now passing all tests with the new version (27 March 2024 4:05PM) of test_speedrunning.py

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