Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
PyRs2 / rust /palindrome.rs
khulnasoft's picture
Upload folder using huggingface_hub
998b6cc verified
raw
history blame contribute delete
176 Bytes
fn is_palindrome(s: &str) -> bool {
s.chars().eq(s.chars().rev())
}
fn main() {
println!("{}", is_palindrome("racecar"));
println!("{}", is_palindrome("hello"));
}