Skip to content

Commit c5dc825

Browse files
committed
Added ZombieChibiXD_Palindrome.js
1 parent 094e767 commit c5dc825

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CONTRIBUTORS.md

+6
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,9 @@ Name: [Abhishek Singh](https://github.com/n6wbi6) </br>
444444
Place: India </br>
445445
Coding Experience: 2 years of coding experience in C and python. </br>
446446
Email: [email protected] </br>
447+
448+
Name: [Sazeim Saheem](https://github.com/ZombieChibiXD) </br>
449+
Place: Bali, Indonesia </br>
450+
Field Experience: System Administrator, Junior web developer, beta-tester, and debugger </br>
451+
Coding Experience: 3 years of learning & coding experience in C++, Java, Javascript/NodeJS, PHP, Vue.js, Laravel Framework, GoLang and python. </br>
452+
Email: [email protected] </br>
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <iostream>
2+
#include <string>
3+
4+
bool isPalindrome(std::string input) { return input == std::string(input.rbegin(), input.rend()); }
5+
6+
int main()
7+
{
8+
std::string input = "able was I ere I saw elba" ;
9+
//std::cout << "Input : ";
10+
//getline (std::cin, input);
11+
std::cout << "It is " << (isPalindrome(input) ? "" : "not ") << "a palindrome";
12+
}
13+

0 commit comments

Comments
 (0)