Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
neopilot
/
PyRs2
like
0
Follow
NeoPilot AI
1
Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
Croissant
License:
gpl-3.0
Dataset card
Data Studio
Files
Files and versions
xet
Community
1
b3acecc
PyRs2
/
rust
/
palindrome.rs
khulnasoft
Upload folder using huggingface_hub
998b6cc
verified
10 months ago
raw
Copy download link
history
blame
Safe
176 Bytes
fn
is_palindrome
(s: &
str
)
->
bool
{
s.
chars
().
eq
(s.
chars
().
rev
())
}
fn
main
() {
println!
(
"{}"
,
is_palindrome
(
"racecar"
));
println!
(
"{}"
,
is_palindrome
(
"hello"
));
}