Showing 0-0 of 0 results
| # | Exercise Title | Features | Description | Platform | Keywords |
|---|---|---|---|---|---|
| 1 | Select a short word | Code Completion | You want to pick a particular “short” word in an array of words, that is, words with at most three... | CodeCheck | Arrays and Array Lists |
| 2 | Short words | Code Completion | You want to collect all “short” words in an array of words, that is, words with at most three characters.... | CodeCheck | Arrays and Array Lists |
| 3 | Run lengths | Code Completion | A run is a sequence of adjacent repeated values. For example, the array with elements | CodeCheck | Arrays and Array Lists |
| 4 | Letter frequency (count) | Code Completion | Write a method that computes how often each letter A-Z or a-z occurs in a string. Don't distinguish between upper-... | CodeCheck | Arrays and Array Lists |
| 5 | Number of even and odd elements | Code Completion | Count the number of even and odd elements in an array of integers. Since you must return two counts, place... | CodeCheck | Arrays and Array Lists |
| 6 | Swap adjacent elements in array | Code Completion | Your task is to complete a method that swaps adjacent values in an array of integers. For example, if the... | CodeCheck | Arrays and Array Lists |
| 7 | Same beginning and end sequence | Code Completion | Your task is to determine whether an array has the same sequence of numbers at the beginning and the end,... | CodeCheck | Arrays and Array Lists |
| 8 | List of numbers | Code Completion | When printing the elements in an array, you want commas between the elements, such as | CodeCheck | Arrays and Array Lists |
| 9 | Diagonals on board | Code Completion | You are given a class similar to the TicTacToe board in Section 7.6, but the board can have more than... | CodeCheck | Arrays and Array Lists |
| 10 | Border on board | Code Completion | You are given a class similar to the TicTacToe board in Section 7.6, but the board can have more than... | CodeCheck | Arrays and Array Lists |
| 11 | Remove short words | Code Completion | Remove all short words (that is, words of length at most 3) from an array. Move down the remaining array... | CodeCheck | Arrays and Array Lists |
| 12 | Railfence cypher | Code Completion | A simple way of encoding a message is the railfence cypher. The message is written downwards and diagonally on rails... | CodeCheck | Arrays and Array Lists |
| 13 | Swap first and second half of array | Code Completion | Your task is to complete a method that swaps the first and second half of an array of integers. For... | CodeCheck | Arrays and Array Lists |
| 14 | Letter frequency (percentage) | Code Completion | Write a method that computes the frequency (as a percentage between 0.0 and 1.0) of each letter A-Z or a-z... | CodeCheck | Arrays and Array Lists |
| 15 | Given a two-dimensional array of integers and a value x, return the position of the first match as a list of length 2. | Code Completion | Given a two-dimensional array of integers and a value x, return the position of the first match as a list... | CodeCheck | Two-Dimensional Arrays, Looping Over the Entire Array |
| 16 | Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list of arrays of length 2. | Code Completion | Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as a list... | CodeCheck | Two-Dimensional Arrays, Looping Over the Entire Array |
| 17 | Construct a function that sorts a numeric array using Merge Sort. |
Construct a merge function that recursively splits a numeric array and takes a list as a parameter called data. Consider that... |
jsParsons | recursion, search algorithms, sorting, sorting algorithms | |
| 18 | Selection sort | Ascending-order Selection sort operates by finding the minimum element of an array and moving it to the “beginning” of the... | PCEX | recursion, search algorithms, sorting, sorting algorithms | |
| 19 | Selection sort Challenge | Descending-order Selection sort operates by finding the maximum element of an array and moving it to the “beginning” of the... | PCEX | ||
| 20 | Given two two-dimensional arrays a and b of integers with the same number of rows and columns, return a list of the same size where each element is the greater of the corresponding elements in the two arrays. | Code Completion | Given two two-dimensional arrays a and b of integers with the same number of rows and columns, return a list... | CodeCheck | Two-Dimensional Arrays, Producing 2D Arrays |
| 21 | Sort real data | Code Completion | Your task is to sort an array list of path names such as | CodeCheck | Sorting and Searching |
| 22 | Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they do not match, as a list of length 2. | Code Completion | Given two two-dimensional arrays of integers with the same number of rows and columns, return the first position where they... | CodeCheck | Two-Dimensional Arrays, Producing 2D Arrays |
| 23 | Processing a List of Temperature Values | Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... | PCEX | arrays | |
| 24 | Rotating the List Values to the Right by Two Position | Construct a program that has a function that receives a list of values and returns the list rotated to the... | PCEX | arrays | |
| 25 | Rotating the List Values to the Right by Two Position | Construct a program that has a function that receives a list of values and returns the list rotated to the... | PCEX | arrays | |
| 26 | Complete Binary Tree Calculation Questions | Calculation Exercise, Battery | Self-practice questions requiring user to calcuate node positions and values in an array representation for a complete binary tree. | OpenDSA | Linked List |
| 27 | JLinkedListUtil | This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... | PCEX | ||
| 28 | JLinkedListUtil Challenge | This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... | PCEX | ||
| 29 | Insertion Sort | Insertion sort works similarly to how one would sort a hand of cards: by choosing an element and searching through... | PCEX | recursion, search algorithms, sorting, sorting algorithms | |
| 30 | Insertion Sort Challenge | Insertion sort works similarly to how one would sort a hand of cards: by choosing an element and searching through... | PCEX |