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,701 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "OpenAI Claude". | fn process_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", process_reverse("OpenAI Claude"));
} | Reverse operation, function named 'process_reverse'. |
1,702 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "was it a car or a cat i saw". | fn handle_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", handle_reverse("was it a car or a cat i saw"));
} | Reverse operation, function named 'handle_reverse'. |
1,703 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "was it a car or a cat i saw". | fn compute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", compute_reverse("was it a car or a cat i saw"));
} | Reverse operation, function named 'compute_reverse'. |
1,704 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "noon". | fn compute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", compute_reverse("noon"));
} | Reverse operation, function named 'compute_reverse'. |
1,705 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "noon". | fn handle_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", handle_reverse("noon"));
} | Reverse operation, function named 'handle_reverse'. |
1,706 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "data science". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("data science"));
} | Reverse operation, function named 'run_reverse'. |
1,707 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "data science". | fn execute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", execute_reverse("data science"));
} | Reverse operation, function named 'execute_reverse'. |
1,708 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "step on no pets". | fn handle_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", handle_reverse("step on no pets"));
} | Reverse operation, function named 'handle_reverse'. |
1,709 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "step on no pets". | fn apply_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", apply_reverse("step on no pets"));
} | Reverse operation, function named 'apply_reverse'. |
1,710 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "coding". | fn process_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", process_reverse("coding"));
} | Reverse operation, function named 'process_reverse'. |
1,711 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "coding". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("coding"));
} | Reverse operation, function named 'run_reverse'. |
1,712 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "madam im adam". | fn apply_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", apply_reverse("madam im adam"));
} | Reverse operation, function named 'apply_reverse'. |
1,713 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "madam im adam". | fn execute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", execute_reverse("madam im adam"));
} | Reverse operation, function named 'execute_reverse'. |
1,714 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "kayak". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("kayak"));
} | Reverse operation, function named 'run_reverse'. |
1,715 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "kayak". | fn execute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", execute_reverse("kayak"));
} | Reverse operation, function named 'execute_reverse'. |
1,716 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "the quick brown fox". | fn execute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", execute_reverse("the quick brown fox"));
} | Reverse operation, function named 'execute_reverse'. |
1,717 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "the quick brown fox". | fn perform_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", perform_reverse("the quick brown fox"));
} | Reverse operation, function named 'perform_reverse'. |
1,718 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "civic". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("civic"));
} | Reverse operation, function named 'run_reverse'. |
1,719 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "civic". | fn perform_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", perform_reverse("civic"));
} | Reverse operation, function named 'perform_reverse'. |
1,720 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "never odd or even". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("never odd or even"));
} | Reverse operation, function named 'run_reverse'. |
1,721 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "python programming". | fn apply_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", apply_reverse("python programming"));
} | Reverse operation, function named 'apply_reverse'. |
1,722 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "python programming". | fn handle_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", handle_reverse("python programming"));
} | Reverse operation, function named 'handle_reverse'. |
1,723 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "deified". | fn compute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", compute_reverse("deified"));
} | Reverse operation, function named 'compute_reverse'. |
1,724 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "deified". | fn perform_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", perform_reverse("deified"));
} | Reverse operation, function named 'perform_reverse'. |
1,725 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "algorithms and data structures". | fn compute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", compute_reverse("algorithms and data structures"));
} | Reverse operation, function named 'compute_reverse'. |
1,726 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "algorithms and data structures". | fn execute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", execute_reverse("algorithms and data structures"));
} | Reverse operation, function named 'execute_reverse'. |
1,727 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "rotor". | fn compute_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", compute_reverse("rotor"));
} | Reverse operation, function named 'compute_reverse'. |
1,728 | Rust | String Manipulation | beginner | Perform 'reverse' on the string "rotor". | fn run_reverse(s: &str) -> String {
s.chars().rev().collect()
}
fn main() {
println!("{}", run_reverse("rotor"));
} | Reverse operation, function named 'run_reverse'. |
1,729 | Python | String Manipulation | beginner | Perform 'word count' on the string "racecar". | def perform_word(s):
return len(s.split())
print(perform_word('racecar')) | Word Count operation, function named 'perform_word'. |
1,730 | Python | String Manipulation | beginner | Perform 'word count' on the string "racecar". | def run_word(s):
return len(s.split())
print(run_word('racecar')) | Word Count operation, function named 'run_word'. |
1,731 | Python | String Manipulation | beginner | Perform 'word count' on the string "hello world". | def compute_word(s):
return len(s.split())
print(compute_word('hello world')) | Word Count operation, function named 'compute_word'. |
1,732 | Python | String Manipulation | beginner | Perform 'word count' on the string "hello world". | def process_word(s):
return len(s.split())
print(process_word('hello world')) | Word Count operation, function named 'process_word'. |
1,733 | Python | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | def handle_word(s):
return len(s.split())
print(handle_word('A man a plan a canal Panama')) | Word Count operation, function named 'handle_word'. |
1,734 | Python | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | def apply_word(s):
return len(s.split())
print(apply_word('A man a plan a canal Panama')) | Word Count operation, function named 'apply_word'. |
1,735 | Python | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | def execute_word(s):
return len(s.split())
print(execute_word('Rust is fun')) | Word Count operation, function named 'execute_word'. |
1,736 | Python | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | def process_word(s):
return len(s.split())
print(process_word('Rust is fun')) | Word Count operation, function named 'process_word'. |
1,737 | Python | String Manipulation | beginner | Perform 'word count' on the string "level". | def run_word(s):
return len(s.split())
print(run_word('level')) | Word Count operation, function named 'run_word'. |
1,738 | Python | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | def apply_word(s):
return len(s.split())
print(apply_word('OpenAI Claude')) | Word Count operation, function named 'apply_word'. |
1,739 | Python | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | def compute_word(s):
return len(s.split())
print(compute_word('OpenAI Claude')) | Word Count operation, function named 'compute_word'. |
1,740 | Python | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | def execute_word(s):
return len(s.split())
print(execute_word('was it a car or a cat i saw')) | Word Count operation, function named 'execute_word'. |
1,741 | Python | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | def run_word(s):
return len(s.split())
print(run_word('was it a car or a cat i saw')) | Word Count operation, function named 'run_word'. |
1,742 | Python | String Manipulation | beginner | Perform 'word count' on the string "noon". | def execute_word(s):
return len(s.split())
print(execute_word('noon')) | Word Count operation, function named 'execute_word'. |
1,743 | Python | String Manipulation | beginner | Perform 'word count' on the string "noon". | def process_word(s):
return len(s.split())
print(process_word('noon')) | Word Count operation, function named 'process_word'. |
1,744 | Python | String Manipulation | beginner | Perform 'word count' on the string "data science". | def handle_word(s):
return len(s.split())
print(handle_word('data science')) | Word Count operation, function named 'handle_word'. |
1,745 | Python | String Manipulation | beginner | Perform 'word count' on the string "data science". | def execute_word(s):
return len(s.split())
print(execute_word('data science')) | Word Count operation, function named 'execute_word'. |
1,746 | Python | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | def handle_word(s):
return len(s.split())
print(handle_word('step on no pets')) | Word Count operation, function named 'handle_word'. |
1,747 | Python | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | def compute_word(s):
return len(s.split())
print(compute_word('step on no pets')) | Word Count operation, function named 'compute_word'. |
1,748 | Python | String Manipulation | beginner | Perform 'word count' on the string "coding". | def execute_word(s):
return len(s.split())
print(execute_word('coding')) | Word Count operation, function named 'execute_word'. |
1,749 | Python | String Manipulation | beginner | Perform 'word count' on the string "coding". | def perform_word(s):
return len(s.split())
print(perform_word('coding')) | Word Count operation, function named 'perform_word'. |
1,750 | Python | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | def execute_word(s):
return len(s.split())
print(execute_word('madam im adam')) | Word Count operation, function named 'execute_word'. |
1,751 | Python | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | def handle_word(s):
return len(s.split())
print(handle_word('madam im adam')) | Word Count operation, function named 'handle_word'. |
1,752 | Python | String Manipulation | beginner | Perform 'word count' on the string "kayak". | def execute_word(s):
return len(s.split())
print(execute_word('kayak')) | Word Count operation, function named 'execute_word'. |
1,753 | Python | String Manipulation | beginner | Perform 'word count' on the string "kayak". | def apply_word(s):
return len(s.split())
print(apply_word('kayak')) | Word Count operation, function named 'apply_word'. |
1,754 | Python | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | def handle_word(s):
return len(s.split())
print(handle_word('the quick brown fox')) | Word Count operation, function named 'handle_word'. |
1,755 | Python | String Manipulation | beginner | Perform 'word count' on the string "civic". | def perform_word(s):
return len(s.split())
print(perform_word('civic')) | Word Count operation, function named 'perform_word'. |
1,756 | Python | String Manipulation | beginner | Perform 'word count' on the string "civic". | def compute_word(s):
return len(s.split())
print(compute_word('civic')) | Word Count operation, function named 'compute_word'. |
1,757 | Python | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | def apply_word(s):
return len(s.split())
print(apply_word('never odd or even')) | Word Count operation, function named 'apply_word'. |
1,758 | Python | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | def process_word(s):
return len(s.split())
print(process_word('never odd or even')) | Word Count operation, function named 'process_word'. |
1,759 | Python | String Manipulation | beginner | Perform 'word count' on the string "python programming". | def process_word(s):
return len(s.split())
print(process_word('python programming')) | Word Count operation, function named 'process_word'. |
1,760 | Python | String Manipulation | beginner | Perform 'word count' on the string "python programming". | def compute_word(s):
return len(s.split())
print(compute_word('python programming')) | Word Count operation, function named 'compute_word'. |
1,761 | Python | String Manipulation | beginner | Perform 'word count' on the string "deified". | def apply_word(s):
return len(s.split())
print(apply_word('deified')) | Word Count operation, function named 'apply_word'. |
1,762 | Python | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | def handle_word(s):
return len(s.split())
print(handle_word('algorithms and data structures')) | Word Count operation, function named 'handle_word'. |
1,763 | Python | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | def apply_word(s):
return len(s.split())
print(apply_word('algorithms and data structures')) | Word Count operation, function named 'apply_word'. |
1,764 | Python | String Manipulation | beginner | Perform 'word count' on the string "rotor". | def compute_word(s):
return len(s.split())
print(compute_word('rotor')) | Word Count operation, function named 'compute_word'. |
1,765 | Python | String Manipulation | beginner | Perform 'word count' on the string "rotor". | def run_word(s):
return len(s.split())
print(run_word('rotor')) | Word Count operation, function named 'run_word'. |
1,766 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "racecar". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("racecar")); | Word Count operation, function named 'run_word'. |
1,767 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "racecar". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("racecar")); | Word Count operation, function named 'handle_word'. |
1,768 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "hello world". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("hello world")); | Word Count operation, function named 'run_word'. |
1,769 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "hello world". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(process_word("hello world")); | Word Count operation, function named 'process_word'. |
1,770 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("A man a plan a canal Panama")); | Word Count operation, function named 'perform_word'. |
1,771 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "A man a plan a canal Panama". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("A man a plan a canal Panama")); | Word Count operation, function named 'handle_word'. |
1,772 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "Rust is fun". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("Rust is fun")); | Word Count operation, function named 'handle_word'. |
1,773 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "level". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(compute_word("level")); | Word Count operation, function named 'compute_word'. |
1,774 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(process_word("OpenAI Claude")); | Word Count operation, function named 'process_word'. |
1,775 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "OpenAI Claude". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("OpenAI Claude")); | Word Count operation, function named 'handle_word'. |
1,776 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("was it a car or a cat i saw")); | Word Count operation, function named 'handle_word'. |
1,777 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "was it a car or a cat i saw". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(apply_word("was it a car or a cat i saw")); | Word Count operation, function named 'apply_word'. |
1,778 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "noon". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("noon")); | Word Count operation, function named 'handle_word'. |
1,779 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "noon". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("noon")); | Word Count operation, function named 'run_word'. |
1,780 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "data science". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(process_word("data science")); | Word Count operation, function named 'process_word'. |
1,781 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "data science". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("data science")); | Word Count operation, function named 'perform_word'. |
1,782 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "step on no pets". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("step on no pets")); | Word Count operation, function named 'handle_word'. |
1,783 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "coding". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("coding")); | Word Count operation, function named 'perform_word'. |
1,784 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "coding". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(execute_word("coding")); | Word Count operation, function named 'execute_word'. |
1,785 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "madam im adam". | function apply_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(apply_word("madam im adam")); | Word Count operation, function named 'apply_word'. |
1,786 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "kayak". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(compute_word("kayak")); | Word Count operation, function named 'compute_word'. |
1,787 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "kayak". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(process_word("kayak")); | Word Count operation, function named 'process_word'. |
1,788 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("the quick brown fox")); | Word Count operation, function named 'run_word'. |
1,789 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "the quick brown fox". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("the quick brown fox")); | Word Count operation, function named 'handle_word'. |
1,790 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "civic". | function compute_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(compute_word("civic")); | Word Count operation, function named 'compute_word'. |
1,791 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "civic". | function process_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(process_word("civic")); | Word Count operation, function named 'process_word'. |
1,792 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("never odd or even")); | Word Count operation, function named 'run_word'. |
1,793 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "never odd or even". | function execute_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(execute_word("never odd or even")); | Word Count operation, function named 'execute_word'. |
1,794 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "python programming". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("python programming")); | Word Count operation, function named 'perform_word'. |
1,795 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "python programming". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("python programming")); | Word Count operation, function named 'run_word'. |
1,796 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "deified". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("deified")); | Word Count operation, function named 'perform_word'. |
1,797 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "deified". | function handle_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(handle_word("deified")); | Word Count operation, function named 'handle_word'. |
1,798 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("algorithms and data structures")); | Word Count operation, function named 'run_word'. |
1,799 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "algorithms and data structures". | function perform_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(perform_word("algorithms and data structures")); | Word Count operation, function named 'perform_word'. |
1,800 | JavaScript | String Manipulation | beginner | Perform 'word count' on the string "rotor". | function run_word(s) {
return s.split(" ").filter(Boolean).length;
}
console.log(run_word("rotor")); | Word Count operation, function named 'run_word'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.