- Difficulty: Hard
- Given a string, calculate the length of the shortest string which can be achieved by removing any number of substrings that start and end with the same letter.
- https://app.codility.com/programmers/challenges/pairacoder_2022/
- https://app.codility.com/programmers/task/remove_substrings/
- Result
Good
: Correctness 100%, Performance 100%.OK
: Correctness 100%, Performance <100%.Fail
: Correctness <100%, Performance <100%.
- File naming convention
- Code
A
:PairACoder2022A.java
- etc
- Code
File | Complexity | Result | Report |
---|---|---|---|
B |
O(N) |
Good |
MEBAJ9 |
File | Complexity | Result | Report |
---|---|---|---|
A |
O(N**2) |
OK |
SV8BP6 |
File | Complexity | Result | Report |
---|---|---|---|
C |
O(N**2) |
OK |
XH722P |
D |
O(N) |
Good |
Q6VA7D |