Posts tagged with "Bitset"

UVa Online Judge Challenge "10305"

This problem presents a DAG and the solution requires implementing a topological sort. I noticed that a topological sort can be implemented using only boolean arrays so I used this as an opportunity to finally get around to using Java’s BitSet class. The virtual judge run time was 0.050s.

Published: April 26, 2018 | Last Modified: May 2, 2025