id int64 1 2.26k | language stringclasses 7
values | category stringclasses 3
values | difficulty stringclasses 2
values | task_description stringclasses 132
values | code stringlengths 68 753 | explanation stringclasses 449
values |
|---|---|---|---|---|---|---|
1,401 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | #include <iostream>
#include <algorithm>
#include <string>
bool execute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << execute_palindrome("noon") << std::endl;
retur... | Palindrome Check operation, function named 'execute_palindrome'. |
1,402 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | #include <iostream>
#include <algorithm>
#include <string>
bool compute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << compute_palindrome("data science") << std::endl;
... | Palindrome Check operation, function named 'compute_palindrome'. |
1,403 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | #include <iostream>
#include <algorithm>
#include <string>
bool execute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << execute_palindrome("data science") << std::endl;
... | Palindrome Check operation, function named 'execute_palindrome'. |
1,404 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | #include <iostream>
#include <algorithm>
#include <string>
bool process_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << process_palindrome("step on no pets") << std::endl... | Palindrome Check operation, function named 'process_palindrome'. |
1,405 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | #include <iostream>
#include <algorithm>
#include <string>
bool execute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << execute_palindrome("step on no pets") << std::endl... | Palindrome Check operation, function named 'execute_palindrome'. |
1,406 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | #include <iostream>
#include <algorithm>
#include <string>
bool apply_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << apply_palindrome("coding") << std::endl;
return ... | Palindrome Check operation, function named 'apply_palindrome'. |
1,407 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | #include <iostream>
#include <algorithm>
#include <string>
bool handle_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << handle_palindrome("coding") << std::endl;
retur... | Palindrome Check operation, function named 'handle_palindrome'. |
1,408 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | #include <iostream>
#include <algorithm>
#include <string>
bool handle_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << handle_palindrome("madam im adam") << std::endl;
... | Palindrome Check operation, function named 'handle_palindrome'. |
1,409 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | #include <iostream>
#include <algorithm>
#include <string>
bool perform_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << perform_palindrome("madam im adam") << std::endl;
... | Palindrome Check operation, function named 'perform_palindrome'. |
1,410 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | #include <iostream>
#include <algorithm>
#include <string>
bool apply_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << apply_palindrome("kayak") << std::endl;
return 0... | Palindrome Check operation, function named 'apply_palindrome'. |
1,411 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | #include <iostream>
#include <algorithm>
#include <string>
bool compute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << compute_palindrome("kayak") << std::endl;
retu... | Palindrome Check operation, function named 'compute_palindrome'. |
1,412 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | #include <iostream>
#include <algorithm>
#include <string>
bool perform_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << perform_palindrome("the quick brown fox") << std::... | Palindrome Check operation, function named 'perform_palindrome'. |
1,413 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | #include <iostream>
#include <algorithm>
#include <string>
bool handle_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << handle_palindrome("the quick brown fox") << std::en... | Palindrome Check operation, function named 'handle_palindrome'. |
1,414 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | #include <iostream>
#include <algorithm>
#include <string>
bool apply_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << apply_palindrome("civic") << std::endl;
return 0... | Palindrome Check operation, function named 'apply_palindrome'. |
1,415 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | #include <iostream>
#include <algorithm>
#include <string>
bool run_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << run_palindrome("civic") << std::endl;
return 0;
} | Palindrome Check operation, function named 'run_palindrome'. |
1,416 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | #include <iostream>
#include <algorithm>
#include <string>
bool execute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << execute_palindrome("never odd or even") << std::en... | Palindrome Check operation, function named 'execute_palindrome'. |
1,417 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | #include <iostream>
#include <algorithm>
#include <string>
bool run_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << run_palindrome("never odd or even") << std::endl;
... | Palindrome Check operation, function named 'run_palindrome'. |
1,418 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | #include <iostream>
#include <algorithm>
#include <string>
bool run_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << run_palindrome("python programming") << std::endl;
... | Palindrome Check operation, function named 'run_palindrome'. |
1,419 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | #include <iostream>
#include <algorithm>
#include <string>
bool perform_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << perform_palindrome("python programming") << std::e... | Palindrome Check operation, function named 'perform_palindrome'. |
1,420 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | #include <iostream>
#include <algorithm>
#include <string>
bool apply_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << apply_palindrome("deified") << std::endl;
return... | Palindrome Check operation, function named 'apply_palindrome'. |
1,421 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | #include <iostream>
#include <algorithm>
#include <string>
bool compute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << compute_palindrome("deified") << std::endl;
re... | Palindrome Check operation, function named 'compute_palindrome'. |
1,422 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | #include <iostream>
#include <algorithm>
#include <string>
bool perform_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << perform_palindrome("algorithms and data structures... | Palindrome Check operation, function named 'perform_palindrome'. |
1,423 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | #include <iostream>
#include <algorithm>
#include <string>
bool process_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << process_palindrome("algorithms and data structures... | Palindrome Check operation, function named 'process_palindrome'. |
1,424 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | #include <iostream>
#include <algorithm>
#include <string>
bool execute_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << execute_palindrome("rotor") << std::endl;
retu... | Palindrome Check operation, function named 'execute_palindrome'. |
1,425 | C++ | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | #include <iostream>
#include <algorithm>
#include <string>
bool run_palindrome(std::string s) {
std::transform(s.begin(), s.end(), s.begin(), ::tolower);
std::string reversed(s.rbegin(), s.rend());
return s == reversed;
}
int main() {
std::cout << run_palindrome("rotor") << std::endl;
return 0;
} | Palindrome Check operation, function named 'run_palindrome'. |
1,426 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | fn perform_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", perform_palindrome("racecar"));
} | Palindrome Check operation, function named 'perform_palindrome'. |
1,427 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("racecar"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,428 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("hello world"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,429 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("hello world"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,430 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | fn apply_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", apply_palindrome("A man a plan a canal Panama"));
} | Palindrome Check operation, function named 'apply_palindrome'. |
1,431 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("A man a plan a canal Panama"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,432 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | fn apply_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", apply_palindrome("Rust is fun"));
} | Palindrome Check operation, function named 'apply_palindrome'. |
1,433 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | fn run_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", run_palindrome("Rust is fun"));
} | Palindrome Check operation, function named 'run_palindrome'. |
1,434 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | fn apply_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", apply_palindrome("level"));
} | Palindrome Check operation, function named 'apply_palindrome'. |
1,435 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | fn perform_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", perform_palindrome("level"));
} | Palindrome Check operation, function named 'perform_palindrome'. |
1,436 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("OpenAI Claude"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,437 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | fn perform_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", perform_palindrome("OpenAI Claude"));
} | Palindrome Check operation, function named 'perform_palindrome'. |
1,438 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | fn run_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", run_palindrome("was it a car or a cat i saw"));
} | Palindrome Check operation, function named 'run_palindrome'. |
1,439 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("was it a car or a cat i saw"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,440 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | fn execute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", execute_palindrome("noon"));
} | Palindrome Check operation, function named 'execute_palindrome'. |
1,441 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("data science"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,442 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | fn run_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", run_palindrome("data science"));
} | Palindrome Check operation, function named 'run_palindrome'. |
1,443 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("step on no pets"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,444 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("step on no pets"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,445 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | fn perform_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", perform_palindrome("coding"));
} | Palindrome Check operation, function named 'perform_palindrome'. |
1,446 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("coding"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,447 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("madam im adam"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,448 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | fn run_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", run_palindrome("madam im adam"));
} | Palindrome Check operation, function named 'run_palindrome'. |
1,449 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("kayak"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,450 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | fn execute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", execute_palindrome("kayak"));
} | Palindrome Check operation, function named 'execute_palindrome'. |
1,451 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | fn handle_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", handle_palindrome("the quick brown fox"));
} | Palindrome Check operation, function named 'handle_palindrome'. |
1,452 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("the quick brown fox"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,453 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | fn execute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", execute_palindrome("civic"));
} | Palindrome Check operation, function named 'execute_palindrome'. |
1,454 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("civic"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,455 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("never odd or even"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,456 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("never odd or even"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,457 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("python programming"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,458 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | fn execute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", execute_palindrome("deified"));
} | Palindrome Check operation, function named 'execute_palindrome'. |
1,459 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("deified"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,460 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | fn execute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", execute_palindrome("algorithms and data structures"));
} | Palindrome Check operation, function named 'execute_palindrome'. |
1,461 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | fn compute_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", compute_palindrome("algorithms and data structures"));
} | Palindrome Check operation, function named 'compute_palindrome'. |
1,462 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | fn process_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", process_palindrome("rotor"));
} | Palindrome Check operation, function named 'process_palindrome'. |
1,463 | Rust | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | fn perform_palindrome(s: &str) -> bool {
let cleaned: String = s.to_lowercase().chars().filter(|c| *c != ' ').collect();
let reversed: String = cleaned.chars().rev().collect();
cleaned == reversed
}
fn main() {
println!("{}", perform_palindrome("rotor"));
} | Palindrome Check operation, function named 'perform_palindrome'. |
1,464 | Python | String Manipulation | beginner | Perform 'reverse' on the string "racecar". | def compute_reverse(s):
return s[::-1]
print(compute_reverse('racecar')) | Reverse operation, function named 'compute_reverse'. |
1,465 | Python | String Manipulation | beginner | Perform 'reverse' on the string "racecar". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('racecar')) | Reverse operation, function named 'perform_reverse'. |
1,466 | Python | String Manipulation | beginner | Perform 'reverse' on the string "hello world". | def run_reverse(s):
return s[::-1]
print(run_reverse('hello world')) | Reverse operation, function named 'run_reverse'. |
1,467 | Python | String Manipulation | beginner | Perform 'reverse' on the string "A man a plan a canal Panama". | def process_reverse(s):
return s[::-1]
print(process_reverse('A man a plan a canal Panama')) | Reverse operation, function named 'process_reverse'. |
1,468 | Python | String Manipulation | beginner | Perform 'reverse' on the string "A man a plan a canal Panama". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('A man a plan a canal Panama')) | Reverse operation, function named 'perform_reverse'. |
1,469 | Python | String Manipulation | beginner | Perform 'reverse' on the string "Rust is fun". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('Rust is fun')) | Reverse operation, function named 'perform_reverse'. |
1,470 | Python | String Manipulation | beginner | Perform 'reverse' on the string "Rust is fun". | def compute_reverse(s):
return s[::-1]
print(compute_reverse('Rust is fun')) | Reverse operation, function named 'compute_reverse'. |
1,471 | Python | String Manipulation | beginner | Perform 'reverse' on the string "level". | def compute_reverse(s):
return s[::-1]
print(compute_reverse('level')) | Reverse operation, function named 'compute_reverse'. |
1,472 | Python | String Manipulation | beginner | Perform 'reverse' on the string "level". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('level')) | Reverse operation, function named 'perform_reverse'. |
1,473 | Python | String Manipulation | beginner | Perform 'reverse' on the string "OpenAI Claude". | def process_reverse(s):
return s[::-1]
print(process_reverse('OpenAI Claude')) | Reverse operation, function named 'process_reverse'. |
1,474 | Python | String Manipulation | beginner | Perform 'reverse' on the string "OpenAI Claude". | def execute_reverse(s):
return s[::-1]
print(execute_reverse('OpenAI Claude')) | Reverse operation, function named 'execute_reverse'. |
1,475 | Python | String Manipulation | beginner | Perform 'reverse' on the string "was it a car or a cat i saw". | def apply_reverse(s):
return s[::-1]
print(apply_reverse('was it a car or a cat i saw')) | Reverse operation, function named 'apply_reverse'. |
1,476 | Python | String Manipulation | beginner | Perform 'reverse' on the string "was it a car or a cat i saw". | def process_reverse(s):
return s[::-1]
print(process_reverse('was it a car or a cat i saw')) | Reverse operation, function named 'process_reverse'. |
1,477 | Python | String Manipulation | beginner | Perform 'reverse' on the string "noon". | def apply_reverse(s):
return s[::-1]
print(apply_reverse('noon')) | Reverse operation, function named 'apply_reverse'. |
1,478 | Python | String Manipulation | beginner | Perform 'reverse' on the string "noon". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('noon')) | Reverse operation, function named 'perform_reverse'. |
1,479 | Python | String Manipulation | beginner | Perform 'reverse' on the string "data science". | def run_reverse(s):
return s[::-1]
print(run_reverse('data science')) | Reverse operation, function named 'run_reverse'. |
1,480 | Python | String Manipulation | beginner | Perform 'reverse' on the string "data science". | def execute_reverse(s):
return s[::-1]
print(execute_reverse('data science')) | Reverse operation, function named 'execute_reverse'. |
1,481 | Python | String Manipulation | beginner | Perform 'reverse' on the string "step on no pets". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('step on no pets')) | Reverse operation, function named 'perform_reverse'. |
1,482 | Python | String Manipulation | beginner | Perform 'reverse' on the string "step on no pets". | def run_reverse(s):
return s[::-1]
print(run_reverse('step on no pets')) | Reverse operation, function named 'run_reverse'. |
1,483 | Python | String Manipulation | beginner | Perform 'reverse' on the string "coding". | def run_reverse(s):
return s[::-1]
print(run_reverse('coding')) | Reverse operation, function named 'run_reverse'. |
1,484 | Python | String Manipulation | beginner | Perform 'reverse' on the string "coding". | def handle_reverse(s):
return s[::-1]
print(handle_reverse('coding')) | Reverse operation, function named 'handle_reverse'. |
1,485 | Python | String Manipulation | beginner | Perform 'reverse' on the string "madam im adam". | def run_reverse(s):
return s[::-1]
print(run_reverse('madam im adam')) | Reverse operation, function named 'run_reverse'. |
1,486 | Python | String Manipulation | beginner | Perform 'reverse' on the string "madam im adam". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('madam im adam')) | Reverse operation, function named 'perform_reverse'. |
1,487 | Python | String Manipulation | beginner | Perform 'reverse' on the string "kayak". | def apply_reverse(s):
return s[::-1]
print(apply_reverse('kayak')) | Reverse operation, function named 'apply_reverse'. |
1,488 | Python | String Manipulation | beginner | Perform 'reverse' on the string "kayak". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('kayak')) | Reverse operation, function named 'perform_reverse'. |
1,489 | Python | String Manipulation | beginner | Perform 'reverse' on the string "the quick brown fox". | def apply_reverse(s):
return s[::-1]
print(apply_reverse('the quick brown fox')) | Reverse operation, function named 'apply_reverse'. |
1,490 | Python | String Manipulation | beginner | Perform 'reverse' on the string "the quick brown fox". | def execute_reverse(s):
return s[::-1]
print(execute_reverse('the quick brown fox')) | Reverse operation, function named 'execute_reverse'. |
1,491 | Python | String Manipulation | beginner | Perform 'reverse' on the string "civic". | def apply_reverse(s):
return s[::-1]
print(apply_reverse('civic')) | Reverse operation, function named 'apply_reverse'. |
1,492 | Python | String Manipulation | beginner | Perform 'reverse' on the string "civic". | def process_reverse(s):
return s[::-1]
print(process_reverse('civic')) | Reverse operation, function named 'process_reverse'. |
1,493 | Python | String Manipulation | beginner | Perform 'reverse' on the string "never odd or even". | def process_reverse(s):
return s[::-1]
print(process_reverse('never odd or even')) | Reverse operation, function named 'process_reverse'. |
1,494 | Python | String Manipulation | beginner | Perform 'reverse' on the string "never odd or even". | def compute_reverse(s):
return s[::-1]
print(compute_reverse('never odd or even')) | Reverse operation, function named 'compute_reverse'. |
1,495 | Python | String Manipulation | beginner | Perform 'reverse' on the string "python programming". | def process_reverse(s):
return s[::-1]
print(process_reverse('python programming')) | Reverse operation, function named 'process_reverse'. |
1,496 | Python | String Manipulation | beginner | Perform 'reverse' on the string "python programming". | def execute_reverse(s):
return s[::-1]
print(execute_reverse('python programming')) | Reverse operation, function named 'execute_reverse'. |
1,497 | Python | String Manipulation | beginner | Perform 'reverse' on the string "deified". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('deified')) | Reverse operation, function named 'perform_reverse'. |
1,498 | Python | String Manipulation | beginner | Perform 'reverse' on the string "deified". | def handle_reverse(s):
return s[::-1]
print(handle_reverse('deified')) | Reverse operation, function named 'handle_reverse'. |
1,499 | Python | String Manipulation | beginner | Perform 'reverse' on the string "algorithms and data structures". | def perform_reverse(s):
return s[::-1]
print(perform_reverse('algorithms and data structures')) | Reverse operation, function named 'perform_reverse'. |
1,500 | Python | String Manipulation | beginner | Perform 'reverse' on the string "rotor". | def handle_reverse(s):
return s[::-1]
print(handle_reverse('rotor')) | Reverse operation, function named 'handle_reverse'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.