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,901
C
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
#include <stdio.h> #include <string.h> int compute_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'compute_word'.
1,902
C
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
#include <stdio.h> #include <string.h> int run_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%d\...
Word Count operation, function named 'run_word'.
1,903
C
String Manipulation
beginner
Perform 'word count' on the string "civic".
#include <stdio.h> #include <string.h> int compute_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'compute_word'.
1,904
C
String Manipulation
beginner
Perform 'word count' on the string "civic".
#include <stdio.h> #include <string.h> int perform_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'perform_word'.
1,905
C
String Manipulation
beginner
Perform 'word count' on the string "never odd or even".
#include <stdio.h> #include <string.h> int perform_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'perform_word'.
1,906
C
String Manipulation
beginner
Perform 'word count' on the string "never odd or even".
#include <stdio.h> #include <string.h> int process_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'process_word'.
1,907
C
String Manipulation
beginner
Perform 'word count' on the string "python programming".
#include <stdio.h> #include <string.h> int execute_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'execute_word'.
1,908
C
String Manipulation
beginner
Perform 'word count' on the string "python programming".
#include <stdio.h> #include <string.h> int apply_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%...
Word Count operation, function named 'apply_word'.
1,909
C
String Manipulation
beginner
Perform 'word count' on the string "deified".
#include <stdio.h> #include <string.h> int apply_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%...
Word Count operation, function named 'apply_word'.
1,910
C
String Manipulation
beginner
Perform 'word count' on the string "deified".
#include <stdio.h> #include <string.h> int run_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%d\...
Word Count operation, function named 'run_word'.
1,911
C
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
#include <stdio.h> #include <string.h> int execute_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'execute_word'.
1,912
C
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
#include <stdio.h> #include <string.h> int compute_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf(...
Word Count operation, function named 'compute_word'.
1,913
C
String Manipulation
beginner
Perform 'word count' on the string "rotor".
#include <stdio.h> #include <string.h> int apply_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%...
Word Count operation, function named 'apply_word'.
1,914
C
String Manipulation
beginner
Perform 'word count' on the string "rotor".
#include <stdio.h> #include <string.h> int run_word(const char* s) { int count = 0; int in_word = 0; for (int i = 0; s[i] != '\0'; i++) { if (s[i] != ' ' && !in_word) { in_word = 1; count++; } else if (s[i] == ' ') { in_word = 0; } } return count; } int main(void) { printf("%d\...
Word Count operation, function named 'run_word'.
1,915
C++
String Manipulation
beginner
Perform 'word count' on the string "racecar".
#include <iostream> #include <sstream> #include <string> int perform_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << perform_word("racecar") << std::endl; return 0; }
Word Count operation, function named 'perform_word'.
1,916
C++
String Manipulation
beginner
Perform 'word count' on the string "racecar".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("racecar") << std::endl; return 0; }
Word Count operation, function named 'compute_word'.
1,917
C++
String Manipulation
beginner
Perform 'word count' on the string "hello world".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("hello world") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,918
C++
String Manipulation
beginner
Perform 'word count' on the string "hello world".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("hello world") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,919
C++
String Manipulation
beginner
Perform 'word count' on the string "A man a plan a canal Panama".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("A man a plan a canal Panama") << std::endl; ret...
Word Count operation, function named 'compute_word'.
1,920
C++
String Manipulation
beginner
Perform 'word count' on the string "A man a plan a canal Panama".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("A man a plan a canal Panama") << std::endl; ret...
Word Count operation, function named 'process_word'.
1,921
C++
String Manipulation
beginner
Perform 'word count' on the string "Rust is fun".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("Rust is fun") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,922
C++
String Manipulation
beginner
Perform 'word count' on the string "Rust is fun".
#include <iostream> #include <sstream> #include <string> int handle_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << handle_word("Rust is fun") << std::endl; return 0; }
Word Count operation, function named 'handle_word'.
1,923
C++
String Manipulation
beginner
Perform 'word count' on the string "level".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("level") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,924
C++
String Manipulation
beginner
Perform 'word count' on the string "level".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("level") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,925
C++
String Manipulation
beginner
Perform 'word count' on the string "OpenAI Claude".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("OpenAI Claude") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,926
C++
String Manipulation
beginner
Perform 'word count' on the string "OpenAI Claude".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("OpenAI Claude") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,927
C++
String Manipulation
beginner
Perform 'word count' on the string "was it a car or a cat i saw".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("was it a car or a cat i saw") << std::endl; return ...
Word Count operation, function named 'apply_word'.
1,928
C++
String Manipulation
beginner
Perform 'word count' on the string "was it a car or a cat i saw".
#include <iostream> #include <sstream> #include <string> int perform_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << perform_word("was it a car or a cat i saw") << std::endl; ret...
Word Count operation, function named 'perform_word'.
1,929
C++
String Manipulation
beginner
Perform 'word count' on the string "noon".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("noon") << std::endl; return 0; }
Word Count operation, function named 'process_word'.
1,930
C++
String Manipulation
beginner
Perform 'word count' on the string "noon".
#include <iostream> #include <sstream> #include <string> int handle_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << handle_word("noon") << std::endl; return 0; }
Word Count operation, function named 'handle_word'.
1,931
C++
String Manipulation
beginner
Perform 'word count' on the string "data science".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("data science") << std::endl; return 0; }
Word Count operation, function named 'process_word'.
1,932
C++
String Manipulation
beginner
Perform 'word count' on the string "data science".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("data science") << std::endl; return 0; }
Word Count operation, function named 'compute_word'.
1,933
C++
String Manipulation
beginner
Perform 'word count' on the string "step on no pets".
#include <iostream> #include <sstream> #include <string> int perform_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << perform_word("step on no pets") << std::endl; return 0; }
Word Count operation, function named 'perform_word'.
1,934
C++
String Manipulation
beginner
Perform 'word count' on the string "step on no pets".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("step on no pets") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,935
C++
String Manipulation
beginner
Perform 'word count' on the string "coding".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("coding") << std::endl; return 0; }
Word Count operation, function named 'compute_word'.
1,936
C++
String Manipulation
beginner
Perform 'word count' on the string "coding".
#include <iostream> #include <sstream> #include <string> int handle_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << handle_word("coding") << std::endl; return 0; }
Word Count operation, function named 'handle_word'.
1,937
C++
String Manipulation
beginner
Perform 'word count' on the string "madam im adam".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("madam im adam") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,938
C++
String Manipulation
beginner
Perform 'word count' on the string "madam im adam".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("madam im adam") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,939
C++
String Manipulation
beginner
Perform 'word count' on the string "kayak".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("kayak") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,940
C++
String Manipulation
beginner
Perform 'word count' on the string "kayak".
#include <iostream> #include <sstream> #include <string> int perform_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << perform_word("kayak") << std::endl; return 0; }
Word Count operation, function named 'perform_word'.
1,941
C++
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("the quick brown fox") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,942
C++
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("the quick brown fox") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,943
C++
String Manipulation
beginner
Perform 'word count' on the string "civic".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("civic") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,944
C++
String Manipulation
beginner
Perform 'word count' on the string "civic".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("civic") << std::endl; return 0; }
Word Count operation, function named 'process_word'.
1,945
C++
String Manipulation
beginner
Perform 'word count' on the string "never odd or even".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("never odd or even") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,946
C++
String Manipulation
beginner
Perform 'word count' on the string "never odd or even".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("never odd or even") << std::endl; return 0; }
Word Count operation, function named 'compute_word'.
1,947
C++
String Manipulation
beginner
Perform 'word count' on the string "python programming".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("python programming") << std::endl; return 0; }
Word Count operation, function named 'process_word'.
1,948
C++
String Manipulation
beginner
Perform 'word count' on the string "deified".
#include <iostream> #include <sstream> #include <string> int apply_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << apply_word("deified") << std::endl; return 0; }
Word Count operation, function named 'apply_word'.
1,949
C++
String Manipulation
beginner
Perform 'word count' on the string "deified".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("deified") << std::endl; return 0; }
Word Count operation, function named 'run_word'.
1,950
C++
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
#include <iostream> #include <sstream> #include <string> int run_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << run_word("algorithms and data structures") << std::endl; return 0...
Word Count operation, function named 'run_word'.
1,951
C++
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
#include <iostream> #include <sstream> #include <string> int compute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << compute_word("algorithms and data structures") << std::endl; ...
Word Count operation, function named 'compute_word'.
1,952
C++
String Manipulation
beginner
Perform 'word count' on the string "rotor".
#include <iostream> #include <sstream> #include <string> int process_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << process_word("rotor") << std::endl; return 0; }
Word Count operation, function named 'process_word'.
1,953
C++
String Manipulation
beginner
Perform 'word count' on the string "rotor".
#include <iostream> #include <sstream> #include <string> int execute_word(const std::string& s) { std::istringstream iss(s); int count = 0; std::string word; while (iss >> word) count++; return count; } int main() { std::cout << execute_word("rotor") << std::endl; return 0; }
Word Count operation, function named 'execute_word'.
1,954
Rust
String Manipulation
beginner
Perform 'word count' on the string "racecar".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("racecar")); }
Word Count operation, function named 'perform_word'.
1,955
Rust
String Manipulation
beginner
Perform 'word count' on the string "racecar".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("racecar")); }
Word Count operation, function named 'compute_word'.
1,956
Rust
String Manipulation
beginner
Perform 'word count' on the string "hello world".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("hello world")); }
Word Count operation, function named 'compute_word'.
1,957
Rust
String Manipulation
beginner
Perform 'word count' on the string "hello world".
fn run_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", run_word("hello world")); }
Word Count operation, function named 'run_word'.
1,958
Rust
String Manipulation
beginner
Perform 'word count' on the string "A man a plan a canal Panama".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("A man a plan a canal Panama")); }
Word Count operation, function named 'compute_word'.
1,959
Rust
String Manipulation
beginner
Perform 'word count' on the string "A man a plan a canal Panama".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("A man a plan a canal Panama")); }
Word Count operation, function named 'perform_word'.
1,960
Rust
String Manipulation
beginner
Perform 'word count' on the string "Rust is fun".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("Rust is fun")); }
Word Count operation, function named 'compute_word'.
1,961
Rust
String Manipulation
beginner
Perform 'word count' on the string "Rust is fun".
fn apply_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", apply_word("Rust is fun")); }
Word Count operation, function named 'apply_word'.
1,962
Rust
String Manipulation
beginner
Perform 'word count' on the string "level".
fn apply_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", apply_word("level")); }
Word Count operation, function named 'apply_word'.
1,963
Rust
String Manipulation
beginner
Perform 'word count' on the string "level".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("level")); }
Word Count operation, function named 'process_word'.
1,964
Rust
String Manipulation
beginner
Perform 'word count' on the string "OpenAI Claude".
fn execute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", execute_word("OpenAI Claude")); }
Word Count operation, function named 'execute_word'.
1,965
Rust
String Manipulation
beginner
Perform 'word count' on the string "OpenAI Claude".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("OpenAI Claude")); }
Word Count operation, function named 'compute_word'.
1,966
Rust
String Manipulation
beginner
Perform 'word count' on the string "was it a car or a cat i saw".
fn handle_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", handle_word("was it a car or a cat i saw")); }
Word Count operation, function named 'handle_word'.
1,967
Rust
String Manipulation
beginner
Perform 'word count' on the string "was it a car or a cat i saw".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("was it a car or a cat i saw")); }
Word Count operation, function named 'compute_word'.
1,968
Rust
String Manipulation
beginner
Perform 'word count' on the string "noon".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("noon")); }
Word Count operation, function named 'compute_word'.
1,969
Rust
String Manipulation
beginner
Perform 'word count' on the string "noon".
fn run_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", run_word("noon")); }
Word Count operation, function named 'run_word'.
1,970
Rust
String Manipulation
beginner
Perform 'word count' on the string "data science".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("data science")); }
Word Count operation, function named 'process_word'.
1,971
Rust
String Manipulation
beginner
Perform 'word count' on the string "data science".
fn run_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", run_word("data science")); }
Word Count operation, function named 'run_word'.
1,972
Rust
String Manipulation
beginner
Perform 'word count' on the string "step on no pets".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("step on no pets")); }
Word Count operation, function named 'compute_word'.
1,973
Rust
String Manipulation
beginner
Perform 'word count' on the string "coding".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("coding")); }
Word Count operation, function named 'perform_word'.
1,974
Rust
String Manipulation
beginner
Perform 'word count' on the string "coding".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("coding")); }
Word Count operation, function named 'process_word'.
1,975
Rust
String Manipulation
beginner
Perform 'word count' on the string "madam im adam".
fn execute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", execute_word("madam im adam")); }
Word Count operation, function named 'execute_word'.
1,976
Rust
String Manipulation
beginner
Perform 'word count' on the string "madam im adam".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("madam im adam")); }
Word Count operation, function named 'process_word'.
1,977
Rust
String Manipulation
beginner
Perform 'word count' on the string "kayak".
fn compute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", compute_word("kayak")); }
Word Count operation, function named 'compute_word'.
1,978
Rust
String Manipulation
beginner
Perform 'word count' on the string "kayak".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("kayak")); }
Word Count operation, function named 'perform_word'.
1,979
Rust
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("the quick brown fox")); }
Word Count operation, function named 'process_word'.
1,980
Rust
String Manipulation
beginner
Perform 'word count' on the string "the quick brown fox".
fn execute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", execute_word("the quick brown fox")); }
Word Count operation, function named 'execute_word'.
1,981
Rust
String Manipulation
beginner
Perform 'word count' on the string "civic".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("civic")); }
Word Count operation, function named 'perform_word'.
1,982
Rust
String Manipulation
beginner
Perform 'word count' on the string "civic".
fn run_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", run_word("civic")); }
Word Count operation, function named 'run_word'.
1,983
Rust
String Manipulation
beginner
Perform 'word count' on the string "never odd or even".
fn handle_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", handle_word("never odd or even")); }
Word Count operation, function named 'handle_word'.
1,984
Rust
String Manipulation
beginner
Perform 'word count' on the string "python programming".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("python programming")); }
Word Count operation, function named 'process_word'.
1,985
Rust
String Manipulation
beginner
Perform 'word count' on the string "python programming".
fn execute_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", execute_word("python programming")); }
Word Count operation, function named 'execute_word'.
1,986
Rust
String Manipulation
beginner
Perform 'word count' on the string "deified".
fn process_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", process_word("deified")); }
Word Count operation, function named 'process_word'.
1,987
Rust
String Manipulation
beginner
Perform 'word count' on the string "deified".
fn handle_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", handle_word("deified")); }
Word Count operation, function named 'handle_word'.
1,988
Rust
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("algorithms and data structures")); }
Word Count operation, function named 'perform_word'.
1,989
Rust
String Manipulation
beginner
Perform 'word count' on the string "algorithms and data structures".
fn handle_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", handle_word("algorithms and data structures")); }
Word Count operation, function named 'handle_word'.
1,990
Rust
String Manipulation
beginner
Perform 'word count' on the string "rotor".
fn perform_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", perform_word("rotor")); }
Word Count operation, function named 'perform_word'.
1,991
Rust
String Manipulation
beginner
Perform 'word count' on the string "rotor".
fn run_word(s: &str) -> usize { s.split_whitespace().count() } fn main() { println!("{}", run_word("rotor")); }
Word Count operation, function named 'run_word'.
1,992
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "racecar".
def run_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(run_vowel('racecar'))
Vowel Count operation, function named 'run_vowel'.
1,993
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "racecar".
def compute_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(compute_vowel('racecar'))
Vowel Count operation, function named 'compute_vowel'.
1,994
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "hello world".
def compute_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(compute_vowel('hello world'))
Vowel Count operation, function named 'compute_vowel'.
1,995
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "hello world".
def run_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(run_vowel('hello world'))
Vowel Count operation, function named 'run_vowel'.
1,996
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "A man a plan a canal Panama".
def perform_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(perform_vowel('A man a plan a canal Panama'))
Vowel Count operation, function named 'perform_vowel'.
1,997
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "A man a plan a canal Panama".
def execute_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(execute_vowel('A man a plan a canal Panama'))
Vowel Count operation, function named 'execute_vowel'.
1,998
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "Rust is fun".
def handle_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(handle_vowel('Rust is fun'))
Vowel Count operation, function named 'handle_vowel'.
1,999
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "Rust is fun".
def apply_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(apply_vowel('Rust is fun'))
Vowel Count operation, function named 'apply_vowel'.
2,000
Python
String Manipulation
intermediate
Perform 'vowel count' on the string "level".
def apply_vowel(s): return sum(1 for c in s.lower() if c in "aeiou") print(apply_vowel('level'))
Vowel Count operation, function named 'apply_vowel'.