Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix smells
  • Loading branch information
ThanhNIT committed May 26, 2022
commit d8ce35e8953fc6ced49000bfa321b379063b6f75
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public int countValidWords(String sentence) {
} else if (Character.isDigit(token.charAt(i))) {
valid = false;
break;
} else if (Character.isDigit(token.charAt(i))) {
valid = false;
break;
}
}
if (valid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private int solve(int i, int n, int d, int sz, boolean[] select, int[] arr) {
return ans;
}

private int make(int cur, int n, int end, boolean[] select, int[] arr) { // Get all permutation.
private int make(int cur, int n, int end, boolean[] select, int[] arr) {
if (end == 0) {
return cur > n ? cur : Integer.MAX_VALUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

public class Solution {
static class Node {
Node left, right;
Node left;
Node right;
}

private int size;
Expand Down