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
2,201
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "madam im adam".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("madam im adam") << std::endl; ...
Vowel Count operation, function named 'run_vowel'.
2,202
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "madam im adam".
#include <iostream> #include <string> #include <cctype> int handle_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << handle_vowel("madam im adam") << std::...
Vowel Count operation, function named 'handle_vowel'.
2,203
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "kayak".
#include <iostream> #include <string> #include <cctype> int apply_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << apply_vowel("kayak") << std::endl; ...
Vowel Count operation, function named 'apply_vowel'.
2,204
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "kayak".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("kayak") << std::endl; retu...
Vowel Count operation, function named 'run_vowel'.
2,205
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "the quick brown fox".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("the quick brown fox") << std::...
Vowel Count operation, function named 'run_vowel'.
2,206
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "the quick brown fox".
#include <iostream> #include <string> #include <cctype> int apply_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << apply_vowel("the quick brown fox") << s...
Vowel Count operation, function named 'apply_vowel'.
2,207
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "civic".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("civic") << std::endl; retu...
Vowel Count operation, function named 'run_vowel'.
2,208
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "civic".
#include <iostream> #include <string> #include <cctype> int compute_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << compute_vowel("civic") << std::endl; ...
Vowel Count operation, function named 'compute_vowel'.
2,209
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "never odd or even".
#include <iostream> #include <string> #include <cctype> int apply_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << apply_vowel("never odd or even") << std...
Vowel Count operation, function named 'apply_vowel'.
2,210
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "never odd or even".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("never odd or even") << std::en...
Vowel Count operation, function named 'run_vowel'.
2,211
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "python programming".
#include <iostream> #include <string> #include <cctype> int handle_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << handle_vowel("python programming") << ...
Vowel Count operation, function named 'handle_vowel'.
2,212
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "python programming".
#include <iostream> #include <string> #include <cctype> int apply_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << apply_vowel("python programming") << st...
Vowel Count operation, function named 'apply_vowel'.
2,213
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "deified".
#include <iostream> #include <string> #include <cctype> int handle_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << handle_vowel("deified") << std::endl; ...
Vowel Count operation, function named 'handle_vowel'.
2,214
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "deified".
#include <iostream> #include <string> #include <cctype> int run_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << run_vowel("deified") << std::endl; re...
Vowel Count operation, function named 'run_vowel'.
2,215
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "algorithms and data structures".
#include <iostream> #include <string> #include <cctype> int compute_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << compute_vowel("algorithms and data st...
Vowel Count operation, function named 'compute_vowel'.
2,216
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "algorithms and data structures".
#include <iostream> #include <string> #include <cctype> int process_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << process_vowel("algorithms and data st...
Vowel Count operation, function named 'process_vowel'.
2,217
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "rotor".
#include <iostream> #include <string> #include <cctype> int execute_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << execute_vowel("rotor") << std::endl; ...
Vowel Count operation, function named 'execute_vowel'.
2,218
C++
String Manipulation
intermediate
Perform 'vowel count' on the string "rotor".
#include <iostream> #include <string> #include <cctype> int apply_vowel(const std::string& s) { int count = 0; for (char c : s) { c = tolower(c); if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++; } return count; } int main() { std::cout << apply_vowel("rotor") << std::endl; ...
Vowel Count operation, function named 'apply_vowel'.
2,219
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "racecar".
fn compute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", compute_vowel("racecar")); }
Vowel Count operation, function named 'compute_vowel'.
2,220
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "racecar".
fn apply_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", apply_vowel("racecar")); }
Vowel Count operation, function named 'apply_vowel'.
2,221
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "hello world".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("hello world")); }
Vowel Count operation, function named 'run_vowel'.
2,222
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "hello world".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("hello world")); }
Vowel Count operation, function named 'perform_vowel'.
2,223
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "A man a plan a canal Panama".
fn handle_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", handle_vowel("A man a plan a canal Panama")); }
Vowel Count operation, function named 'handle_vowel'.
2,224
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "A man a plan a canal Panama".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("A man a plan a canal Panama")); }
Vowel Count operation, function named 'perform_vowel'.
2,225
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "Rust is fun".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("Rust is fun")); }
Vowel Count operation, function named 'process_vowel'.
2,226
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "Rust is fun".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("Rust is fun")); }
Vowel Count operation, function named 'run_vowel'.
2,227
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "level".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("level")); }
Vowel Count operation, function named 'execute_vowel'.
2,228
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "level".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("level")); }
Vowel Count operation, function named 'perform_vowel'.
2,229
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "OpenAI Claude".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("OpenAI Claude")); }
Vowel Count operation, function named 'run_vowel'.
2,230
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "was it a car or a cat i saw".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("was it a car or a cat i saw")); }
Vowel Count operation, function named 'run_vowel'.
2,231
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "was it a car or a cat i saw".
fn handle_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", handle_vowel("was it a car or a cat i saw")); }
Vowel Count operation, function named 'handle_vowel'.
2,232
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "noon".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("noon")); }
Vowel Count operation, function named 'perform_vowel'.
2,233
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "noon".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("noon")); }
Vowel Count operation, function named 'process_vowel'.
2,234
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "data science".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("data science")); }
Vowel Count operation, function named 'execute_vowel'.
2,235
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "data science".
fn handle_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", handle_vowel("data science")); }
Vowel Count operation, function named 'handle_vowel'.
2,236
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "step on no pets".
fn handle_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", handle_vowel("step on no pets")); }
Vowel Count operation, function named 'handle_vowel'.
2,237
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "step on no pets".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("step on no pets")); }
Vowel Count operation, function named 'execute_vowel'.
2,238
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "coding".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("coding")); }
Vowel Count operation, function named 'execute_vowel'.
2,239
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "madam im adam".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("madam im adam")); }
Vowel Count operation, function named 'process_vowel'.
2,240
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "madam im adam".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("madam im adam")); }
Vowel Count operation, function named 'execute_vowel'.
2,241
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "kayak".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("kayak")); }
Vowel Count operation, function named 'execute_vowel'.
2,242
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "kayak".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("kayak")); }
Vowel Count operation, function named 'perform_vowel'.
2,243
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "the quick brown fox".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("the quick brown fox")); }
Vowel Count operation, function named 'run_vowel'.
2,244
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "the quick brown fox".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("the quick brown fox")); }
Vowel Count operation, function named 'process_vowel'.
2,245
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "civic".
fn compute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", compute_vowel("civic")); }
Vowel Count operation, function named 'compute_vowel'.
2,246
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "civic".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("civic")); }
Vowel Count operation, function named 'execute_vowel'.
2,247
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "never odd or even".
fn handle_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", handle_vowel("never odd or even")); }
Vowel Count operation, function named 'handle_vowel'.
2,248
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "python programming".
fn execute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", execute_vowel("python programming")); }
Vowel Count operation, function named 'execute_vowel'.
2,249
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "python programming".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("python programming")); }
Vowel Count operation, function named 'perform_vowel'.
2,250
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "deified".
fn run_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", run_vowel("deified")); }
Vowel Count operation, function named 'run_vowel'.
2,251
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "deified".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("deified")); }
Vowel Count operation, function named 'perform_vowel'.
2,252
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "algorithms and data structures".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("algorithms and data structures")); }
Vowel Count operation, function named 'process_vowel'.
2,253
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "algorithms and data structures".
fn compute_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", compute_vowel("algorithms and data structures")); }
Vowel Count operation, function named 'compute_vowel'.
2,254
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "rotor".
fn process_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", process_vowel("rotor")); }
Vowel Count operation, function named 'process_vowel'.
2,255
Rust
String Manipulation
intermediate
Perform 'vowel count' on the string "rotor".
fn perform_vowel(s: &str) -> usize { s.to_lowercase().chars().filter(|c| "aeiou".contains(*c)).count() } fn main() { println!("{}", perform_vowel("rotor")); }
Vowel Count operation, function named 'perform_vowel'.