Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
say "noon".is_palindrome; # true
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
func palindrome(s) {
|
||||
s == s.reverse
|
||||
}
|
||||
11
Task/Palindrome-detection/Sidef/palindrome-detection-3.sidef
Normal file
11
Task/Palindrome-detection/Sidef/palindrome-detection-3.sidef
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
func palindrome(s) {
|
||||
if (s.len <= 1) {
|
||||
true
|
||||
}
|
||||
elsif (s.first != s.last) {
|
||||
false
|
||||
}
|
||||
else {
|
||||
__FUNC__(s.ft(1, -2))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue