Showing 0-0 of 0 results
| # | Exercise Title | Features | Description | Platform | Keywords |
|---|---|---|---|---|---|
| 1 | LinkedBag contains | Free Coding Problem, code writing | Coding Question | CodeWorkout | Lists, nodes, chains, links, bag, ADT, contains, code writing |
| 2 | Set Contains - In Two Sets | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, set, Java, sets, contains, code writing |
| 3 | Set Contains - Set Contains All | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, set, Java, sets, contains, code writing |
| 4 | Set Contains - Contains Message | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, set, Java, sets, contains, code writing |
| 5 | Contains Two | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, arraylist, Java, loop, for, code writing |
| 6 | Contains (with linear search) | Free Coding Problem | Coding Question | CodeWorkout | linear search, search, array, int, cci |
| 7 | containsRoot(word)? | Free Coding Problem, code writing | Coding Question | CodeWorkout | String, conditionals, if, code writing |
| 8 | Review - Contains A | Free Coding Problem | Coding Question | CodeWorkout | review, String, recursion, char, length |
| 9 | ArrayList Contains Value | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, arraylist, Java, Data Structure, loop, iteration, for each, for-each, code writing |
| 10 | List Contains Value | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, loop, iteration, for-each, for, List, code writing |
| 11 | Creating an array that Contains the Numbers of Times Each Element of One Array Appears in Another Array | Construct a program that has a function that receives two arrays and creates an array that contains the number of... | PCEX | arrays | |
| 12 | Linked List Operations - Contains | In this example, we will implement the contains() method that accepts a value and returns True if the value is... | PCEX | ||
| 13 | 2D Generic Array Contains | Free Coding Problem, code writing | Coding Question | CodeWorkout | CS1114, array, Java, multi, dimensional, generic, code writing |
| 14 | Given two lists a and b, return a list that contains all elements occurring in a but not in b. | Code Completion | Given two lists a and b, return a list that contains all elements occurring in a but not in b. | CodeCheck | Lists - Simple Exercises, Double Loops |
| 15 | Given two arrays a and b, return an array that contains all elements occurring in a but not in b. | Code Completion | Given two arrays a and b, return an array that contains all elements occurring in a but not in b. | CodeCheck | Arrays - Simple Exercises, Double Loops |
| 16 | Get a title from an RSS file | Code Completion | An RSS file contains a sequence of item elements inside a channel element. Here is a sample RSS file: | CodeCheck | XML |
| 17 | How many items in this RSS file? | Code Completion | An RSS file contains a sequence of item elements inside a channel element. Here is a sample RSS file: | CodeCheck | XML |
| 18 | Reporting the Total Hours Each Employee Worked (Case 1) | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | file i/o | |
| 19 | Reporting the Total Hours Each Employee Worked (Case 2) | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | file i/o | |
| 20 | Printing A Right Triangle Star Pattern | A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... | PCEX | nested loops | |
| 21 | Reporting the Total Hours Each Employee Worked | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | file i/o | |
| 22 | Printing A Right Triangle Star Pattern | A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... | PCEX | loops, nested loops | |
| 23 | Printing A Right Triangle Star Pattern | A Right triangle star pattern contains N asterisks in N-th row. Construct a program that receives the number of rows... | PCEX | algorithm analysis, for loop, nested loops | |
| 24 | Reporting the Total Hours Each Employee Worked | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | exception handling, file i/o | |
| 25 | Reporting the Total Hours Each Employee Worked (Case 2) | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | file i/o | |
| 26 | Reporting the Total Hours Each Employee Worked | Suppose we have an input file that contains information about how many hours each employee of a company has worked.... | PCEX | file i/o | |
| 27 | Printing an Inverted Right Triangle Star Pattern | An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... | PCEX | nested loops | |
| 28 | Printing an Inverted Right Triangle Star Pattern | An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... | PCEX | nested loops | |
| 29 | Printing A Right Triangle Star Pattern | An inverted right triangle star pattern of N rows contains N-i+1 asterisks in the i-th row. Construct a program that... | PCEX | for loop, nested loops | |
| 30 | Add throws clause to web reader | Code Completion | The checkURL method below checks whether a web site contains data. Checked exceptions can be thrown in the code. Your... | CodeCheck | Input and Output |
| 31 | Creating a List of Words from a File | Construct a program that reads a text file and creates a list of the words that the file contains, ignoring... | PCEX | file i/o | |
| 32 | Comparing the List of Words from Two Files | Construct a program that reads two text files and creates a list of the words that each of these files... | PCEX | file i/o | |
| 33 | Creating a List of Words from File(s) | Construct a program that reads a text file and creates a list of the words that the file contains, ignoring... | PCEX | arraylist, file i/o, list | |
| 34 | Comparing the List of Words from Two Files | Construct a program that reads two text files and creates a list of the words that each of these files... | PCEX | arraylist, file i/o | |
| 35 | Searching Arrays (Case 3) | Construct a program that has a function that receives two arrays and creates an array that contains the number of... | PCEX | arrays | |
| 36 | Searching Values of a List in Another List (Case 3) | Construct a program that has a function that receives two lists and creates a list that contains the number of... | PCEX | list, search algorithms | |
| 37 | Processing exam scores | Code Completion | Your task is to read a file containing exam scores, and to write another file that contains the results of... | CodeCheck | Input and Output |
| 38 | Seconds to Minutes Conversion | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | ||
| 39 | Seconds to Minutes Conversion | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | arithmetic operations, operators, variables | |
| 40 | Seconds to Minutes Conversion | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | ||
| 41 | Seconds to Minutes Conversion | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | ||
| 42 | Queue Class - Check if Element Exists | In this example, you will use Queue class from queue provided by python. This class contains methods for adding a... | PCEX | ||
| 43 | Queue Class - Check if Element Exists | In this example, you will use Queue class from queue provided by python. This class contains methods for adding a... | PCEX | ||
| 44 | Finding Adjacent Duplicates in a Sequence of Numbers | Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... | PCEX | while loop | |
| 45 | Finding Adjacent Consecutive Numbers in a Sequence of Integers | Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... | PCEX | while loop | |
| 46 | Finding Adjacent Numbers in Ascending Order in a Sequence of Numbers | Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... | PCEX | while loop | |
| 47 | Time Converter | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | arithmetic operations, arithmetic operators, input, operators, variables | |
| 48 | Comparing Adjacent Numbers in a Sequence of Numbers | Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... | PCEX | while loop | |
| 49 | Comparing Adjacent Numbers in a Sequence of Numbers | Construct a program that checks whether a sequence of numbers, entered one at a time, contains adjacent duplicates. The user... | PCEX | loops, while loop | |
| 50 | Time Converter | Construct a program that obtains minutes and remaining seconds from the input amount of time in seconds. For example, 500... | PCEX | operators, variables | |
| 51 | Finding Adjacent Consecutive Numbers in a Sequence of Integers | Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... | PCEX | while loop | |
| 52 | Finding Adjacent Numbers in Ascending Order in a Sequence of Numbers | Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... | PCEX | while loop | |
| 53 | Comparing Adjacent Numbers in a Sequence of Numbers (Case 2) | Construct a program that checks whether a sequence of integers, entered one at a time, contains adjacent integers that are... | PCEX | while loop | |
| 54 | Comparing Adjacent Numbers in a Sequence of Numbers (Case 3) | Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in... | PCEX | while loop | |
| 55 | 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 |
| 56 | 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 |
| 57 | 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 |
| 58 | Concatenate elements backwards | Code Completion | Your task is to concatenate all elements in a linked list of strings backwards, starting at the end of the... | CodeCheck | Linear Data Structures |
| 59 | Reversing the lines in a file | Code Completion | Your task is to read a file containing lines of text, and to write another file that contains these lines... | CodeCheck | Input and Output |
| 60 | Count Sevens | Code Completion | Your task is to write a method countSevens that counts the number of digits equal to 7 in a given... | CodeCheck | Loops |
| 61 | Number guesser | Code Completion | Your task is to implement a number guesser that works on the principle of a binary search. In each step,... | CodeCheck | Sorting and Searching |
| 62 | Recursive Binary Search | Construct a function that uses recursive binary search to find if a specific value is in a list (known as... | PCEX | recursion, search, search algorithms, sorting | |
| 63 | Recursive Binary Search Challenge | Construct a function that uses recursive binary search to find if a specific value is in a list (known as... | PCEX | recursion, search algorithms | |
| 64 | 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 |
| 65 | Processing names | Code Completion | Your task is to read an input file containing a name on each line, and then write an output file... | CodeCheck | Input and Output |
| 66 | Converting temperatures | Code Completion | Your task is to read an input file containing a month name followed by the average maximum temperature for that... | CodeCheck | Input and Output |
| 67 | Regular Expression Exercise: Strings Containing aba | RegEx Writing Exercise | User writes an regular expression for the language of strings containing aba. | OpenDSA | Regular Expression |
| 68 | Regular Expression Exercise: Strings Containing bba in an Even Position | RegEx Writing Exercise | User writes an regular expression for the langugae of strings containing bba in an even position. | OpenDSA | Regular Expression |
| 69 | Regular Expression Exercise: Strings Containing No aa | RegEx Writing Exercise | User writes an regular expression for the langugae of strings containing no occurance of aa. | OpenDSA | Regular Expression |
| 70 | Regular Expression Exercise: Strings Containing One bbb | RegEx Writing Exercise | User writes an regular expression for the langugae of strings containing exactly one instance of bbb. | OpenDSA | Regular Expression |
| 71 | Given integers a and b, return a list containing a, a + 1, a + 2, . | Code Completion | Given integers a and b, return a list containing a, a + 1, a + 2, ..., b. | CodeCheck | Lists - Simple Exercises, Filling |
| 72 | Given integers a and b, return a list containing all even numbers that are at least a and at most b. | Code Completion | Given integers a and b, return a list containing all even numbers that are at least a and at most... | CodeCheck | Lists - Simple Exercises, Filling |
| 73 | Given an integer n, return a list containing 1 2 2 3 3 3 4 4 4 4 . | Code Completion | Given an integer n, return a list containing 1 2 2 3 3 3 4 4 4 4 ... and... | CodeCheck | Lists - Simple Exercises, Filling |
| 74 | Given integers a and b, fill an array containing all even numbers that are at least a and at most b. | Code Completion | Given integers a and b, fill an array containing all even numbers that are at least a and at most... | CodeCheck | Arrays - Simple Exercises, Filling |
| 75 | Given an integer n, return a list of length n containing 1 -1 1 -1 . | Code Completion | Given an integer n, return a list of length n containing 1 -1 1 -1 ... | CodeCheck | Lists - Simple Exercises, Filling |
| 76 | Given integers n and k, return a list of length n containing 0 1 2 . | Code Completion | Given integers n and k, return a list of length n containing 0 1 2 ... k-1 0 1 2... | CodeCheck | Lists - Simple Exercises, Filling |
| 77 | Given a list of strings and a string s, return the average length of all strings containing s. | Code Completion | Given a list of strings and a string s, return the average length of all strings containing s. | CodeCheck | Lists - Simple Exercises, Sums, Averages, Products |
| 78 | Given a list of integers, return a list of length 2 containing the first and last element, in sorted order. | Code Completion | Given a list of integers, return a list of length 2 containing the first and last element, in sorted order. | CodeCheck | Lists - Simple Exercises, Two Answers |
| 79 | Given a list of integers, return a list of length 2 containing the minimum and the maximum. | Code Completion | Given a list of integers, return a list of length 2 containing the minimum and the maximum. | CodeCheck | Lists - Simple Exercises, Two Answers |
| 80 | Given an array of strings and a string s, return the average length of all strings containing s. | Code Completion | Given an array of strings and a string s, return the average length of all strings containing s. | CodeCheck | Arrays - Simple Exercises, Sums, Averages, Products |
| 81 | Given an array of integers, return an array of length 2 containing the first and last element, in sorted order. | Code Completion | Given an array of integers, return an array of length 2 containing the first and last element, in sorted order. | CodeCheck | Arrays - Simple Exercises, Two Answers |
| 82 | Given an array of integers, return an array of length 2 containing the minimum and the maximum. | Code Completion | Given an array of integers, return an array of length 2 containing the minimum and the maximum. | CodeCheck | Arrays - Simple Exercises, Two Answers |
| 83 | Given a list of integers, return a list of lists of length 2, containing each unique element together with its frequency. | Code Completion | Given a list of integers, return a list of lists of length 2, containing each unique element together with its... | CodeCheck | Lists - Simple Exercises, Double Loops |
| 84 | Given an array of integers, return an array of arrays of length 2, containing each unique element together with its frequency. | Code Completion | Given an array of integers, return an array of arrays of length 2, containing each unique element together with its... | CodeCheck | Arrays - Simple Exercises, Double Loops |
| 85 | Regular Expression Exercise: Strings of Multiples of 3 a's | RegEx Writing Exercise | User writes an regular expression for the language of strings that contain a multiple of 3 a's. | OpenDSA | Regular Expression |
| 86 | A recursive squid (square in diamond) | Code Completion | A recursive squid is a square in a diamond containing another squid. | CodeCheck | Recursion |
| 87 | Swap first and last name | Code Completion | Write a method getLastFirst whose parameter is a string containing a name such as "Harry Smith" and that returns a... | CodeCheck | Fundamental Data Types |
| 88 | DFA Exercise: Length a Multiple of 3 with No aab | Automata Construction Exercise | User creates a DFA that recognizes strings with length a multiple of 3 and containing no instance of aab. | OpenDSA | Context-Free Grammar |
| 89 | The Class for Representing a Bank Account (Case 1) | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, objects | |
| 90 | The Class for Representing a Bank Account (Case 2) | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, objects | |
| 91 | The Class for Representing a Loan (Case 1) | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, objects | |
| 92 | The Class for Representing a Loan (Case 2) | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, objects | |
| 93 | The Class for Representing a Point in the Euclidean Plane (Case 1) | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | ||
| 94 | The Class for Representing a Point in the Euclidean Plane (Case 2) | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | classes, objects | |
| 95 | The Class for Representing a TV (Case 1) | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, objects | |
| 96 | The Class for Representing a TV (Case 2) | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, objects | |
| 97 | Letter frequency | Construct a function which counts the frequency of each character in the string given as a parameter and returns a... | jsParsons | dictionaries | |
| 98 | Doubly Linked List | Create the necessary classes for a Doubly Linked List, containing the method insert_at_start(data) to add a new item to the... | PCEX | doubly linked list, linked list | |
| 99 | Singly Linked List | Create the necessary classes for a Singly Linked List, containing the method append(item) to add a new item to the... | PCEX | linked list | |
| 100 | Doubly Linked List Challenge | Create the necessary classes for a Doubly Linked List, containing the method insert_at_start(data) to add a new item to the... | PCEX | ||
| 101 | Singly Linked List Challenge | Create the necessary classes for a Singly Linked List, containing the method add(item) to add a new item to the... | PCEX | ||
| 102 | The Class for Representing a Bank Account | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, object, objects | |
| 103 | The Class for Representing a Loan | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, object, objects | |
| 104 | The Class for Representing a Point in the Euclidean Plane | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | classes, object, objects | |
| 105 | The Class for Representing a TV | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, objects | |
| 106 | The Class for Representing a Bank Account | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, data structures, objects, stacks | |
| 107 | The Class for Representing a Loan | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, objects | |
| 108 | The Class for Representing a Point in the Euclidean Plane | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | classes, data structures, objects, stacks | |
| 109 | The Class for Representing a TV | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, data structures, objects, stacks | |
| 110 | The Class for Representing a Bank Account (Case 2) | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, objects | |
| 111 | The Class for Representing a Loan (Case 2) | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, objects | |
| 112 | The Class for Representing a Point in the Euclidean Plane (Case 2) | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | classes, constructors, exceptions, file i/o, inheritance, methods, objects, overloading | |
| 113 | The Class for Representing a TV (Case 2) | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, objects | |
| 114 | The Class for Representing a Bank Account | Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s... | PCEX | classes, objects | |
| 115 | The Class for Representing a Loan | Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the... | PCEX | classes, objects | |
| 116 | The Class for Representing a Point in the Euclidean Plane | Construct a class that represents a point in the Euclidean plane. The class should contain data that represents the point’s... | PCEX | classes, objects | |
| 117 | The Class for Representing a TV | Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or... | PCEX | classes, objects | |
| 118 | Uppercase international letters | Code Completion | Your task is to find out what happens when you call the toUpperCase method on strings that contain accented characters... | CodeCheck | Objects |
| 119 | Popular boys and girls names | Code Completion | The web sites http://www.census.gov/genealogy/names/dist.male.first and http://www.census.gov/genealogy/names/dist.female.first contain baby names sorted by popularity. The format is very simple: name, frequency, cumulative... | CodeCheck | Networking |
| 120 | An enum type describing chemical elements | Code Completion | Enumerated types in Java are quite powerful, in that they can contain methods and instance variables. An enum type class... | CodeCheck | Inheritance |
| 121 | Generic replicate method | Code Completion | Implement the generic replicate method. It should return a list containing multiple copies of the given value. | CodeCheck | Generic Types |
| 122 | Binary search | Binary Search operates by dividing an array in half, and then determining whether or not the target value would be... | PCEX | binary search, recursion, search, search algorithms, sorting, trees | |
| 123 | Binary search Challenge | Binary Search operates by dividing an array in half, and then determining whether or not the target value would be... | PCEX | search algorithms | |
| 124 | Oracle server | Code Completion | Your task is to provide an oracle server at port 7777 on the local host. The oracle protocol is very... | CodeCheck | Networking |
| 125 | Oracle client | Code Completion | Your task is to connect to the oracle server at port 7777 on the local host. The oracle protocol is... | CodeCheck | Networking |
| 126 | Map word lengths to words | Code Completion | Given an array of strings, create a tree map whose keys are the string lengths and whose values are the... | CodeCheck | Tree Structures |
| 127 | Rotate linked list by manipulating nodes | Code Completion | Your task is to add a rotate method to the LinkedList class of Section 15.2 that rotates the elements of... | CodeCheck | Linear Data Structures |
| 128 | Swap adjacent characters in a RandomAccessFile | Code Completion | Your task is to swap adjacent letters in a RandomAccessFile. Simply read two bytes, back up by two bytes, and... | CodeCheck | Advanced Input and Output |