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,101 | Node.js | String Manipulation | intermediate | Perform 'vowel count' on the string "algorithms and data structures". | function execute_vowel(s) {
return [...s.toLowerCase()].filter(c => "aeiou".includes(c)).length;
}
module.exports = { execute_vowel };
console.log(execute_vowel("algorithms and data structures")); | Vowel Count operation, function named 'execute_vowel'. |
2,102 | Node.js | String Manipulation | intermediate | Perform 'vowel count' on the string "algorithms and data structures". | function run_vowel(s) {
return [...s.toLowerCase()].filter(c => "aeiou".includes(c)).length;
}
module.exports = { run_vowel };
console.log(run_vowel("algorithms and data structures")); | Vowel Count operation, function named 'run_vowel'. |
2,103 | Node.js | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | function run_vowel(s) {
return [...s.toLowerCase()].filter(c => "aeiou".includes(c)).length;
}
module.exports = { run_vowel };
console.log(run_vowel("rotor")); | Vowel Count operation, function named 'run_vowel'. |
2,104 | Node.js | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | function execute_vowel(s) {
return [...s.toLowerCase()].filter(c => "aeiou".includes(c)).length;
}
module.exports = { execute_vowel };
console.log(execute_vowel("rotor")); | Vowel Count operation, function named 'execute_vowel'. |
2,105 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | public class Main {
static int process_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(process_vowel("racec... | Vowel Count operation, function named 'process_vowel'. |
2,106 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("racec... | Vowel Count operation, function named 'compute_vowel'. |
2,107 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "hello world". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("hello... | Vowel Count operation, function named 'compute_vowel'. |
2,108 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("A man... | Vowel Count operation, function named 'compute_vowel'. |
2,109 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | public class Main {
static int apply_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(apply_vowel("A man a p... | Vowel Count operation, function named 'apply_vowel'. |
2,110 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("Rust is fun")... | Vowel Count operation, function named 'run_vowel'. |
2,111 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | public class Main {
static int handle_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(handle_vowel("Rust is... | Vowel Count operation, function named 'handle_vowel'. |
2,112 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("level"));
... | Vowel Count operation, function named 'run_vowel'. |
2,113 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | public class Main {
static int apply_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(apply_vowel("level"));... | Vowel Count operation, function named 'apply_vowel'. |
2,114 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("OpenA... | Vowel Count operation, function named 'perform_vowel'. |
2,115 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("OpenAI Claude... | Vowel Count operation, function named 'run_vowel'. |
2,116 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | public class Main {
static int handle_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(handle_vowel("was it ... | Vowel Count operation, function named 'handle_vowel'. |
2,117 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | public class Main {
static int execute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(execute_vowel("was i... | Vowel Count operation, function named 'execute_vowel'. |
2,118 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "noon". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("noon"... | Vowel Count operation, function named 'perform_vowel'. |
2,119 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "noon". | public class Main {
static int handle_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(handle_vowel("noon"))... | Vowel Count operation, function named 'handle_vowel'. |
2,120 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("data ... | Vowel Count operation, function named 'perform_vowel'. |
2,121 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("data science"... | Vowel Count operation, function named 'run_vowel'. |
2,122 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("step ... | Vowel Count operation, function named 'compute_vowel'. |
2,123 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("step on no pe... | Vowel Count operation, function named 'run_vowel'. |
2,124 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "coding". | public class Main {
static int process_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(process_vowel("codin... | Vowel Count operation, function named 'process_vowel'. |
2,125 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "coding". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("codin... | Vowel Count operation, function named 'perform_vowel'. |
2,126 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "madam im adam". | public class Main {
static int apply_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(apply_vowel("madam im ... | Vowel Count operation, function named 'apply_vowel'. |
2,127 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "madam im adam". | public class Main {
static int execute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(execute_vowel("madam... | Vowel Count operation, function named 'execute_vowel'. |
2,128 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "kayak". | public class Main {
static int process_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(process_vowel("kayak... | Vowel Count operation, function named 'process_vowel'. |
2,129 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "kayak". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("kayak... | Vowel Count operation, function named 'perform_vowel'. |
2,130 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "the quick brown fox". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("the quick bro... | Vowel Count operation, function named 'run_vowel'. |
2,131 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "the quick brown fox". | public class Main {
static int execute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(execute_vowel("the q... | Vowel Count operation, function named 'execute_vowel'. |
2,132 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "civic". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("civic... | Vowel Count operation, function named 'compute_vowel'. |
2,133 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "civic". | public class Main {
static int process_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(process_vowel("civic... | Vowel Count operation, function named 'process_vowel'. |
2,134 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "never odd or even". | public class Main {
static int handle_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(handle_vowel("never o... | Vowel Count operation, function named 'handle_vowel'. |
2,135 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "never odd or even". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("never... | Vowel Count operation, function named 'perform_vowel'. |
2,136 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "python programming". | public class Main {
static int execute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(execute_vowel("pytho... | Vowel Count operation, function named 'execute_vowel'. |
2,137 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "python programming". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("pytho... | Vowel Count operation, function named 'compute_vowel'. |
2,138 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "deified". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("deifi... | Vowel Count operation, function named 'compute_vowel'. |
2,139 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "algorithms and data structures". | public class Main {
static int apply_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(apply_vowel("algorithm... | Vowel Count operation, function named 'apply_vowel'. |
2,140 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "algorithms and data structures". | public class Main {
static int compute_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(compute_vowel("algor... | Vowel Count operation, function named 'compute_vowel'. |
2,141 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | public class Main {
static int run_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(run_vowel("rotor"));
... | Vowel Count operation, function named 'run_vowel'. |
2,142 | Java | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | public class Main {
static int perform_vowel(String s) {
int count = 0;
for (char c : s.toLowerCase().toCharArray()) {
if ("aeiou".indexOf(c) >= 0) count++;
}
return count;
}
public static void main(String[] args) {
System.out.println(perform_vowel("rotor... | Vowel Count operation, function named 'perform_vowel'. |
2,143 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("rac... | Vowel Count operation, function named 'run_vowel'. |
2,144 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int process_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", process_vo... | Vowel Count operation, function named 'process_vowel'. |
2,145 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "hello world". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,146 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "hello world". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,147 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,148 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,149 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,150 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int compute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", compute_vo... | Vowel Count operation, function named 'compute_vowel'. |
2,151 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,152 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("lev... | Vowel Count operation, function named 'run_vowel'. |
2,153 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("Ope... | Vowel Count operation, function named 'run_vowel'. |
2,154 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int apply_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", apply_vowel(... | Vowel Count operation, function named 'apply_vowel'. |
2,155 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int process_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", process_vo... | Vowel Count operation, function named 'process_vowel'. |
2,156 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int apply_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", apply_vowel(... | Vowel Count operation, function named 'apply_vowel'. |
2,157 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "noon". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int compute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", compute_vo... | Vowel Count operation, function named 'compute_vowel'. |
2,158 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "noon". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,159 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int perform_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", perform_vo... | Vowel Count operation, function named 'perform_vowel'. |
2,160 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("dat... | Vowel Count operation, function named 'run_vowel'. |
2,161 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,162 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("ste... | Vowel Count operation, function named 'run_vowel'. |
2,163 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "coding". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,164 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "coding". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,165 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "madam im adam". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("mad... | Vowel Count operation, function named 'run_vowel'. |
2,166 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "madam im adam". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,167 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "kayak". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int apply_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", apply_vowel(... | Vowel Count operation, function named 'apply_vowel'. |
2,168 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "kayak". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int process_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", process_vo... | Vowel Count operation, function named 'process_vowel'. |
2,169 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "the quick brown fox". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int process_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", process_vo... | Vowel Count operation, function named 'process_vowel'. |
2,170 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "the quick brown fox". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("the... | Vowel Count operation, function named 'run_vowel'. |
2,171 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "civic". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,172 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "never odd or even". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int process_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", process_vo... | Vowel Count operation, function named 'process_vowel'. |
2,173 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "never odd or even". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int execute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", execute_vo... | Vowel Count operation, function named 'execute_vowel'. |
2,174 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "python programming". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int compute_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", compute_vo... | Vowel Count operation, function named 'compute_vowel'. |
2,175 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "python programming". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,176 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "deified". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int apply_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", apply_vowel(... | Vowel Count operation, function named 'apply_vowel'. |
2,177 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "deified". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int handle_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", handle_vowe... | Vowel Count operation, function named 'handle_vowel'. |
2,178 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "algorithms and data structures". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int apply_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", apply_vowel(... | Vowel Count operation, function named 'apply_vowel'. |
2,179 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int perform_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", perform_vo... | Vowel Count operation, function named 'perform_vowel'. |
2,180 | C | String Manipulation | intermediate | Perform 'vowel count' on the string "rotor". | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int run_vowel(const char* s) {
int count = 0;
for (int i = 0; s[i] != '\0'; i++) {
char c = tolower(s[i]);
if (c=='a'||c=='e'||c=='i'||c=='o'||c=='u') count++;
}
return count;
}
int main(void) {
printf("%d\n", run_vowel("rot... | Vowel Count operation, function named 'run_vowel'. |
2,181 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | #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("racecar") << std::endl... | Vowel Count operation, function named 'execute_vowel'. |
2,182 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "racecar". | #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("racecar") << std::endl;
re... | Vowel Count operation, function named 'run_vowel'. |
2,183 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "hello world". | #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("hello world") << std::... | Vowel Count operation, function named 'compute_vowel'. |
2,184 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "hello world". | #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("hello world") << std::endl... | Vowel Count operation, function named 'apply_vowel'. |
2,185 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | #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("A man a plan a canal Pan... | Vowel Count operation, function named 'handle_vowel'. |
2,186 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "A man a plan a canal Panama". | #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("A man a plan a canal Panama") ... | Vowel Count operation, function named 'run_vowel'. |
2,187 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | #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("Rust is fun") << std::... | Vowel Count operation, function named 'execute_vowel'. |
2,188 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "Rust is fun". | #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("Rust is fun") << std::... | Vowel Count operation, function named 'compute_vowel'. |
2,189 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | #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("level") << std::endl;
... | Vowel Count operation, function named 'compute_vowel'. |
2,190 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "level". | #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("level") << std::endl;
... | Vowel Count operation, function named 'apply_vowel'. |
2,191 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | #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("OpenAI Claude") << std... | Vowel Count operation, function named 'compute_vowel'. |
2,192 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "OpenAI Claude". | #include <iostream>
#include <string>
#include <cctype>
int perform_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 << perform_vowel("OpenAI Claude") << std... | Vowel Count operation, function named 'perform_vowel'. |
2,193 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | #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("was it a car or a cat ... | Vowel Count operation, function named 'process_vowel'. |
2,194 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "was it a car or a cat i saw". | #include <iostream>
#include <string>
#include <cctype>
int perform_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 << perform_vowel("was it a car or a cat ... | Vowel Count operation, function named 'perform_vowel'. |
2,195 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "noon". | #include <iostream>
#include <string>
#include <cctype>
int perform_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 << perform_vowel("noon") << std::endl;
... | Vowel Count operation, function named 'perform_vowel'. |
2,196 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | #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("data science") << std::end... | Vowel Count operation, function named 'apply_vowel'. |
2,197 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "data science". | #include <iostream>
#include <string>
#include <cctype>
int perform_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 << perform_vowel("data science") << std:... | Vowel Count operation, function named 'perform_vowel'. |
2,198 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | #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("step on no pets") << s... | Vowel Count operation, function named 'compute_vowel'. |
2,199 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "step on no pets". | #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("step on no pets") << s... | Vowel Count operation, function named 'execute_vowel'. |
2,200 | C++ | String Manipulation | intermediate | Perform 'vowel count' on the string "coding". | #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("coding") << std::endl;... | Vowel Count operation, function named 'execute_vowel'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.