Showing 0–0 of 0 results
# Exercise Title Features Description Platform Keywords
1 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
2 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
3 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
4 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
5 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
6 Two-dimensional List 1 Python PredictingFinalResult for demonstrating Two-dimensional List 1 QuizPET 2d list, list
7 Two-dimensional List 2 Python PredictingFinalResult for demonstrating Two-dimensional List 2 QuizPET 2d list, algorithm analysis, list
8 Two-dimensional List 3 Python PredictingFinalResult for demonstrating Two-dimensional List 3 QuizPET 2d list, list
9 Two-dimensional List 4 Python PredictingFinalResult for demonstrating Two-dimensional List 4 QuizPET 2d list, algorithm analysis, classes, data structures, list, stacks
10 two simple functions Python PredictingFinalResult for demonstrating two simple functions QuizPET algorithm analysis, functions
11 two car objects Python PredictingFinalResult for demonstrating two car objects QuizPET classes, data structures, objects, stacks
12 (Two-dim arrays) Matrix multiply - CSEdPad This program demonstrates the multiplication of two matrices using a two-dimensional array AnnEx 2d arrays
13 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
14 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
15 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
16 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
17 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
18 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
19 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
20 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
21 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
22 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
23 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
24 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
25 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
26 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
27 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
28 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
29 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
30 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
31 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
32 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
33 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
34 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
35 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
36 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
37 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
38 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
39 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
40 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
41 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
42 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
43 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
44 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
45 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
46 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
47 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
48 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
49 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
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 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
58 combine two lists Python PredictingFinalResult for demonstrating combine two lists QuizPET list
59 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
60 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
61 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
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 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
70 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
71 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
72 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
73 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
74 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
75 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
76 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
77 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
78 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
79 q_py_add_two_lists1_es Python PredictingFinalResult for demonstrating q_py_add_two_lists1_es QuizPET
80 format with two arguments Python PredictingFinalResult for demonstrating format with two arguments QuizPET string formatting, strings
81 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
82 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
83 for_loops.j_for_two PCEX Set of activities for for_loops.j_for_two PCEX
84 for_loops.j_for_two PCEX Set of activities for for_loops.j_for_two PCEX
85 py_concat_char_two_str PCEX Set of activities for py_concat_char_two_str PCEX
86 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
87 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
88 py_concat_char_two_str_llm PCEX Set of activities for py_concat_char_two_str_llm PCEX
89 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
90 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
91 py_concat_char_two_str_llm_es PCEX Set of activities for py_concat_char_two_str_llm_es PCEX
92 py_range_two PCEX Set of activities for py_range_two PCEX
93 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
94 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
95 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
96 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
97 PR Quadtree Two Points Visualization Algorithm Visualization Algorithm Visualization for the PR Quadtree with up to two points per node. OpenDSA PR Quadtree
98 Recursive Code Tracing Exercise: Two Recursive Calls Tracing Exercise Recursive Code Tracing Exercise collection focusing on functions with two recursive calls. OpenDSA Recursion
99 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
100 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
101 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
102 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
103 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
104 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
105 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
106 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
107 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
108 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
109 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
110 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
111 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
112 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
113 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
114 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
115 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
116 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
117 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
118 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
119 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
120 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
121 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
122 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
123 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
124 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
125 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
126 Repeat with NW NE SW SE. Code Completion Repeat with NW NE SW SE. CodeCheck Two-Dimensional Arrays, No Loops
127 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
128 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
129 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
130 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
131 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
132 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
133 csedpad.04.StringClass.no_topic_1 Given two names of two places, the program checks if they are equal in length. PCEX
134 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
135 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
136 (Exception Handling) Arithmetic - CSEdPad Given two numbers, this program checks what happens when a number is divided by zero. AnnEx exception handling
137 csedpad.06.If.if Given height of two players, this program finds if one player is taller than other or not. PCEX
138 csedpad.17.ClassesObjects.ClassExample1.classesandobjects This program creates two objects of BagDetail which will get the total number of balls from the bags. PCEX
139 (LogicalOperators) Compare numbers - CSEdPad This program check whether two numbers are equal or not AnnEx logical operators
140 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
141 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
142 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
143 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
144 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
145 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
146 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
147 Practicing manipulating variables and checking types Construct a program that calculate two variables' modulus and check the type of the modulus jsParsons data types
148 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
149 Try adding Construct a function that adds two numbers together and handles non-numeric input. jsParsons exception handling, exceptions
150 Merging Slideshow Algorithm Visualization Slideshow showing the details of merging two sorted runs in Mergesort. OpenDSA Mergesort
151 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
152 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
153 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
154 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
155 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
156 csedpad.14.TwoDimensionalArrays.no_topic_1 This program generates a tictac toe board by using a two dimensional array. PCEX
157 Bills statistics Write a program that combines the content of two files and saves it to a third file. The first file... PCEX
158 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
159 Plain Old Java Object Class named Book that represents a book with two properties: title (a String) and numberOfPages (an int). PCEX
160 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
161 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
162 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
163 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
164 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
165 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
166 (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
167 Calculate Function Define a function that returns the second value multiplied by two and added by the first value. The program should... jsParsons functions
168 Greatest Common Factor Construct a program that recursively finds and returns the great common factor between of two integers. PCEX
169 Greatest Common Factor Construct a program that recursively finds and returns the great common factor between of two integers. This is a simple... PCEX
170 Calculating power Construct a function which calculates the power of a number. The function takes two integers as parameters (the base number... jsParsons
171 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
172 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
173 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
174 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
175 My books The book is described by identifier, title, authors, publisher, unit price and year of publication. There cannot be two books... PCEX
176 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
177 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
178 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
179 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
180 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
181 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
182 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
183 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
184 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
185 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
186 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
187 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
188 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
189 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
190 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
191 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
192 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
193 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
194 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
195 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
196 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
197 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
198 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
199 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
200 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
201 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
202 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
203 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