Skip to content

Commit ccdf449

Browse files
authored
Merge pull request careermonk#10 from AdrianKrebs/master
fixed two compiler errors. missing brace and wrong method argument
2 parents 77a19da + 82c9720 commit ccdf449

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/chapter03linkedlists/MergeKSortedLists.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static ListNode mergeKLists(ArrayList<ListNode> lists) {
2323
}
2424
//PriorityQueue is a sorted queue
2525
PriorityQueue<ListNode> pq = new PriorityQueue<>(lists.size(), (ListNode a, ListNode b) -> {
26-
if (a.getData() > b.getData) {
26+
if (a.getData() > b.getData()) {
2727
return 1;
2828
} else if (a.getData() == b.getData()) {
2929
return 0;

src/chapter06trees/CheckAVL.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public int getHeight(BinarySearchTreeNode root){
3333
}
3434

3535
public boolean isAVL(BinarySearchTreeNode root){
36-
return isAVL(BinarySearchTreeNode root, Integer.MIN_VALUE, Integer.MAX_VALUE);
36+
return isAVL(root, Integer.MIN_VALUE, Integer.MAX_VALUE);
3737
}
3838
}

0 commit comments

Comments
 (0)