Showing 0–0 of 0 results
# Exercise Title Features Description Platform Keywords
1 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
2 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
3 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
4 Given two two-dimensional arrays with the same number of rows, return a list that places them side by side. Code Completion Given two two-dimensional arrays with the same number of rows, return a list that places them side by side. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
5 Given a two-dimensional array of integers, return the average of the four corner elements. Code Completion Given a two-dimensional array of integers, return the average of the four corner elements. CodeCheck Two-Dimensional Arrays, No Loops
6 Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or the average of the two or four middle elements of one or both is even. Code Completion Given a two-dimensional array of integers, return the middle element if both the row and column lenghts are odd, or... CodeCheck Two-Dimensional Arrays, No Loops
7 Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border in the given compass direction, or the average of the two middle ones if the border length is even. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, give the middle element along the border... CodeCheck Two-Dimensional Arrays, No Loops
8 Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements in the given compass direction. Code Completion Given a two-dimensional array of integers and a string NW, NW, SW, SE, return the sum of the four elements... CodeCheck Two-Dimensional Arrays, No Loops
9 Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor in that direction, or 0 if it doesn't exist. Code Completion Given a two-dimensional array of integers, row/column indexes r, c, and a string N E S W, return the neighbor... CodeCheck Two-Dimensional Arrays, No Loops
10 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
11 Given a two-dimensional array of integers, return the number of distinct elements. Code Completion Given a two-dimensional array of integers, return the number of distinct elements. CodeCheck Two-Dimensional Arrays, Complex Loops
12 Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. Code Completion Given a two-dimensional array of integers, remove any adjacent duplicate rows by filling the duplicates with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
13 Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. Code Completion Given a two-dimensional array of integers, return the index of the first row that is entirely filled with zeroes. CodeCheck Two-Dimensional Arrays, Complex Loops
14 Given a two-dimensional array of integers, return the top left corner of the first subarray of the form <pre>0 0 0 0</pre> Code Completion Given a two-dimensional array of integers, return the top left corner of the first subarray of the form
0 0...
                    
                
CodeCheck Two-Dimensional Arrays, Complex Loops
15 Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list of length 2. Code Completion Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as a list... CodeCheck Two-Dimensional Arrays, Complex Loops
16 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
17 Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the largest neighbor in the compass directions N... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
18 Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as a string N E S W NE NW SE SW. Code Completion Given a two-dimensional array of integers and row/column positions r, c, return the compass direction of the largest neighbor as... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
19 Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its neighbors in the compass directions N E S W NE NW SE SW with x. Code Completion Given a two-dimensional array of integers, row/column positions r, c, and a value x, fill the given element and its... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
20 Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is a[r][c], and whose neighbors are copied from the original. Code Completion Given a two-dimensional array a of integers and row/column positions r, c, return a 3x3 array whose middle element is... CodeCheck Two-Dimensional Arrays, Looping over Neighbors
21 Given a two-dimensional array of integers, compute the sum of all positive elements. Code Completion Given a two-dimensional array of integers, compute the sum of all positive elements. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
22 Given a two-dimensional array of integers, return the largest element in the array. Code Completion Given a two-dimensional array of integers, return the largest element in the array. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
23 Given a two-dimensional array of integers, return the position of the smallest element in the array as a list of length 2. Code Completion Given a two-dimensional array of integers, return the position of the smallest element in the array as a list of... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
24 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
25 Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. Code Completion Given a two-dimensional array of integers, compute the sum of all elements that are not one of the borders. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
26 Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the diagonals. Code Completion Given a two-dimensional square array of integers, compute the sum of all elements that are not on one of the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
27 Given a two-dimensional array of integers, replace all negative elements with zero. Code Completion Given a two-dimensional array of integers, replace all negative elements with zero. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
28 Given a two-dimensional array of integers, reverse all rows. Code Completion Given a two-dimensional array of integers, reverse all rows. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
29 Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the leftmost column. Code Completion Given a two-dimensional array of integers, shift each row by one to the right and put a 0 at the... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
30 Given a two-dimensional array of integers, return a list of the largest element in each row. Code Completion Given a two-dimensional array of integers, return a list of the largest element in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
31 Given a two-dimensional array of integers, return a list of the number of negative elements in each row. Code Completion Given a two-dimensional array of integers, return a list of the number of negative elements in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
32 Given a two-dimensional array of integers and a row index, return the largest element in that row. Code Completion Given a two-dimensional array of integers and a row index, return the largest element in that row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
33 Given a two-dimensional array of integers and a row index r, reverse the given row. Code Completion Given a two-dimensional array of integers and a row index r, reverse the given row. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
34 Given a two-dimensional square array of integers, reverse both diagonals. Code Completion Given a two-dimensional square array of integers, reverse both diagonals. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
35 Given a two-dimensional array of integers and a column index, return the smallest element in that column. Code Completion Given a two-dimensional array of integers and a column index, return the smallest element in that column. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
36 Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements in that row or column. Code Completion Given a two-dimensional array of integers, an index, and a string R or C, return the sum of the elements... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
37 Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all elements in the given row and column. Code Completion Given a two-dimensional array of integers, a row index r, and a column index c, return the sum of all... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
38 Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of the border in the given compass direction. Code Completion Given a two-dimensional array of integers and a string N, E, S, W, return the sum of all elements of... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
39 Given a two-dimensional array of integers, return the sum of all elements along the north and south border. Code Completion Given a two-dimensional array of integers, return the sum of all elements along the north and south border. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
40 Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders but not the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
41 Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. Code Completion Given a two-dimensional array of integers, return the sum of all elements along all borders including the corners. CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
42 Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Code Completion Given a two-dimensional square array of integers, return the sum of the elements along both diagonals. Make sure not to... CodeCheck Two-Dimensional Arrays, Loops Along a Row or Column
43 Given a two-dimensional array a, return a list whose [i][j] element is the average of the neighbors of a[i][j] in the N, E, S, W direction. Code Completion Given a two-dimensional array a, return a list whose [i][j] element is the average of the neighbors of a[i][j] in... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
44 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
45 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Two-Dimensional Arrays, No Loops
46 Repeat the previous exercise with subarrays that are not necessarily square. Code Completion Repeat the previous exercise with subarrays that are not necessarily square. CodeCheck Two-Dimensional Arrays, Complex Loops
47 Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders are zero and whose interior is the original array. Code Completion Given an r x c array of integers, return an (r + 2) x (c + 2) array whose borders... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
48 Given an integer n, produce the array <pre>0 1 2 3 . Code Completion Given an integer n, produce the array
0 1 2 3 ... n 1 2 3 4 ... 0 ......
                    
                
CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
49 Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. Code Completion Repeat the preceding exercise where the array dimensions need not match, filling positions that exist in neither array with 0. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
50 Repeat where the row lengths don't have to match. Code Completion Repeat where the row lengths don't have to match. Fill the shorter array with zeroes. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
51 (Two-dim arrays) Matrix multiply - CSEdPad This program demonstrates the multiplication of two matrices using a two-dimensional array AnnEx 2d arrays
52 Updating Two-Dimensional Array (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX
53 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX
54 Updating Two-Dimensional Array (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX
55 Updating Two-Dimensional Array (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, sets the... PCEX
56 Updating Two-Dimensional Array (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, sets the... PCEX
57 Updating Two-Dimensional Array (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX
58 csedpad.14.TwoDimensionalArrays.no_topic_1 This program generates a tictac toe board by using a two dimensional array. PCEX
59 csedpad.14.TwoDimensionalArrays.no_topic PCEX Set of activities for csedpad.14.TwoDimensionalArrays.no_topic PCEX
60 csedpad.14.TwoDimensionalArrays.no_topic This program calculates the average performance of 2 students by combining their performance in quiz, homework and discussion. PCEX
61 csedpad.14.TwoDimensionalArrays.no_topic_1 PCEX Set of activities for csedpad.14.TwoDimensionalArrays.no_topic_1 PCEX
62 csedpad.14.TwoDimensionalArrays.no_topic_1 This program stores the ratings for 4 different movies and finds the average rating for the third movie. PCEX
63 csedpad.14.TwoDimensionalArrays.no_topic_1 this program calculates the total cost of different items by multiplying unit cost of an item with count of items PCEX
64 csedpad.14.TwoDimensionalArrays.twodimensionalarrays PCEX Set of activities for csedpad.14.TwoDimensionalArrays.twodimensionalarrays PCEX
65 csedpad.14.TwoDimensionalArrays.twodimensionalarrays Generate a 5 x 5 Bingo board and initialize it with random numbers from 1 to 75. The board will... PCEX
66 Two-dimensional List 1 Python PredictingFinalResult for demonstrating Two-dimensional List 1 QuizPET 2d list, list
67 Two-dimensional List 2 Python PredictingFinalResult for demonstrating Two-dimensional List 2 QuizPET 2d list, algorithm analysis, list
68 Two-dimensional List 3 Python PredictingFinalResult for demonstrating Two-dimensional List 3 QuizPET 2d list, list
69 Two-dimensional List 4 Python PredictingFinalResult for demonstrating Two-dimensional List 4 QuizPET 2d list, algorithm analysis, classes, data structures, list, stacks
70 Two-dimensional List Construct a program that prints out [[0, 1, 2], [3, 4, 5], [6, 7, 99]] jsParsons 2d list, classes, data structures, list, stacks
71 Updating Two-Dimensional List (Case 1) Construct a program that initializes a 3x4 two-dimensional matrix that has the numbers 1 through 12 for entries, updates the... PCEX
72 Updating Two-Dimensional List (Case 2) Construct a program that initializes a 3x3 two-dimensional matrix that has the numbers 1 through 9 for entries, updates the... PCEX
73 Updating Two-Dimensional List (Case 3) Construct a program that initializes a 2x4 two-dimensional matrix that has multiples of 10 from 10 to 80 for entries,... PCEX
74 Turing Machine Extensions Frameset Presentation Slideshow presenting various potential extensions to Turing machines, such as two-dimensional tapes, multiple heads, and non-determinism. Includes proofs that these... OpenDSA Turing Machine
75 Point Class Hierarchy (Case 1) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX
76 Point Class Hierarchy (Case 2) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX
77 Point Class Hierarchy (Case 1) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX
78 Point Class Hierarchy (Case 2) Suppose we have a class Point and we want to extend it to produce class Point3D. The class Point has... PCEX
79 two simple functions Python PredictingFinalResult for demonstrating two simple functions QuizPET algorithm analysis, functions
80 two car objects Python PredictingFinalResult for demonstrating two car objects QuizPET classes, data structures, objects, stacks
81 Two-level linear index Slideshow Algorithm Analysis Presentation Slideshow showing a two-level linear index for variable length records stored on disk. OpenDSA Linear Indexing
82 combine two lists Python PredictingFinalResult for demonstrating combine two lists QuizPET list
83 Given two integers x and y, print their sum, but if it is more than 100 or less than 0, print "out of range". Code Completion Given two integers x and y, print their sum, but if it is more than 100 or less than 0,... CodeCheck Branches, Branches Without Functions
84 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
85 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
86 Given two lists a and b, remove all elements of b from a. Code Completion Given two lists a and b, remove all elements of b from a. CodeCheck Lists - Simple Exercises, Double Loops
87 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
88 Given two lists of integers of the same length, return the first position where their elements are the same. Code Completion Given two lists of integers of the same length, return the first position where their elements are the same. CodeCheck Lists - Simple Exercises, Finding Elements
89 Given two lists of integers of the same length, return the first position where their elements differ. Code Completion Given two lists of integers of the same length, return the first position where their elements differ. CodeCheck Lists - Simple Exercises, Finding Elements
90 Given two numbers, return true if they both have the same sign. Code Completion Given two numbers, return true if they both have the same sign. CodeCheck Branches, Branches with Functions
91 Given two numbers, return their distance if it less than 10, or 10 otherwise. Code Completion Given two numbers, return their distance if it less than 10, or 10 otherwise. CodeCheck Branches, Branches with Functions
92 Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. Code Completion Given two strings s and t, return the first position where their characters differ, or -1 if they are identical. CodeCheck Strings, Comparing Strings
93 Given two strings s and t, return the first position where their characters are the same, or -1 if there is no such position. Code Completion Given two strings s and t, return the first position where their characters are the same, or -1 if there... CodeCheck Strings, Comparing Strings
94 q_py_add_two_lists1_es Python PredictingFinalResult for demonstrating q_py_add_two_lists1_es QuizPET
95 format with two arguments Python PredictingFinalResult for demonstrating format with two arguments QuizPET string formatting, strings
96 Printing Common Elements in Two Arrays Construct a program that has a method that receives two arrays and prints the values in the 2nd array that... PCEX
97 Printing Common Elements in Two Arrays Construct a program that has a method that receives two arrays and prints the values in the 2nd array that... PCEX
98 for_loops.j_for_two PCEX Set of activities for for_loops.j_for_two PCEX
99 for_loops.j_for_two PCEX Set of activities for for_loops.j_for_two PCEX
100 py_concat_char_two_str PCEX Set of activities for py_concat_char_two_str PCEX
101 Concatenating Characters of Two Strings (Case 1) Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX
102 Concatenating Characters of Two Strings (Case 2) Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX
103 py_concat_char_two_str_llm PCEX Set of activities for py_concat_char_two_str_llm PCEX
104 Concatenating Characters of Two Strings (Case 1) Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX
105 Concatenating Characters of Two Strings (Case 2). Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX
106 py_concat_char_two_str_llm_es PCEX Set of activities for py_concat_char_two_str_llm_es PCEX
107 py_range_two PCEX Set of activities for py_range_two PCEX
108 Printing Common Elements in Two Lists Construct a program that has a function that receives two lists and prints the values in the 2nd list that... PCEX
109 Printing Common Elements in Two Lists Construct a program that has a function that receives two lists and prints the values in the 2nd list that... PCEX
110 Sum of all two-digit even numbers This example includes a method calculateSumOfEvenNumbers within a class named EvenNumberSumCalculator. The method iterates through all two-digit numbers, checks if... PCEX
111 Given a string and two characters x and y (as strings of length 1), interchange all occurrences of x and y. Code Completion Given a string and two characters x and y (as strings of length 1), interchange all occurrences of x and... CodeCheck Strings, Other String Operations
112 PR Quadtree Two Points Visualization Algorithm Visualization Algorithm Visualization for the PR Quadtree with up to two points per node. OpenDSA PR Quadtree
113 Recursive Code Tracing Exercise: Two Recursive Calls Tracing Exercise Recursive Code Tracing Exercise collection focusing on functions with two recursive calls. OpenDSA Recursion
114 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
115 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
116 Checks whether the sum of two integers are equal as the third integer Construct a function which determines whether one of the paraters is the sum of the two other parameters. jsParsons
117 Checks whether the sum of two integers are equal as the third integer Construct a program which determines whether the value of one of variables x, y, and z is the sum of... jsParsons
118 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
119 Write a function that checks whether two points with coordinates x1, y1 and x2, y2 are in the same quadrant. Code Completion Write a function that checks whether two points with coordinates x1, y1 and x2, y2 are in the same quadrant. CodeCheck Branches, Branches with Functions
120 Given a list of integers and two values a and b, return the sum of all elements that are at least a and at most b. Code Completion Given a list of integers and two values a and b, return the sum of all elements that are at... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
121 Programmed Instruction: Induction Proof For Two Coloring Programmed Instruction Programmed Instruction Frameset examples of induction proof for two-coloring the 2D plane. OpenDSA Proof by Induction
122 Rotating the Array Values to the Left by Two Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX
123 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
124 Rotating the Array Values to the Left by Two Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX
125 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
126 Rotating the List Values to the Left by Two Position Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX
127 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
128 Rotating the List Values to the Left by Two Position Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX
129 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
130 Given a list of integers, swap the first two and the last two elements. Code Completion Given a list of integers, swap the first two and the last two elements. CodeCheck Lists - Simple Exercises, No loops
131 Given a list of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given a list of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Lists - Simple Exercises, No loops
132 Given a list of elements, find the shortest distance between two consecutive elements. Code Completion Given a list of elements, find the shortest distance between two consecutive elements. CodeCheck Lists - Simple Exercises, Maximum and Minimum
133 Given a string, return the string with the middle two characters removed if it has even length, and the middle character removed if it has odd length. Code Completion Given a string, return the string with the middle two characters removed if it has even length, and the middle... CodeCheck Strings, No Loops
134 Given a string, return the string with the middle two characters swapped if it has even length, and the middle three characters swapped if it has odd length. Code Completion Given a string, return the string with the middle two characters swapped if it has even length, and the middle... CodeCheck Strings, No Loops
135 Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of a and b. Code Completion Given a string in which words are separated by spaces, and two words a and b, interchange all occurrences of... CodeCheck Strings, Words
136 Given a list of integers, find the largest sum of two different elements in the list. Code Completion Given a list of integers, find the largest sum of two different elements in the list. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
137 Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or the two middle elements if the length is even). Code Completion Given a list of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Lists - Simple Exercises, No loops
138 Given three numbers x, y, z, determine if one of them is the sum of the two others, and then print out the equation. Code Completion Given three numbers x, y, z, determine if one of them is the sum of the two others, and then... CodeCheck Branches, Branches Without Functions
139 Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all three are the same. Code Completion Given three numbers x, y, z, print out how whether they are all distinct, two are the same, or all... CodeCheck Branches, Branches Without Functions
140 Given four numbers a, b, c, d, return true if exactly two of them are the same. Code Completion Given four numbers a, b, c, d, return true if exactly two of them are the same. CodeCheck Branches, Branches with Functions
141 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
142 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
143 Given a list of integers, return a list of length 2, with the number of positive and the number of negative elements in the list. Code Completion Given a list of integers, return a list of length 2, with the number of positive and the number of... CodeCheck Lists - Simple Exercises, Two Answers
144 Given a list of integers, return a list of length 2, each being a list. Code Completion Given a list of integers, return a list of length 2, each being a list. The first one holds the... CodeCheck Lists - Simple Exercises, Two Answers
145 Given a list of integers, return a list of length 2, each being a list. Code Completion Given a list of integers, return a list of length 2, each being a list. The first one holds the... CodeCheck Lists - Simple Exercises, Two Answers
146 csedpad.04.StringClass.no_topic_1 Given two names of two places, the program checks if they are equal in length. PCEX
147 Person and Employee Inheritance Construct two classes: one represents a Person and another one represents an Employee that should be defined as Person's child... PCEX
148 Person and Employee Inheritance Information Construct two classes: one represents a Person and another one represents an Employee that should be defined as Person's child... PCEX
149 (Exception Handling) Arithmetic - CSEdPad Given two numbers, this program checks what happens when a number is divided by zero. AnnEx exception handling
150 csedpad.06.If.if Given height of two players, this program finds if one player is taller than other or not. PCEX
151 csedpad.17.ClassesObjects.ClassExample1.classesandobjects This program creates two objects of BagDetail which will get the total number of balls from the bags. PCEX
152 (LogicalOperators) Compare numbers - CSEdPad This program check whether two numbers are equal or not AnnEx logical operators
153 Pythagorean Theorem (Case 1) Construct a program that accepts two input values from the user, one for each side of a right-angle triangle. The... PCEX
154 Pythagorean Theorem (Case 2) Suppose that the user provides two input values for a right-angle triangle. The first input is for the length of... PCEX
155 Pythagorean Theorem (Case 1) Construct a program that accepts two input values from the user, one for each side of a right-angle triangle. The... PCEX
156 Pythagorean Theorem (Case 2) Suppose that the user provides two input values for a right-angle triangle. The first input is for the length of... PCEX
157 Pythagorean Theorem (Case 1) Construct a program that accepts two input values from the user, one for each side of a right-angle triangle. The... PCEX
158 Pythagorean Theorem (Case 2) Suppose that the user provides two input values for a right-angle triangle. The first input is for the length of... PCEX
159 Determining whether the result of multiplication is forbidden Construct a program that multiplies the two integers that the user enters. However, multiplication results that are less than 0... PCEX
160 Practicing manipulating variables and checking types Construct a program that calculate two variables' modulus and check the type of the modulus jsParsons data types
161 Construct a program that creates a Stack Structure Construct a program that creates two functions in a Stack Structure. The first one is "push" function and the second... jsParsons classes, data structures, stack, stacks
162 Try adding Construct a function that adds two numbers together and handles non-numeric input. jsParsons exception handling, exceptions
163 Merging Slideshow Algorithm Visualization Slideshow showing the details of merging two sorted runs in Mergesort. OpenDSA Mergesort
164 Printing the Total Number of Times Elements of One Array Appear in Another Array Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX
165 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
166 Printing the Total Number of Times Elements of One Array Appear in Another Array Construct a program that has a method that receives two arrays and prints the total number of times the elements... PCEX
167 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
168 csedpad.07.IfElse.no_topic_1 This program assigns a jersey to one of two teams, teamE if jersey number is even else to teamO PCEX
169 Bills statistics Write a program that combines the content of two files and saves it to a third file. The first file... PCEX
170 Use of Plain Old Java Object Creates a Java class named Student that represents a student with two properties: name and age. This class demonstrates basic... PCEX
171 Plain Old Java Object Class named Book that represents a book with two properties: title (a String) and numberOfPages (an int). PCEX
172 Printing the Total Number of Times Elements of One List Appear in Another List Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX
173 Creating a List that Contains the Numbers of Times Each Element of One List Appears in Another List Construct a program that has a function that receives two lists and creates a list that contains the number of... PCEX
174 Printing the Total Number of Times Elements of One List Appear in Another List Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX
175 Creating a List that Contains the Numbers of Times Each Element of One List Appears in Another List. Construct a program that has a function that receives two lists and creates a list that contains the number of... PCEX
176 String With Escape Characters (Case 2) Construct a program that prints the following output:\n""Two Double Quotes""\n Slashes \//\nHow '"confounding' "\" it is! PCEX
177 String With Escape Characters (Case 2) Construct a program that prints the following output:\n""Two Double Quotes""\n Slashes \//\nHow '"confounding' "\" it is! PCEX
178 (Methods) Adding numbers - CSEdPad The program will create a method that will add two given exam numbers of a student. The program will declare... AnnEx methods
179 Calculate Function Define a function that returns the second value multiplied by two and added by the first value. The program should... jsParsons functions
180 Greatest Common Factor Construct a program that recursively finds and returns the great common factor between of two integers. PCEX
181 Greatest Common Factor Construct a program that recursively finds and returns the great common factor between of two integers. This is a simple... PCEX
182 Calculating power Construct a function which calculates the power of a number. The function takes two integers as parameters (the base number... jsParsons
183 Mergsort Implementation Slideshow: Final Pass Algorithm Visualization Slideshow showing the details of implementing Mergesort using an array. This is the first of a two-part series, showing the... OpenDSA Mergesort
184 Mergsort Implementation Slideshow: Optimized Final Pass Algorithm Visualization Slideshow showing the details of implementing Mergesort using an array. This is the second of a two-part series, showing an... OpenDSA Mergesort
185 csedpad.05.LogicalOperators.no_topic_1 Given the age of 3 individuals, this program compares their ages in order to check whether any two individuals are... PCEX
186 My books The book is described by identifier, title, authors, publisher, unit price and year of publication. There cannot be two books... PCEX
187 Challenge: growing a dog Using static methods to create a dog of a specified size. Passing reference variables as parameters to method calls. Given... PCEX
188 Repeating Characters of a String (Case 1) Construct a program that has a function that receives a string and creates a new string that has each character... PCEX
189 Repeating Characters of a String (Case 2) Construct a program that has a function that receives a string and creates a new string that has every other... PCEX
190 Creating a Dictionary of Student-Scores Pairs (Case 1) Assume we have a list of students and a list of their corresponding test scores. Construct a program that has... PCEX
191 Creating a Dictionary of Student-Scores Pairs (Case 2) Assume we have a list of students and a list of their corresponding test scores. Construct a program that has... PCEX
192 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX
193 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
194 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX
195 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
196 Calculating the Winning Percentage of a Sports Team (Case 2) Construct a program that receives from the user the number of games in a tournament and the number of the... PCEX
197 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
198 On a chessboard, positions are marked with a letter between a and h for the column and a number between 1 and 8 for the row. Code Completion On a chessboard, positions are marked with a letter between a and h for the column and a number between... CodeCheck Branches, Branches with Functions
199 Given numbers x, y, and target, return whichever of x and y is closer to the target. Code Completion Given numbers x, y, and target, return whichever of x and y is closer to the target. If they have... CodeCheck Branches, Branches with Functions
200 Linear Indexing Proficiency Exercise Tracing Exercise Interactive proficiency exercise for linear indexing. User clicks on array elements to indicate how the search process progresses from through... OpenDSA Linear Indexing
201 Regular Expressions Equivalent to NFA: Part 3: Concatenate Programmed Instruction Programmed Instruction Frameset presenting Part 3 of 4 parts of a proof of equivalence of Regular Expressions and NFAs. Concatenating... OpenDSA Regular Expression, Non-Deterministic Finite Automata
202 Regular Expressions Equivalent to NFA: Part 2: Or Programmed Instruction Programmed Instruction Frameset presenting Part 2 of 4 parts of a proof of equivalence of Regular Expressions and NFAs. Or'ing... OpenDSA Regular Expression, Non-Deterministic Finite Automata
203 Animal Class Hierarchy (Case 1) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX
204 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX
205 Animal Class Hierarchy (Case 1) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX
206 Animal Class Hierarchy (Case 2) Suppose we have a class Animal and we want to extend it to produce class Dog. An animal has a... PCEX
207 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
208 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
209 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
210 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