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 d84a1e2 commit 4f86ecdCopy full SHA for 4f86ecd
src/main/java/com/fishercoder/solutions/_821.java
@@ -35,7 +35,6 @@ public int[] shortestToChar(String S, char C) {
35
int leftDist = Integer.MAX_VALUE;
36
if (cIndices.floor(i) != null) {
37
leftDist = Math.abs(cIndices.floor(i) - i);
38
- } else {
39
}
40
int rightDist = Integer.MAX_VALUE;
41
if (cIndices.ceiling(i) != null) {
0 commit comments