Showing 0–0 of 0 results
| # | Exercise Title | Features | Description | Platform | Keywords |
|---|---|---|---|---|---|
| 1 | Given a list of integers, count how many elements are negative. | Code Completion | Given a list of integers, count how many elements are negative. | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 2 | Given a list of integers and two values a and b, count how many elements are at least a and at most b. | Code Completion | Given a list of integers and two values a and b, count how many elements are at least a and... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 3 | Given a list of integers, return a list of all elements that occur with maximum frequency. | Code Completion | Given a list of integers, return a list of all elements that occur with maximum frequency. | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 4 | Given a list of integers, return the position of the first element that occurs more than once, or -1 if all elements occur exactly once. | Code Completion | Given a list of integers, return the position of the first element that occurs more than once, or -1 if... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 5 | Given a list of integers, return a list of all elements that occur exactly once. | Code Completion | Given a list of integers, return a list of all elements that occur exactly once. | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 6 | Given a list of integers, remove all elements that occur more than once, leaving the first occurrence. | Code Completion | Given a list of integers, remove all elements that occur more than once, leaving the first occurrence. | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 7 | Given two lists of integers a and b of the same length, count the number of positions where the lists have the same elements. | Code Completion | Given two lists of integers a and b of the same length, count the number of positions where the lists... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 8 | Given two lists of integers a and b of the same length, count the number of positions where the list elements differ by at least 2. | Code Completion | Given two lists of integers a and b of the same length, count the number of positions where the list... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 9 | Given a list a, count how many times the ith element from the front equals the ith element from the back. | Code Completion | Given a list a, count how many times the ith element from the front equals the ith element from the... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 10 | Given a list of integers, return the most frequent element. | Code Completion | Given a list of integers, return the most frequent element. If there is more than one element with maximum frequency,... | CodeCheck | Lists - Simple Exercises, Counting Elements |
| 11 | Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element itself). | Code Completion | Given a two-dimensional array of integers and row/column indexes r, c, return the number of neighbors (not counting the element... | CodeCheck | Two-Dimensional Arrays, No Loops |
| 12 | Counting letter repetition | Looping and counting | PCEX | ||
| 13 | Counting the Number of Valid and Banned Product Codes (Case 1) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 14 | Counting the Number of Valid and Banned Product Codes (Case 2) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 15 | Counting the Number of Valid and Banned Product Codes (Case 1) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 16 | Counting the Number of Valid and Banned Product Codes (Case 2) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 17 | Counting the Number of Valid and Banned Product Codes (Case 1) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 18 | Counting the Number of Valid and Banned Product Codes (Case 2) | Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... | PCEX | ||
| 19 | Counting the Occurrences of One String in Another (Case 1) | Construct a program that has a function that receives a string and returns the number of times that the string... | PCEX | ||
| 20 | Counting the Occurrences of One String in Another (Case 2) | Construct a program that has a function that receives a string and returns the number of times that the string... | PCEX | ||
| 21 | Counting the Occurrences of One String in Another (Case 1) | Construct a program that has a function that receives a string and returns the number of times that the string... | PCEX | ||
| 22 | Counting the Occurrences of One String in Another (Case 2). | Construct a program that has a function that receives a string and returns the number of times that the string... | PCEX | ||
| 23 | Recursive Code Tracing Exercise: Call Count | Tracing Exercise | Recursive Code Tracing Exercise collection focusing on counting the number of function calls made. | OpenDSA | Recursion |
| 24 | Solving Josephus Problem | Construct a program by using Queue structure to solve a Josephus problem. Josephus problem is a counting-out game. N people... | PCEX | ||
| 25 | Calculating the Winning Percentage of a Sports Team (Case 3) | Construct a program that receives from the user the number of games that a sports team won and tied in... | PCEX | ||
| 26 | Calculating the Winning Percentage of a Sports Team (Case 3) | Construct a program that receives from the user the number of games that a sports team won and tied in... | PCEX | ||
| 27 | Calculating the Winning Percentage of a Sports Team (Case 3) | Construct a program that receives from the user the number of games that a sports team won and tied in... | PCEX |