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,801 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "rotor". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(apply_word("rotor")); | Word Count operation, function named 'apply_word'. |
1,802 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "racecar". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("racecar")); | Word Count operation, function named 'run_word'. |
1,803 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "racecar". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { perform_word };
console.log(perform_word("racecar")); | Word Count operation, function named 'perform_word'. |
1,804 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "hello world". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("hello world")); | Word Count operation, function named 'handle_word'. |
1,805 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "hello world". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("hello world")); | Word Count operation, function named 'apply_word'. |
1,806 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { process_word };
console.log(process_word("A man a plan a canal Panama")); | Word Count operation, function named 'process_word'. |
1,807 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("A man a plan a canal Panama")); | Word Count operation, function named 'run_word'. |
1,808 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("Rust is fun")); | Word Count operation, function named 'handle_word'. |
1,809 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { compute_word };
console.log(compute_word("Rust is fun")); | Word Count operation, function named 'compute_word'. |
1,810 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "level". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("level")); | Word Count operation, function named 'apply_word'. |
1,811 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "level". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("level")); | Word Count operation, function named 'handle_word'. |
1,812 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("OpenAI Claude")); | Word Count operation, function named 'run_word'. |
1,813 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("OpenAI Claude")); | Word Count operation, function named 'apply_word'. |
1,814 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { compute_word };
console.log(compute_word("was it a car or a cat i saw")); | Word Count operation, function named 'compute_word'. |
1,815 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "noon". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("noon")); | Word Count operation, function named 'apply_word'. |
1,816 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "noon". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { perform_word };
console.log(perform_word("noon")); | Word Count operation, function named 'perform_word'. |
1,817 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "data science". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { perform_word };
console.log(perform_word("data science")); | Word Count operation, function named 'perform_word'. |
1,818 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "data science". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("data science")); | Word Count operation, function named 'apply_word'. |
1,819 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("step on no pets")); | Word Count operation, function named 'run_word'. |
1,820 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { execute_word };
console.log(execute_word("step on no pets")); | Word Count operation, function named 'execute_word'. |
1,821 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "coding". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("coding")); | Word Count operation, function named 'run_word'. |
1,822 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "coding". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { execute_word };
console.log(execute_word("coding")); | Word Count operation, function named 'execute_word'. |
1,823 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { process_word };
console.log(process_word("madam im adam")); | Word Count operation, function named 'process_word'. |
1,824 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { compute_word };
console.log(compute_word("madam im adam")); | Word Count operation, function named 'compute_word'. |
1,825 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "kayak". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { run_word };
console.log(run_word("kayak")); | Word Count operation, function named 'run_word'. |
1,826 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "kayak". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { perform_word };
console.log(perform_word("kayak")); | Word Count operation, function named 'perform_word'. |
1,827 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { perform_word };
console.log(perform_word("the quick brown fox")); | Word Count operation, function named 'perform_word'. |
1,828 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { execute_word };
console.log(execute_word("the quick brown fox")); | Word Count operation, function named 'execute_word'. |
1,829 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "civic". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { process_word };
console.log(process_word("civic")); | Word Count operation, function named 'process_word'. |
1,830 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "civic". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("civic")); | Word Count operation, function named 'handle_word'. |
1,831 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { execute_word };
console.log(execute_word("never odd or even")); | Word Count operation, function named 'execute_word'. |
1,832 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("never odd or even")); | Word Count operation, function named 'handle_word'. |
1,833 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "python programming". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("python programming")); | Word Count operation, function named 'apply_word'. |
1,834 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "python programming". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { handle_word };
console.log(handle_word("python programming")); | Word Count operation, function named 'handle_word'. |
1,835 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "deified". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { compute_word };
console.log(compute_word("deified")); | Word Count operation, function named 'compute_word'. |
1,836 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { compute_word };
console.log(compute_word("algorithms and data structures")); | Word Count operation, function named 'compute_word'. |
1,837 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { execute_word };
console.log(execute_word("algorithms and data structures")); | Word Count operation, function named 'execute_word'. |
1,838 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "rotor". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { apply_word };
console.log(apply_word("rotor")); | Word Count operation, function named 'apply_word'. |
1,839 | Node.js | String Manipulation | beginner | Perform 'word count' on the string "rotor". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
module.exports = { process_word };
console.log(process_word("rotor")); | Word Count operation, function named 'process_word'. |
1,840 | Java | String Manipulation | beginner | Perform 'word count' on the string "racecar". | public class Main {
static int execute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(execute_word("racecar"));
}
} | Word Count operation, function named 'execute_word'. |
1,841 | Java | String Manipulation | beginner | Perform 'word count' on the string "hello world". | public class Main {
static int apply_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(apply_word("hello world"));
}
} | Word Count operation, function named 'apply_word'. |
1,842 | Java | String Manipulation | beginner | Perform 'word count' on the string "hello world". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("hello world"));
}
} | Word Count operation, function named 'run_word'. |
1,843 | Java | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("A man a plan a canal Panama"));
}
} | Word Count operation, function named 'process_word'. |
1,844 | Java | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | public class Main {
static int perform_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(perform_word("A man a plan a canal Panama"));
}
} | Word Count operation, function named 'perform_word'. |
1,845 | Java | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("Rust is fun"));
}
} | Word Count operation, function named 'handle_word'. |
1,846 | Java | String Manipulation | beginner | Perform 'word count' on the string "level". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("level"));
}
} | Word Count operation, function named 'run_word'. |
1,847 | Java | String Manipulation | beginner | Perform 'word count' on the string "level". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("level"));
}
} | Word Count operation, function named 'handle_word'. |
1,848 | Java | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("OpenAI Claude"));
}
} | Word Count operation, function named 'process_word'. |
1,849 | Java | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("OpenAI Claude"));
}
} | Word Count operation, function named 'handle_word'. |
1,850 | Java | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | public class Main {
static int compute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(compute_word("was it a car or a cat i saw"));
}
} | Word Count operation, function named 'compute_word'. |
1,851 | Java | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("was it a car or a cat i saw"));
}
} | Word Count operation, function named 'run_word'. |
1,852 | Java | String Manipulation | beginner | Perform 'word count' on the string "noon". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("noon"));
}
} | Word Count operation, function named 'process_word'. |
1,853 | Java | String Manipulation | beginner | Perform 'word count' on the string "noon". | public class Main {
static int compute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(compute_word("noon"));
}
} | Word Count operation, function named 'compute_word'. |
1,854 | Java | String Manipulation | beginner | Perform 'word count' on the string "data science". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("data science"));
}
} | Word Count operation, function named 'run_word'. |
1,855 | Java | String Manipulation | beginner | Perform 'word count' on the string "data science". | public class Main {
static int perform_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(perform_word("data science"));
}
} | Word Count operation, function named 'perform_word'. |
1,856 | Java | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("step on no pets"));
}
} | Word Count operation, function named 'handle_word'. |
1,857 | Java | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("step on no pets"));
}
} | Word Count operation, function named 'run_word'. |
1,858 | Java | String Manipulation | beginner | Perform 'word count' on the string "coding". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("coding"));
}
} | Word Count operation, function named 'handle_word'. |
1,859 | Java | String Manipulation | beginner | Perform 'word count' on the string "coding". | public class Main {
static int compute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(compute_word("coding"));
}
} | Word Count operation, function named 'compute_word'. |
1,860 | Java | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | public class Main {
static int compute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(compute_word("madam im adam"));
}
} | Word Count operation, function named 'compute_word'. |
1,861 | Java | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("madam im adam"));
}
} | Word Count operation, function named 'run_word'. |
1,862 | Java | String Manipulation | beginner | Perform 'word count' on the string "kayak". | public class Main {
static int perform_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(perform_word("kayak"));
}
} | Word Count operation, function named 'perform_word'. |
1,863 | Java | String Manipulation | beginner | Perform 'word count' on the string "kayak". | public class Main {
static int apply_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(apply_word("kayak"));
}
} | Word Count operation, function named 'apply_word'. |
1,864 | Java | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("the quick brown fox"));
}
} | Word Count operation, function named 'run_word'. |
1,865 | Java | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("the quick brown fox"));
}
} | Word Count operation, function named 'process_word'. |
1,866 | Java | String Manipulation | beginner | Perform 'word count' on the string "civic". | public class Main {
static int compute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(compute_word("civic"));
}
} | Word Count operation, function named 'compute_word'. |
1,867 | Java | String Manipulation | beginner | Perform 'word count' on the string "civic". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("civic"));
}
} | Word Count operation, function named 'run_word'. |
1,868 | Java | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | public class Main {
static int handle_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(handle_word("never odd or even"));
}
} | Word Count operation, function named 'handle_word'. |
1,869 | Java | String Manipulation | beginner | Perform 'word count' on the string "python programming". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("python programming"));
}
} | Word Count operation, function named 'run_word'. |
1,870 | Java | String Manipulation | beginner | Perform 'word count' on the string "python programming". | public class Main {
static int perform_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(perform_word("python programming"));
}
} | Word Count operation, function named 'perform_word'. |
1,871 | Java | String Manipulation | beginner | Perform 'word count' on the string "deified". | public class Main {
static int execute_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(execute_word("deified"));
}
} | Word Count operation, function named 'execute_word'. |
1,872 | Java | String Manipulation | beginner | Perform 'word count' on the string "deified". | public class Main {
static int apply_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(apply_word("deified"));
}
} | Word Count operation, function named 'apply_word'. |
1,873 | Java | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("algorithms and data structures"));
}
} | Word Count operation, function named 'process_word'. |
1,874 | Java | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | public class Main {
static int run_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(run_word("algorithms and data structures"));
}
} | Word Count operation, function named 'run_word'. |
1,875 | Java | String Manipulation | beginner | Perform 'word count' on the string "rotor". | public class Main {
static int apply_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(apply_word("rotor"));
}
} | Word Count operation, function named 'apply_word'. |
1,876 | Java | String Manipulation | beginner | Perform 'word count' on the string "rotor". | public class Main {
static int process_word(String s) {
return s.trim().split("\\s+").length;
}
public static void main(String[] args) {
System.out.println(process_word("rotor"));
}
} | Word Count operation, function named 'process_word'. |
1,877 | C | String Manipulation | beginner | Perform 'word count' on the string "racecar". | #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,878 | C | String Manipulation | beginner | Perform 'word count' on the string "racecar". | #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,879 | C | String Manipulation | beginner | Perform 'word count' on the string "hello world". | #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,880 | C | String Manipulation | beginner | Perform 'word count' on the string "hello world". | #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,881 | C | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | #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,882 | C | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | #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,883 | C | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | #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,884 | C | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | #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,885 | C | String Manipulation | beginner | Perform 'word count' on the string "level". | #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,886 | C | String Manipulation | beginner | Perform 'word count' on the string "level". | #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,887 | C | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | #include <stdio.h>
#include <string.h>
int handle_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 'handle_word'. |
1,888 | C | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | #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,889 | C | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | #include <stdio.h>
#include <string.h>
int handle_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 'handle_word'. |
1,890 | C | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | #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,891 | C | String Manipulation | beginner | Perform 'word count' on the string "noon". | #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,892 | C | String Manipulation | beginner | Perform 'word count' on the string "noon". | #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,893 | C | String Manipulation | beginner | Perform 'word count' on the string "data science". | #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,894 | C | String Manipulation | beginner | Perform 'word count' on the string "data science". | #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,895 | C | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | #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,896 | C | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | #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,897 | C | String Manipulation | beginner | Perform 'word count' on the string "coding". | #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,898 | C | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | #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,899 | C | String Manipulation | beginner | Perform 'word count' on the string "kayak". | #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,900 | C | String Manipulation | beginner | Perform 'word count' on the string "kayak". | #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'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.