Skip to content

Commit c200e1b

Browse files
authored
chore: sync-up catalog (#682)
* chore: sync-up catalog - kata/counting-characters (beta => 8-kyu) - kata/spacify (7-kyu => retired) - kata/days-in-the-year (8-kyu => retired) - kata/center-of-array (beta => retired) * docs: sync progress * refactor: limit class visibility to package-private
1 parent 3cbbb58 commit c200e1b

File tree

32 files changed

+148
-141
lines changed

32 files changed

+148
-141
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Codewars Handbook ☕️🚀
22

33
[![Views statistics +1 👀](https://img.shields.io/badge/dynamic/xml?color=success&label=views&query=//*[name()=%27text%27][3]&url=https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FParanoidUser%2Fcodewars-handbook)](https://hits.seeyoufarm.com/api/count/graph/dailyhits.svg?url=https://github.com/ParanoidUser/codewars-handbook)
4-
[![Completed kata 👌](https://img.shields.io/badge/completed%20kata-69.1%25-red.svg)](https://www.codewars.com/kata/search/java?xids=completed)
4+
[![Completed kata 👌](https://img.shields.io/badge/completed%20kata-68.9%25-red.svg)](https://www.codewars.com/kata/search/java?xids=completed)
55
[![CI pipeline 🛠](https://img.shields.io/github/actions/workflow/status/ParanoidUser/codewars-handbook/build.yml?branch=main)](https://github.com/ParanoidUser/codewars-handbook/actions/workflows/build.yml)
66
[![Quality gate 🔎](https://img.shields.io/sonar/alert_status/codewars-handbook?server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=codewars-handbook)
77
[![Let's have a chat! 📞](https://img.shields.io/gitter/room/ParanoidUser/codewars-handbook?color=49c39e)](https://gitter.im/ParanoidUser/codewars-handbook)
@@ -25,7 +25,7 @@ slug.
2525

2626
| [1 kyu](/kata/1-kyu/index.md) | [2 kyu](/kata/2-kyu/index.md) | [3 kyu](/kata/3-kyu/index.md) | [4 kyu](/kata/4-kyu/index.md) | [5 kyu](/kata/5-kyu/index.md) | [6 kyu](/kata/6-kyu/index.md) | [7 kyu](/kata/7-kyu/index.md) | [8 kyu](/kata/8-kyu/index.md) | [beta](/kata/beta/index.md) | [retired](/kata/retired/index.md) |
2727
|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:---------------------------:|:---------------------------------:|
28-
| 0 | 1 | 2 | 26 | 48 | 433 | 591 | 219 | 56 | 79 |
28+
| 0 | 1 | 2 | 26 | 48 | 433 | 590 | 219 | 54 | 82 |
2929

3030
**Note:** The source code is written in Java 17 and may use language features that are incompatible
3131
with Java 8, 11.

kata/6-kyu/code-breaking-by-letter-frequency/test/SampleTest.java

Lines changed: 107 additions & 107 deletions
Large diffs are not rendered by default.

kata/6-kyu/guess-the-number-1/main/Guesser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Guesser {
1+
class Guesser {
22
private int guesses = 0;
33
private Integer num;
44

@@ -33,9 +33,9 @@ final void setAnswer(int answer) {
3333
}
3434

3535
@SuppressWarnings("serial")
36-
public static class GameException extends RuntimeException {
36+
static class GameException extends RuntimeException {
3737
public GameException(String msg) {
3838
super(msg);
3939
}
4040
}
41-
}
41+
}

kata/6-kyu/image-host-filename-generator/main/PhotoManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.util.HashSet;
22
import java.util.Set;
33

4-
public class PhotoManager {
4+
class PhotoManager {
55
private final Set<String> names = new HashSet<>();
66

77
boolean nameExists(String name) {

kata/6-kyu/reverse-or-rotate/main/RevRot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ static String revRot(String strng, int sz) {
88
for (var i = 0; i <= strng.length() - sz; i += sz) {
99
var chunk = new StringBuilder(strng.substring(i, sz + i));
1010
if (range(0, sz).mapToDouble(j -> Math.pow(chunk.charAt(j) - 48., 3)).sum() % 2 > 0) {
11-
result.append(chunk.substring(1, sz)).append(chunk.charAt(0));
11+
result.append(chunk, 1, sz).append(chunk.charAt(0));
1212
} else {
1313
result.append(chunk.reverse());
1414
}

kata/6-kyu/some-fun-with-aggregate-operations-part-4/main/Student.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Student {
77
private final String department;
88
private final Gender gender;
99

10-
public enum Gender {
10+
enum Gender {
1111
MALE, FEMALE
1212
}
1313
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
public class InvalidPlugboardWiresException extends Exception
2-
{
3-
}
1+
class InvalidPlugboardWiresException extends Exception {
2+
}

kata/7-kyu/finding-remainder-without-using-percent-operator/main/SimpleInteger.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
public final class SimpleInteger implements Comparable<SimpleInteger> {
1+
final class SimpleInteger implements Comparable<SimpleInteger> {
22
private final int value;
33

4-
public SimpleInteger(int val) {
4+
SimpleInteger(int val) {
55
value = val;
66
}
77

@@ -37,4 +37,4 @@ public boolean equals(Object obj) {
3737
public int hashCode() {
3838
return value ^ ((value + 1) * 31) * 31;
3939
}
40-
}
40+
}

kata/7-kyu/fixme-run-runner/main/ThreadUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public final class ThreadUtil {
1+
final class ThreadUtil {
22

33
private ThreadUtil() {}
44

@@ -12,4 +12,4 @@ static void method1() {
1212
static void method2() {
1313
id2 = Thread.currentThread().getId();
1414
}
15-
}
15+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import lombok.AllArgsConstructor;
22

33
@AllArgsConstructor
4-
public class Vector3D {
4+
class Vector3D {
55
final double x;
66
final double y;
77
final double z;
8-
}
8+
}

0 commit comments

Comments
 (0)