Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d3ee0d9

Browse files
committed
Add comment to all subsets function
1 parent 1fe7c3b commit d3ee0d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runestone/parsons/js/dagGrader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ function isVertexCover(graph, vertexCover) {
2222
return true;
2323
}
2424

25+
// Find all subsets of the set using the correspondence of subsets of
26+
// a set to binary string whose length are the size of the set
2527
function allSubsets(arr) {
2628
let subsets = {};
2729
for (let i = 0; i <= arr.length; i++) {

0 commit comments

Comments
 (0)