From 6f356f73b5abdfcfcc021ca779ad92e17a543fe8 Mon Sep 17 00:00:00 2001 From: zanninso Date: Fri, 3 May 2024 10:08:11 +0100 Subject: [PATCH] docs: fixing test example and adding more information to clarify --- subjects/java/checkpoints/almost-palindrom/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/java/checkpoints/almost-palindrom/README.md b/subjects/java/checkpoints/almost-palindrom/README.md index 57c4c2fc1..6f3edc191 100644 --- a/subjects/java/checkpoints/almost-palindrom/README.md +++ b/subjects/java/checkpoints/almost-palindrom/README.md @@ -1,10 +1,12 @@ -## Palindrome +## AlmostPalindrome ### Instructions In a file named `AlmostPalindrome.java` write a function `isAlmostPalindrome` that returns true if the String in parameter is almost palindrome. A word is considered "almost a palindrome" if removing one letter from the word makes it a palindrome. +> 💡 The String in parametre will contains at least 3 letters. + ### Expected Functions ```java @@ -22,7 +24,7 @@ Here is a possible `ExerciseRunner.java` to test your function : ```java public class ExerciseRunner { public static void main(String[] args) { - System.out.println(AlmostPalindrome.isAlmostPalindrome("reviver")); + System.out.println(AlmostPalindrome.isAlmostPalindrome("Racedcar")); System.out.println(AlmostPalindrome.isAlmostPalindrome("level")); } }