We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05cf9c1 commit 1aec66fCopy full SHA for 1aec66f
src/main/java/com/thealgorithms/datastructures/graphs/TwoSat.java
@@ -98,8 +98,8 @@ public TwoSat(int numberOfVariables) {
98
this.numberOfVariables = numberOfVariables;
99
int n = 2 * numberOfVariables + 1;
100
101
- graph = new ArrayList[n];
102
- graphTranspose = new ArrayList[n];
+ graph = (ArrayList<Integer>[]) new ArrayList[n];
+ graphTranspose = (ArrayList<Integer>[]) new ArrayList[n];
103
for (int i = 0; i < n; i++) {
104
graph[i] = new ArrayList<>();
105
graphTranspose[i] = new ArrayList<>();
0 commit comments