It's UWAweek 47

help3001

This forum is provided to promote discussion amongst students enrolled in CITS3001 Advanced 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 6 articles in this topic
Showing 6 of 202 articles.
Currently 2 other people reading this forum.


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported

Login to reply

👍?
helpful
11:36am Fri 27th Sep, Alistair L.

I was examining the sample inputs provided for the FLIP question of the project after getting an incorrect answer to search for possible bugs in my code. Looking over sample input 1 I visually identified 3 distinct 8-connected regions of each colour, however the answer given for this input is only 2. Attached is a graphic representation of the input. Is this an error in the sample or am I misunderstanding the problem in some way and need to go back to read it again more closely?



This article has 1 attachment:

 

SVG not supported

Login to reply

👍?
helpful
11:38am Fri 27th Sep, ANONYMOUS

You flip the white space then it'll become a big black space with the other 3 black space. Then flip the big black space and it'll all become white


SVG not supported

Login to reply

👍?
helpful
11:38am Fri 27th Sep, ANONYMOUS

Forgot to mention, any white space in the middle that isn't (0,0) or the last row.


SVG not supported

Login to reply

👍?
helpful
11:43am Fri 27th Sep, Alistair L.

Misread afterall, thank you :)


SVG not supported

Login to reply

👍?
helpful
11:46am Fri 27th Sep, Andrew G.

"Alistair Langton" <22*6*9*4@s*u*e*t*u*a*e*u*a*> wrote:
> I was examining the sample inputs provided for the FLIP question of the project after getting an incorrect answer to search for possible bugs in my code. > Looking over sample input 1 I visually identified 3 distinct 8-connected regions of each colour, however the answer given for this input is only 2. > Attached is a graphic representation of the input. > > Is this an error in the sample or am I misunderstanding the problem in some way and need to go back to read it again more closely?
The other student who has replied is correct. It seems you misunderstood the problem statement and need to read it again more closely.


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
5:28pm Thu 3rd Oct, ANONYMOUS

So once you flip a segment, you can return to the grid's beginning to revisit?

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