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,201 | Rust | Data Structures | intermediate | Implement a queue of floats and run the operation sequence: push, pop, push, push. | use std::collections::VecDeque;
fn main() {
let mut s: VecDeque<f64> = VecDeque::new();
s.push_back(86.62);
println!("{:?}", s.pop_front());
s.push_back(25.75);
s.push_back(14.99);
} | Queue with float elements, ops=['push', 'pop', 'push', 'push']. |
1,202 | Rust | Data Structures | intermediate | Implement a queue of floats and run the operation sequence: push, pop, push, push. | use std::collections::VecDeque;
fn main() {
let mut container: VecDeque<f64> = VecDeque::new();
container.push_back(83.97);
println!("{:?}", container.pop_front());
container.push_back(84.13);
container.push_back(76.3);
} | Queue with float elements, ops=['push', 'pop', 'push', 'push']. |
1,203 | Rust | Data Structures | intermediate | Implement a queue of floats and run the operation sequence: push, pop, push, push. | use std::collections::VecDeque;
fn main() {
let mut q: VecDeque<f64> = VecDeque::new();
q.push_back(76.97);
println!("{:?}", q.pop_front());
q.push_back(31.83);
q.push_back(34.45);
} | Queue with float elements, ops=['push', 'pop', 'push', 'push']. |
1,204 | Rust | Data Structures | intermediate | Implement a queue of floats and run the operation sequence: push, pop, push, push. | use std::collections::VecDeque;
fn main() {
let mut s: VecDeque<f64> = VecDeque::new();
s.push_back(4.61);
println!("{:?}", s.pop_front());
s.push_back(60.27);
s.push_back(87.27);
} | Queue with float elements, ops=['push', 'pop', 'push', 'push']. |
1,205 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | def compute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(compute_palindrome('racecar')) | Palindrome Check operation, function named 'compute_palindrome'. |
1,206 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('racecar')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,207 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | def handle_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(handle_palindrome('hello world')) | Palindrome Check operation, function named 'handle_palindrome'. |
1,208 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | def apply_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(apply_palindrome('hello world')) | Palindrome Check operation, function named 'apply_palindrome'. |
1,209 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | def execute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(execute_palindrome('A man a plan a canal Panama')) | Palindrome Check operation, function named 'execute_palindrome'. |
1,210 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | def apply_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(apply_palindrome('A man a plan a canal Panama')) | Palindrome Check operation, function named 'apply_palindrome'. |
1,211 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('Rust is fun')) | Palindrome Check operation, function named 'run_palindrome'. |
1,212 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | def execute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(execute_palindrome('Rust is fun')) | Palindrome Check operation, function named 'execute_palindrome'. |
1,213 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('level')) | Palindrome Check operation, function named 'run_palindrome'. |
1,214 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | def compute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(compute_palindrome('level')) | Palindrome Check operation, function named 'compute_palindrome'. |
1,215 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('OpenAI Claude')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,216 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | def handle_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(handle_palindrome('OpenAI Claude')) | Palindrome Check operation, function named 'handle_palindrome'. |
1,217 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | def compute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(compute_palindrome('was it a car or a cat i saw')) | Palindrome Check operation, function named 'compute_palindrome'. |
1,218 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('was it a car or a cat i saw')) | Palindrome Check operation, function named 'run_palindrome'. |
1,219 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('noon')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,220 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('noon')) | Palindrome Check operation, function named 'run_palindrome'. |
1,221 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | def execute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(execute_palindrome('data science')) | Palindrome Check operation, function named 'execute_palindrome'. |
1,222 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | def apply_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(apply_palindrome('step on no pets')) | Palindrome Check operation, function named 'apply_palindrome'. |
1,223 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('step on no pets')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,224 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('coding')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,225 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('coding')) | Palindrome Check operation, function named 'process_palindrome'. |
1,226 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('madam im adam')) | Palindrome Check operation, function named 'process_palindrome'. |
1,227 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('madam im adam')) | Palindrome Check operation, function named 'run_palindrome'. |
1,228 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('kayak')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,229 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('kayak')) | Palindrome Check operation, function named 'process_palindrome'. |
1,230 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('the quick brown fox')) | Palindrome Check operation, function named 'run_palindrome'. |
1,231 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | def handle_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(handle_palindrome('the quick brown fox')) | Palindrome Check operation, function named 'handle_palindrome'. |
1,232 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | def apply_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(apply_palindrome('civic')) | Palindrome Check operation, function named 'apply_palindrome'. |
1,233 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('civic')) | Palindrome Check operation, function named 'process_palindrome'. |
1,234 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | def handle_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(handle_palindrome('never odd or even')) | Palindrome Check operation, function named 'handle_palindrome'. |
1,235 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | def execute_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(execute_palindrome('never odd or even')) | Palindrome Check operation, function named 'execute_palindrome'. |
1,236 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | def perform_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(perform_palindrome('python programming')) | Palindrome Check operation, function named 'perform_palindrome'. |
1,237 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('python programming')) | Palindrome Check operation, function named 'process_palindrome'. |
1,238 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | def handle_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(handle_palindrome('deified')) | Palindrome Check operation, function named 'handle_palindrome'. |
1,239 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | def run_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(run_palindrome('algorithms and data structures')) | Palindrome Check operation, function named 'run_palindrome'. |
1,240 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | def apply_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(apply_palindrome('algorithms and data structures')) | Palindrome Check operation, function named 'apply_palindrome'. |
1,241 | Python | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | def process_palindrome(s):
cleaned = s.lower().replace(" ", "")
return cleaned == cleaned[::-1]
print(process_palindrome('rotor')) | Palindrome Check operation, function named 'process_palindrome'. |
1,242 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(run_palindrome("racecar")); | Palindrome Check operation, function named 'run_palindrome'. |
1,243 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(handle_palindrome("hello world")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,244 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("hello world")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,245 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | function apply_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(apply_palindrome("A man a plan a canal Panama")); | Palindrome Check operation, function named 'apply_palindrome'. |
1,246 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("A man a plan a canal Panama")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,247 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(run_palindrome("Rust is fun")); | Palindrome Check operation, function named 'run_palindrome'. |
1,248 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(handle_palindrome("Rust is fun")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,249 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("level")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,250 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | function apply_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(apply_palindrome("level")); | Palindrome Check operation, function named 'apply_palindrome'. |
1,251 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("OpenAI Claude")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,252 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(run_palindrome("OpenAI Claude")); | Palindrome Check operation, function named 'run_palindrome'. |
1,253 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(run_palindrome("was it a car or a cat i saw")); | Palindrome Check operation, function named 'run_palindrome'. |
1,254 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | function process_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(process_palindrome("was it a car or a cat i saw")); | Palindrome Check operation, function named 'process_palindrome'. |
1,255 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("noon")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,256 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | function process_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(process_palindrome("noon")); | Palindrome Check operation, function named 'process_palindrome'. |
1,257 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(run_palindrome("data science")); | Palindrome Check operation, function named 'run_palindrome'. |
1,258 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("data science")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,259 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("step on no pets")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,260 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("coding")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,261 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("coding")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,262 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("madam im adam")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,263 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("madam im adam")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,264 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("kayak")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,265 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "kayak". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("kayak")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,266 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("the quick brown fox")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,267 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "the quick brown fox". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(handle_palindrome("the quick brown fox")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,268 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(handle_palindrome("civic")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,269 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "civic". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("civic")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,270 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("never odd or even")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,271 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "never odd or even". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("never odd or even")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,272 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(handle_palindrome("python programming")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,273 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "python programming". | function apply_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(apply_palindrome("python programming")); | Palindrome Check operation, function named 'apply_palindrome'. |
1,274 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("deified")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,275 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "deified". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(perform_palindrome("deified")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,276 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("algorithms and data structures")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,277 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "algorithms and data structures". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("algorithms and data structures")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,278 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(execute_palindrome("rotor")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,279 | JavaScript | String Manipulation | intermediate | Perform 'palindrome check' on the string "rotor". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
console.log(compute_palindrome("rotor")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,280 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "racecar". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { run_palindrome };
console.log(run_palindrome("racecar")); | Palindrome Check operation, function named 'run_palindrome'. |
1,281 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { handle_palindrome };
console.log(handle_palindrome("hello world")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,282 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "hello world". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { compute_palindrome };
console.log(compute_palindrome("hello world")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,283 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "A man a plan a canal Panama". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { perform_palindrome };
console.log(perform_palindrome("A man a plan a canal Panama")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,284 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | function apply_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { apply_palindrome };
console.log(apply_palindrome("Rust is fun")); | Palindrome Check operation, function named 'apply_palindrome'. |
1,285 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "Rust is fun". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { handle_palindrome };
console.log(handle_palindrome("Rust is fun")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,286 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { handle_palindrome };
console.log(handle_palindrome("level")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,287 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "level". | function execute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { execute_palindrome };
console.log(execute_palindrome("level")); | Palindrome Check operation, function named 'execute_palindrome'. |
1,288 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { perform_palindrome };
console.log(perform_palindrome("OpenAI Claude")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,289 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "OpenAI Claude". | function apply_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { apply_palindrome };
console.log(apply_palindrome("OpenAI Claude")); | Palindrome Check operation, function named 'apply_palindrome'. |
1,290 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { run_palindrome };
console.log(run_palindrome("was it a car or a cat i saw")); | Palindrome Check operation, function named 'run_palindrome'. |
1,291 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "was it a car or a cat i saw". | function process_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { process_palindrome };
console.log(process_palindrome("was it a car or a cat i saw")); | Palindrome Check operation, function named 'process_palindrome'. |
1,292 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { compute_palindrome };
console.log(compute_palindrome("noon")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,293 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "noon". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { run_palindrome };
console.log(run_palindrome("noon")); | Palindrome Check operation, function named 'run_palindrome'. |
1,294 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "data science". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { handle_palindrome };
console.log(handle_palindrome("data science")); | Palindrome Check operation, function named 'handle_palindrome'. |
1,295 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | function run_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { run_palindrome };
console.log(run_palindrome("step on no pets")); | Palindrome Check operation, function named 'run_palindrome'. |
1,296 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "step on no pets". | function process_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { process_palindrome };
console.log(process_palindrome("step on no pets")); | Palindrome Check operation, function named 'process_palindrome'. |
1,297 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | function process_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { process_palindrome };
console.log(process_palindrome("coding")); | Palindrome Check operation, function named 'process_palindrome'. |
1,298 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "coding". | function compute_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { compute_palindrome };
console.log(compute_palindrome("coding")); | Palindrome Check operation, function named 'compute_palindrome'. |
1,299 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | function perform_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { perform_palindrome };
console.log(perform_palindrome("madam im adam")); | Palindrome Check operation, function named 'perform_palindrome'. |
1,300 | Node.js | String Manipulation | intermediate | Perform 'palindrome check' on the string "madam im adam". | function handle_palindrome(s) {
const cleaned = s.toLowerCase().replaceAll(" ", "");
return cleaned === cleaned.split("").reverse().join("");
}
module.exports = { handle_palindrome };
console.log(handle_palindrome("madam im adam")); | Palindrome Check operation, function named 'handle_palindrome'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.