this is for holding javascript data
Niclas Alexandersson edited b) Find the assignment of the rooms.tex
almost 10 years ago
Commit id: 774ebd362eef4ac2cf2acf0b96e469565dc68ca4
deletions | additions
diff --git a/b) Find the assignment of the rooms.tex b/b) Find the assignment of the rooms.tex
index 9fd44f4..69f3269 100644
--- a/b) Find the assignment of the rooms.tex
+++ b/b) Find the assignment of the rooms.tex
...
for i in courses:
room <- []
if len(days) > 0 and !collides(i,
days.peekFirst().getLast()): rooms.peekFirst().getLast()):
room <- collisions.removeFirst()
room.addLast(i)
rooms.add(day) rooms.add(room)
return asList(rooms)
\end{verbatim}