Skip to content

Commit

Permalink
challenges: palindrome draft challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Aug 1, 2023
1 parent 02cef16 commit c84f0a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ For this project it is assumed that a palindrome is a string of characters from

It is assumed that a palindrome is at least 3 characters long, meaning a single character cannot be a palindrome. If a single character was a palindrome, then any valid sequence would contain at least as many palindromes as characters in that sequence.

## Task set
## Challenge

Write an algorithm to find the 3 longest unique palindromes in a string. For the 3 longest palindromes, report the palindrome, start index and length in descending order of length. Any tests should be included with the submission.

For example, the output for string, "sqrrqabccbatudefggfedvwhijkllkjihxymnnmzpop" should be:
For example, the output for string, `"sqrrqabccbatudefggfedvwhijkllkjihxymnnmzpop"` should be:

```
```text
Text: hijkllkjih, Index: 23, Length: 10
Text: defggfed, Index: 13, Length: 8
Text: abccba, Index: 5 Length: 6
Expand Down
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ nav:
- Portal: data-inspector/portal.md
- Code Challenges:
- coding-challenges/index.md
# - Palindrome:
# - coding-challenges/palindrome/index.md
# - coding-challenges/palindrome/simple-palindrome-test.md
- 4 Ever Clojure:
- coding-challenges/4clojure/index.md
- Exercism:
Expand Down

0 comments on commit c84f0a7

Please sign in to comment.