Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Palindrome-detection/Vala/palindrome-detection.vala
Normal file
9
Task/Palindrome-detection/Vala/palindrome-detection.vala
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
bool is_palindrome (string str) {
|
||||
var tmp = str.casefold ().replace (" ", "");
|
||||
return tmp == tmp.reverse ();
|
||||
}
|
||||
|
||||
int main (string[] args) {
|
||||
print (is_palindrome (args[1]).to_string () + "\n");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue