Showing 0-0 of 0 results
# Exercise Title Features Description Platform Keywords
1 Tracing Recursive Code: Towers of Hanoi Code Tracing Presentation Slideshow demonstrating code tracing the Towers of Hanoi problem. OpenDSA Recursion, Towers of Hanoi
2 Debug indexOf Free Coding Problem, code writing Coding Question CodeWorkout CS1114, array, Java, debug, index, of, for, loop, for-loop, code writing
3 Size of Variables C++ BehaviorExample for demonstrating Size of Variables AnnEx
4 Array of Char C++ BehaviorExample for demonstrating Array of Char AnnEx
5 Maximum of 2 Numbers Python BehaviorExample for demonstrating Maximum of 2 Numbers WebEx if-else statement
6 Table of Squares Python BehaviorExample for demonstrating Table of Squares WebEx while loop
7 Table of Squares (For Loop) Python BehaviorExample for demonstrating Table of Squares (For Loop) WebEx for loop
8 Output of an SLang2 Program Tracing Exercise Code trace for a recursive program in imperative language SLang2. OpenDSA Functional Programming
9 Semantics of SLang1 Question Question related to the semantics of the functional programming language SLang1. OpenDSA Functional Programming
10 Nth Root of Unity Review Questions Question, Battery Battery of self-assessment questions on the concept of the nth root of unity. OpenDSA Polynomial Multiplication, Fast Fourier Transform
11 Summation of the first N integers visualization Presentation Slideshow showing how to calculate the closed form for the summation of the first N integers. OpenDSA Summation
12 Reduction of Circuit SAT to SAT Slideshow Presentation Slideshow demonstrating a reduction from an instance of the Circuit Satisfiability problem to an instance of the CNF Satisfiability problem. OpenDSA Reduction, Satisfiability Problem
13 Reduction of Clique to Independent Set Slideshow Presentation Slideshow demonstrating a reduction from an instance of the Clique problem to an instance of the Independent Set problem. OpenDSA Reduction, Clique Problem, Independent Set Problem
14 Reduction of Hamiltonian Cycle to Traveling Salesman Slideshow Presentation Slideshow demonstrating a reduction from an instance of the Hamiltonian Cycle problem to an instance of the Traveling Salesman problem. OpenDSA Reduction, Clique Problem, Independent Set Problem
15 Reduction of Independent Set to Vertex Cover Slideshow Presentation Slideshow demonstrating a reduction from an instance of the Independent Set problem to an instance of the Vertex Cover problem. OpenDSA Reduction, Independent Set Problem, Vertex Cover Problem
16 Reduction of Pairing to Sorting Presentation Slideshow showing a reduction of Pairing to Sorting. This demonstrates that the upper bound for Pairing is the same as... OpenDSA Reduction
17 Reduction of Sorting to Pairing Presentation Slideshow showing a reduction of Sorting to Pairing. This demonstrates that the lower bound for Pairing is the same as... OpenDSA Reduction
18 Reduction of 3-SAT to Clique Slideshow Presentation Slideshow demonstrating a reduction from an instance of the 3-Satisfiability problem to an instance of the Clique problem. OpenDSA Reduction, Satisfiability Problem, Clique Problem
19 Reduction of 3-SAT to Hamiltonian Cycle Slideshow Presentation Slideshow demonstrating a reduction from an instance of the 3-Satisfiability problem to an instance of the Hamiltonian Cycle problem. OpenDSA Reduction, Satisfiability Problem, Hamiltonian Cycle Problem
20 Review of the Concept of Closure Properties Programmed Instruction Programmed Instruction Frameset reviewing the concept of closure properties, in the context of regular languages. OpenDSA Regular Language, Closure Property
21 Composition of Turing Machines Programmed Instruction Slideshow the formal conepts that support composition of Turing machines, which is a necessary step to building more complicated machines. OpenDSA Turing Machine
22 Reduction of True and False using Church Bools Algorithm Visualization Slideshow visualizing reduction of true and false using Church bools. OpenDSA Lambda Calculus
23 Consequences of Dereferencing a Null Pointer Presentation Slideshow demonstrating the consequence of dereferencing a null pointer. OpenDSA Pointer, Reference, Object
24 Lifetime of Local Variables Code Tracing Presentation Slideshow demonstrating the lifetime of local storage. OpenDSA Pointer, Reference, Object
25 Basics of Writing a Recursive Function Algorithm Visualization, Code Tracing Presentation Slideshow demonstrating the concept of recusion as delegation of a task. OpenDSA Recursion, Delegation
26 Symmetries of the FFT Matrix Presentation Demonstration of the symmetries found within the nth powers of unity matrix for the FFT. OpenDSA Polynomial Multiplication, Fast Fourier Transform
27 Visualizaiton of the Turing Machine that accepts a^n b^n c^n Algorithm Visualization, Code Tracing Presentation Detailed trace on some examples for a Turing machine that accepts the langugage a^n b^n c^n. OpenDSA Turing Machine
28 Number of even and odd elements Code Completion Count the number of even and odd elements in an array of integers. Since you must return two counts, place... CodeCheck Arrays and Array Lists
29 List of numbers Code Completion When printing the elements in an array, you want commas between the elements, such as CodeCheck Arrays and Array Lists
30 Picture of Colored Boxes Code Completion Your task is to write a method that produces images from strings describing color values. CodeCheck Loops
31 Length of Line Code Completion Complete the following function that computes the length of a line segment with end points (x1, y1) and (x2, y2).... CodeCheck Fundamental Data Types
32 Objects of a Class Exercise 2 Question, multiple choice, single answer Multiple Choice Question CodeWorkout objects, methods, multiple choice, single answer
33 Objects of a Class Exercise 3 Question, multiple choice, single answer Multiple Choice Question CodeWorkout objects, methods, multiple choice, single answer
34 Size of array Free Coding Problem, coding problem Coding Question CodeWorkout array, Java, cci, coding problem
35 Time of Day in C++ Free Coding Problem, code writing Coding Question CodeWorkout switch, code writing
36 Root of a binary tree Question, forced choice Multiple Choice Question CodeWorkout cci, binary tree, forced choice
37 Depth of a binary tree Question, forced choice Multiple Choice Question CodeWorkout cci, binary tree, forced choice
38 Type of binary tree Question, forced choice Multiple Choice Question CodeWorkout cci, binary tree, forced choice
39 Depth of a binary tree Question, forced choice Multiple Choice Question CodeWorkout cci, binary tree, forced choice
40 Number of nodes at a level in binary tree Question, forced choice Multiple Choice Question CodeWorkout cci, binary tree, forced choice
41 Difference Of Cubes Free Coding Problem, code writing Coding Question CodeWorkout math, variables, lang.Math, code writing
42 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
43 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
44 Creating an Array of Odd Numbers Construct a program that creates an array of first ten positive odd numbers. PCEX arrays
45 Creating an Array of User Inputs Construct a program that creates an array of eight string values received from the user. PCEX arrays
46 Calculating the Sum of the Values in an Array Construct a program that computes the sum of all the values in an array. PCEX arrays
47 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX arrays
48 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 arrays
49 Finding the Number of Days Above the Average Temperature Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX arrays
50 Printing Table of Medal Winner Counts with Row Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
51 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
52 Determining the Average Ratings of each Respondent and Average Ratings Given to Each Soda in the Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
53 Counting the Number of Valid and Banned Product Codes (Case 1) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions
54 Counting the Number of Valid and Banned Product Codes (Case 2) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions
55 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 1) Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop
56 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 2) Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
57 Printing the Squares of Numbers Within a Specified Range (Case 1) Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop
58 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
59 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
60 Determining the Letter Grade Of a Student Construct a program that receives a score from the user and determines the grade as follows:\nA for scores ≥ 90\nB... PCEX control flow, if-else statement
61 Converting the Letter Grade of a Student to Its Numeric Range Construct a program that receives a grade from the user and prints the numeric range for that grade using the... PCEX if-else statement
62 Determining the Sign of an Integer Construct a program that determines whether an integer is positive, negative, or zero. PCEX control flow, if-else statement
63 Calculating the Wage of an Employee at the Customer Service Call Center Construct a program for the payment department of a company to calculate the wage of an employee who works at... PCEX control flow, if-else statement
64 Determining the Smallest of the Three Integers Construct a program that determines the smallest of the three integer values entered by the user. PCEX control flow, if-else statement
65 Determining the Largest of the Three Integers Construct a program that determines the largest of the three integer values entered by the user. PCEX control flow
66 Printing A Sequence of Repeated Numbers (Case 1) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
67 Printing A Sequence of Repeated Numbers (Case 2) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
68 Finding the Smallest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX while loop
69 Finding the Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX while loop
70 Calculating the Average of Input Integers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
71 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
72 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
73 Printing Digits of an Integer from Right to Left Construct a program that prints the digits of an integer from right to left. PCEX while loop
74 The Digit Sum of an Integer Construct a program that calculates the sum of the digits of an integer. PCEX while loop
75 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX while loop
76 Calculating the Winning Percentage of a Sports Team (Case 1) Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX while loop
77 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 while loop
78 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 while loop
79 Change the Value of a Variable C++ BehaviorExample for demonstrating Change the Value of a Variable AnnEx
80 Using End of Line Statement C++ BehaviorExample for demonstrating Using End of Line Statement AnnEx
81 (For loops) Sum of odd numbers - CSEdPad This program sums up the odd number from 1 to 50 AnnEx for loop
82 (Nested Loops) Grid of stars - CSEdPad Print a grid of stars. AnnEx nested loops
83 Practicing searching the index of the min element Construct a program that finds the index of the minimum element in a list. num_list is a test case where... jsParsons recursion, search algorithms, sorting algorithms
84 Practicing searching the index of the min and max elements Construct a program that finds the indexes of both the max and min elements in a list. num_list is a... jsParsons algorithm analysis, recursion, search algorithms, sorting algorithms
85 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
86 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
87 Printing the outline of a square star pattern Challenge Construct a program that takes an input as the size of a square and print the outline of the square.\nFor... PCEX for loop
88 Creating list of items Python BehaviorExample for demonstrating Creating list of items WebEx list
89 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
90 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
91 Given a list of integers, swap the first and last elements. Code Completion Given a list of integers, swap the first and last elements. CodeCheck Lists - Simple Exercises, No loops
92 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
93 Given a list of integers, count how many elements are negative. Code Completion Given a list of integers, count how many elements are negative. CodeCheck Lists - Simple Exercises, Counting Elements
94 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
95 Given a list of integers, return the most frequent element. Code Completion Given a list of integers, return the most frequent element. If there is more than one element with maximum frequency,... CodeCheck Lists - Simple Exercises, Counting Elements
96 Given a list of integers, return a list of all elements that occur with maximum frequency. Code Completion Given a list of integers, return a list of all elements that occur with maximum frequency. CodeCheck Lists - Simple Exercises, Counting Elements
97 Given a list of integers, return the position of the first element that occurs more than once, or -1 if all elements occur exactly once. Code Completion Given a list of integers, return the position of the first element that occurs more than once, or -1 if... CodeCheck Lists - Simple Exercises, Counting Elements
98 Given a list of integers, return a list of all elements that occur exactly once. Code Completion Given a list of integers, return a list of all elements that occur exactly once. CodeCheck Lists - Simple Exercises, Counting Elements
99 Given a list of integers, remove all elements that occur more than once, leaving the first occurrence. Code Completion Given a list of integers, remove all elements that occur more than once, leaving the first occurrence. CodeCheck Lists - Simple Exercises, Counting Elements
100 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
101 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
102 Given a list of integers, return the largest sum of consecutive elements. Code Completion Given a list of integers, return the largest sum of consecutive elements. CodeCheck Lists - Simple Exercises, Double Loops
103 Given a list of integers, return the largest sequence whose reverse also occurs somewhere in the list. Code Completion Given a list of integers, return the largest sequence whose reverse also occurs somewhere in the list. CodeCheck Lists - Simple Exercises, Double Loops
104 Given a list a of integers, return a list of all elements of a that occur exactly once. Code Completion Given a list a of integers, return a list of all elements of a that occur exactly once. CodeCheck Lists - Simple Exercises, Double Loops
105 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
106 Given a list of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a + 2, . Code Completion Given a list of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a... CodeCheck Lists - Simple Exercises, Double Loops
107 Given a list of integers and a value, return the position of the last occurrence of the value in the list, or -1 if the value does not exist. Code Completion Given a list of integers and a value, return the position of the last occurrence of the value in the... CodeCheck Lists - Simple Exercises, Finding Elements
108 Given a list of integers and a value, return the difference between the last and first position of the value in the list, or -1 if the value does not exist. Code Completion Given a list of integers and a value, return the difference between the last and first position of the value... CodeCheck Lists - Simple Exercises, Finding Elements
109 Given a list of integers and a value, return a list of all positions of the value in the list. Code Completion Given a list of integers and a value, return a list of all positions of the value in the list. CodeCheck Lists - Simple Exercises, Finding Elements
110 Given a list of integers and a value, return the position of the element that is closest to the value. Code Completion Given a list of integers and a value, return the position of the element that is closest to the value.... CodeCheck Lists - Simple Exercises, Finding Elements
111 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
112 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
113 Given a list of integers, return the position of the first occurrence of the largest element. Code Completion Given a list of integers, return the position of the first occurrence of the largest element. CodeCheck Lists - Simple Exercises, Maximum and Minimum
114 Given a list of integers, return the position of the last occurrence of the largest element. Code Completion Given a list of integers, return the position of the last occurrence of the largest element. CodeCheck Lists - Simple Exercises, Maximum and Minimum
115 Given a list of integers, return the difference of the positions of the first and the last occurrence of the largest element. Code Completion Given a list of integers, return the difference of the positions of the first and the last occurrence of the... CodeCheck Lists - Simple Exercises, Maximum and Minimum
116 Given a list of integers, return the difference between the maximum and minimum. Code Completion Given a list of integers, return the difference between the maximum and minimum. CodeCheck Lists - Simple Exercises, Maximum and Minimum
117 Given a list of integers, swap the the maximum and minimum. Code Completion Given a list of integers, swap the the maximum and minimum. CodeCheck Lists - Simple Exercises, Maximum and Minimum
118 Given a list of integers, return the second-largest element. Code Completion Given a list of integers, return the second-largest element. CodeCheck Lists - Simple Exercises, Maximum and Minimum
119 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
120 Given a list of integers and an integer n, remove all elementts &gt; n or &lt; -n. Code Completion Given a list of integers and an integer n, remove all elementts > n or < -n. Shift all remaining... CodeCheck Lists - Simple Exercises, Moving or Removing Elements
121 Given a list of integers, move all zeroes to the back. Code Completion Given a list of integers, move all zeroes to the back. CodeCheck Lists - Simple Exercises, Moving or Removing Elements
122 Given a list of integers, move all zeroes to the front. Code Completion Given a list of integers, move all zeroes to the front. CodeCheck Lists - Simple Exercises, Moving or Removing Elements
123 Given a list of integers, move all negative numbers to the front and all positive numbers to the back, keeping their relative order. Code Completion Given a list of integers, move all negative numbers to the front and all positive numbers to the back, keeping... CodeCheck Lists - Simple Exercises, Moving or Removing Elements
124 Given a list of integers, remove all even elements that occur exactly twice. Code Completion Given a list of integers, remove all even elements that occur exactly twice. CodeCheck Lists - Simple Exercises, Moving or Removing Elements
125 Given a list of integers, remove all adjacent duplicates. Code Completion Given a list of integers, remove all adjacent duplicates. CodeCheck Lists - Simple Exercises, Moving or Removing Elements
126 Given a list of integers, return the sum of all positive elements. Code Completion Given a list of integers, return the sum of all positive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
127 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
128 Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. Code Completion Given a list of floating-point numbers, return a list of the averages of consecutive element pairs of the original list. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
129 Given a list of integers and an integer n, return a list of the averages of n consecutive elements of the original list. Code Completion Given a list of integers and an integer n, return a list of the averages of n consecutive elements of... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
130 Given a list of integers, return the average of all elements that are not the maximum or minimum. Code Completion Given a list of integers, return the average of all elements that are not the maximum or minimum. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
131 Given a list of integers, replace each element with the average of its neighbors. Code Completion Given a list of integers, replace each element with the average of its neighbors. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
132 Given a list of integers, return the sum of all odd elements. Code Completion Given a list of integers, return the sum of all odd elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
133 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
134 Given a list of integers, return the average of all positive elements. Code Completion Given a list of integers, return the average of all positive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
135 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
136 Given a list of integers, return the product of all non-zero elements. Code Completion Given a list of integers, return the product of all non-zero elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
137 Given a list of integers, give the largest n so that the sum of the first n elements equals the sum of the remaining elements. Code Completion Given a list of integers, give the largest n so that the sum of the first n elements equals the... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
138 Given a list of integers, give the largest n ≤ length / 2 so that the sum of the first n elements equals the sum of the last n elements. Code Completion Given a list of integers, give the largest n ≤ length / 2 so that the sum of the first... CodeCheck Lists - Simple Exercises, Sums, Averages, Products
139 Given a list of integers, give the largest sum of n consecutive elements. Code Completion Given a list of integers, give the largest sum of n consecutive elements. CodeCheck Lists - Simple Exercises, Sums, Averages, Products
140 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
141 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
142 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
143 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
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 DFA Exercise: Compliment of No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's that have 3 consecutive a's. OpenDSA Deterministic Finite Automata
146 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
147 Regular Expression Exercise: Strings of a's Preceded or Followed by b RegEx Writing Exercise User writes an regular expression for the language of strings where every a is either proceeded or followed by b. OpenDSA Regular Expression
148 Regular Expression Exercise: Strings of 2 b's and c's RegEx Writing Exercise User writes an regular expression for the language of strings where the number of b's and c's sums to 2. OpenDSA Regular Expression
149 Regular Expression Exercise: Strings of Even Binary Numbers RegEx Writing Exercise User writes an regular expression for the language of strings that are even binary numbers. OpenDSA Regular Expression
150 Regular Grammar Exercise: Number of a's and b's is Odd Grammar Construction Exercise User writes an regular grammar for the language of strings with an odd length. OpenDSA Regular Expression, Regular Grammar
151 Determining Number of Parse Tree Nodes Exercise: Alternate Calculation Exercise, Battery User determines the number of nodes in a parse tree generated by a given string on a given grammar. Alternative... OpenDSA Context-Free Grammar, Parse Tree
152 Abstract Syntax of SLang1 Question Question related to the abstract syntax of functional programming language SLang1. OpenDSA Functional Programming
153 Parameter Passing Comparison of Five Methods Tracing Exercise A collection of self-practice questions to compare parameter passing by five methods. OpenDSA Parameter Passing
154 Concrete Syntax of SLang1 Question, Battery A collection of self-practice questions related to the syntax of functional programming language SLang1. OpenDSA Functional Programming
155 Concrete Syntax of SLang1: 2 Question, Battery A second collection of self-practice questions related to the syntax of functional programming language SLang1. OpenDSA Functional Programming
156 Determining Number of Parse Tree Nodes Exercise Calculation Exercise User determines the number of nodes in a parse tree generated by a given string on a given grammar. OpenDSA Context-Free Grammar, Parse Tree
157 Building a B+ Tree of Degree 5 Algorithm Visualization Slideshow showing a series of insert operations in a B+ Tree of degree 5. OpenDSA Tree-Based Indexing, B-Tree
158 Building a B+ Tree of Degree 4 Algorithm Visualization Slideshow showing a series of insert operations in a B+ Tree of degree 4. OpenDSA Tree-Based Indexing, B-Tree
159 Deletion from a B+ Tree of Degree 4 Algorithm Visualization Slideshow showing a series of delete operations in a B+ Tree of degree 4. OpenDSA Tree-Based Indexing, B-Tree
160 Search in a B+ Tree of Degree 4 Algorithm Visualization Slideshow showing a series of search operations in a B+ Tree of degree 4. OpenDSA Tree-Based Indexing, B-Tree
161 Introduction to the Concept of a Grammar Programmed Instruction Programmed Instruction slideshow introducing the concept of a grammar. OpenDSA Grammar
162 Introduction to the Concept of a Language Programmed Instruction Programmed Instruction slideshow introducing the concept of a language. OpenDSA Language
163 Introduction to the Concept of a Non-Regular Language Programmed Instruction Programmed Instruction slideshow introducing the concept of a non-regular language and ideas for how to recognize one. OpenDSA Non-Regular Language
164 Introduction to the Concept of the Pumping Lemma Programmed Instruction Programmed Instruction slideshow introducing the concept of a the pumping lemma for regular languages. OpenDSA Non-Regular Language
165 Basic Closure Properties of Regular Languages Programmed Instruction Programmed Instruction Frameset presenting some basic operations that are closed for regular languages, like intersection. OpenDSA Regular Language, Closure Property
166 Creating a Chain of Links Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of chaining link nodes to form a linked list. OpenDSA Link Node, Linked List
167 Allocation and Deallocation of Local Variables Code Tracing Presentation Slideshow demonstrating the details of local variable allocation and deallocation. OpenDSA Pointer, Reference, Object
168 Recursion Introduction Slideshow: Details of Recursion Algorithm Visualization Slideshow demonstrating the concept of recusion showing the detials of recursive multiplication. OpenDSA Recursion
169 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
170 Creating an Array of Numbers/Strings Construct a program that creates an array of first ten positive odd numbers. PCEX arrays
171 Calculating Sum/Average of the Array Values Construct a program that computes the sum of all the values in an array. PCEX arrays
172 Searching Values of an Array in Another Array Construct a program that has a method that receives two arrays and prints the values in the 2nd array that... PCEX arrays
173 Processing a List of Temperature Values Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX arrays
174 Printing Table of Medal Counts with Row/Column Total Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
175 Processing the Results of a Soda Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d arrays
176 Counting the Number of Valid and Banned Product Codes Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions
177 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop
178 Printing the Squares of Numbers Within a Specified Range Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop
179 The Sign of a Number Construct a program that determines whether an integer is positive, negative, or zero. PCEX conditionals, control flow, if-else statement
180 The Wage of an Employee Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX control flow, if-else statement
181 The Min/Max of Three Integers Construct a program that determines the smallest of the three integer values entered by the user. PCEX control flow, if-else statement
182 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX nested loops
183 Recursively calculate the power of a number Using recursion, complete the power method so that it returns the value of a to the power of b. Examples:... PCEX
184 Recursively calculate the sum of all numbers from 1 to n Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
185 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX conditionals, while loop
186 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX while loop
187 Processing the Digits of an Integer Construct a program that prints the digits of an integer from right to left. PCEX do-while loop, while loop
188 Calculating the Winning Percentage of a Sports Team Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX while loop
189 Creating a Dictionary of Character-Count/Words Pairs Construct a program that has a function which receives a string from the user and creates a dictionary that maps... PCEX classes, data structures, dictionaries, dictionary, stacks
190 Counting the Number of Valid and Banned Product Codes Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions, while loop
191 Concatenating Characters of Two Strings Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX strings
192 Processing the Digits of an Integer Construct a program that prints the digits of an integer from right to left. PCEX algorithm analysis, loops, while loop
193 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor... PCEX algorithm analysis, loops, while loop
194 Calculating the Average of the Input Numbers Construct a program that reads a series of integers from the user, sums them up, and calculates their average. The... PCEX loops, while loop
195 The Sign of a Number Construct a program that determines whether an integer is positive, negative, or zero. PCEX control flow, if statement, if-else statement
196 The Wage of an Employee Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX control flow, if statement, if-else statement
197 Calculating Sum/Average of the List Values Construct a program that has a function that receives a list and calculates the sum of the values in that... PCEX list
198 The Min/Max of Three Integers Construct a program that determines the smallest of the three integer values entered by the user. PCEX algorithm analysis, control flow, if statement, if-else statement, statistics
199 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop, list
200 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 1 (inclusive) to 16 (exclusive) in increments of 4. PCEX for loop, loops
201 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
202 Searching Values of a List in Another List Construct a program that has a function that receives two lists and prints the values in the 2nd list that... PCEX classes, data structures, list, search algorithms, stacks
203 Processing the Results of a Soda Survey Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list, classes, data structures, for loop, list, stacks
204 Printing the Squares of Numbers Within a Specified Range Construct a program to write out the squares of even positive integers less than or equal to 10. PCEX for loop, loops
205 Counting the Occurrences of One String in Another Construct a program that has a function that receives a string and returns the number of times that the string... PCEX for loop, functions, strings
206 Repeating Characters of a String Construct a program that has a function that receives a string and creates a new string that has each character... PCEX functions, strings
207 Creating a Dictionary of Student-Scores Pairs Assume we have a list of students and a list of their corresponding test scores. Construct a program that has... PCEX dictionaries, dictionary
208 Processing a List of Temperature Values Construct a program that reads a series of temperatures and reports the average temperature and the number of the days... PCEX list
209 Calculating the Winning Percentage of a Sports Team Construct a program that receives from the user the number of games that a sports team won in a tournament... PCEX loops, while loop
210 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
211 Creating an Array of User Inputs Construct a program that creates an array of eight string values received from the user. PCEX arrays
212 Calculating the Average of the Values in the Array Construct a program that calculates the average of all the values in an array. The program should handle arrays with... PCEX arrays
213 Printing Table of Medal Winner Counts with Row and Column Totals Assume that we have an array of countries that stores the names of the seven countries that participated in the... PCEX 2d arrays
214 Counting the Number of Valid and Banned Product Codes (Case 2) Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling, exceptions
215 Printing Sequence of Numbers with a Gap Between Adjacent Values (Case 2) Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
216 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
217 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
218 Converting the Letter Grade of a Student to It's Numeric Range Construct a program that receives a grade from the user and prints the numeric range for that grade using the... PCEX if-else statement
219 Calculating the Wage of an Employee at the Customer Service Call Center Construct a program for the payment department of a company to calculate the wage of an employee who works at... PCEX control flow, if-else statement
220 Determining the Largest of the Three Integers Construct a program that determines the largest of the three integer values entered by the user. PCEX conditionals, control flow, if-else statement
221 Printing A Sequence of Repeated Numbers (Case 2) Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
222 Recursively calculate the power of a number Challenge Using recursion, complete the power method so that it returns the value of a to the power of b. Examples:... PCEX
223 Recursively calculate the sum of all numbers from 1 to n Challenge Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
224 Finding the Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX loops, while loop
225 Calculating the Average of Floating-Point Numbers Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
226 Calculating the Average of the Input Integers that are an Even Number Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
227 Reversing the Digits of an Integer Construct a program that reverses the digits of an integer mathematically. PCEX do-while loop, while loop
228 The Digit Sum of an Integer Construct a program that calculates the sum of the digits of an integer. PCEX do-while loop, while loop
229 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 while loop
230 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 while loop
231 Creating a Dictionary of Character-Count/Words Pairs Construct a program that has a function which receives a string and creates a dictionary that maps each character to... PCEX dictionaries, dictionary
232 Counting the Number of Valid and Banned Product Codes Suppose a hypothetical company uses codes to represent its various products. A product code includes, among other information, a character... PCEX exception handling
233 Concatenating Characters of Two Strings Construct a program that has a function that receives two strings and returns a string formed from the given strings... PCEX strings
234 Processing the Digits of an Integer (Case 3) Construct a program that reverses the digits of an integer mathematically. PCEX while loop
235 Processing the Digits of an Integer (Case 2) Construct a program that calculates the sum of the digits of an integer. PCEX while loop
236 Finding Smallest/Largest Divisor of a Positive Number Construct a program that finds the largest divisor of a positive number, excluding the number itself. For example, the largest... PCEX while loop
237 Calculating the Average of the Input Numbers (Case2) Construct a program that reads a series of integer values from the user, sums up the integers that are an... PCEX while loop
238 Calculating the Average of the Input Numbers (Case 3) Construct a program that reads a series of non-negative floating-point numbers from the user, sums them up, and calculate their... PCEX while loop
239 The Sign of a Number Construct a program that determines whether an integer is even or odd. PCEX if-else statement
240 The Wage of an Employee Construct a program for the payment department of a company to calculate the wage of an employee who works at... PCEX if-else statement
241 Calculating Sum/Average of the List Values Construct a program that has a function that receives a list and calculates the average of the values in that... PCEX list
242 The Min/Max of Three Integers Construct a program that determines the largest of the three integer values entered by the user. PCEX if-else statement
243 Printing Table of Medal Counts with Row/Column Total Assume that we have a 7x4 matrix that stores the number of medals that seven countries won in the skating... PCEX 2d list, for loop
244 Printing Sequence of Numbers with a Gap Between Adjacent Values Construct a program that prints a sequence of numbers from 7 (inclusive) to 35 (inclusive) in increments of 7. PCEX for loop
245 Printing A Sequence of Repeated Numbers Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1... PCEX for loop, nested loops
246 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
247 Searching Values of a List in Another List (Case 2) Construct a program that has a function that receives two lists and prints the total number of times the elements... PCEX list, search algorithms
248 Processing the Results of a Soda Survey (Case 2) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list
249 Processing the Results of a Soda Survey (Case 3) Suppose a soda manufacturer held a taste test for four new flavors to determine if people liked them. The manufacturer... PCEX 2d list
250 Printing the Squares of Numbers Within a Specified Range (Case 2) Construct a program to write out the squares of odd positive integers less than 10. PCEX for loop
251 Printing the Squares of Numbers Within a Specified Range (Case 3) Construct a program to write out the squares of every number between 20 and 25, both inclusive. PCEX for loop
252 Counting the Occurrences of One String in Another Construct a program that has a function that receives a string and returns the number of times that the string... PCEX functions, strings
253 Repeating Characters of a String Construct a program that has a function that receives a string and creates a new string that has every other... PCEX functions, strings
254 Creating a Dictionary of Student-Scores Pairs Assume we have a list of students and a list of their corresponding test scores. Construct a program that has... PCEX dictionaries, dictionary
255 Processing a List of Temperature Values Construct a program that reads a series of temperatures and reports the days that are above 32 degrees Fahrenheit. Assume... PCEX list
256 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 while loop
257 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 while loop
258 Draw intersection of rectangles Code Completion Draw two intersecting rectangles and color their intersection black. CodeCheck Objects
259 Reading a serialized array of objects Code Completion Your task is to read a serialized array of objects. You are given a FileInputStream, and you need to read... CodeCheck Advanced Input and Output
260 Given an array of integers, return the position of the first occurrence of the largest element. Code Completion Given an array of integers, return the position of the first occurrence of the largest element. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
261 Given an array of integers, return the difference of the positions of the first and the last occurrence of the largest element. Code Completion Given an array of integers, return the difference of the positions of the first and the last occurrence of the... CodeCheck Arrays - Simple Exercises, Maximum and Minimum
262 Given an array of integers, return the difference between the maximum and minimum. Code Completion Given an array of integers, return the difference between the maximum and minimum. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
263 Given an array of integers, swap the the maximum and minimum. Code Completion Given an array of integers, swap the the maximum and minimum. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
264 Given an array of integers, return the second-largest element. Code Completion Given an array of integers, return the second-largest element. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
265 Given an array of integers, return the position of the last occurrence of the largest element. Code Completion Given an array of integers, return the position of the last occurrence of the largest element. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
266 Given an array of element, find the shortest distance between two consecutive elements. Code Completion Given an array of element, find the shortest distance between two consecutive elements. CodeCheck Arrays - Simple Exercises, Maximum and Minimum
267 Given an array of integers of length ≥ 4, return the average of the first two and last two elements. Code Completion Given an array of integers of length ≥ 4, return the average of the first two and last two elements. CodeCheck Arrays - Simple Exercises, No loops
268 Given an array of integers, swap the first and last elements. Code Completion Given an array of integers, swap the first and last elements. CodeCheck Arrays - Simple Exercises, No loops
269 Given an array of integers, swap the first two and the last two elements. Code Completion Given an array of integers, swap the first two and the last two elements. CodeCheck Arrays - Simple Exercises, No loops
270 Given an array 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 an array of integers of length ≥ 3, return the average of the first, last, and middle element (or... CodeCheck Arrays - Simple Exercises, No loops
271 Given an array of integers, replace each element with the average of its neighbors. Code Completion Given an array of integers, replace each element with the average of its neighbors. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
272 Given an array of integers and an integer n, return an array of the averages of n consecutive elements of the original array. Code Completion Given an array of integers and an integer n, return an array of the averages of n consecutive elements of... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
273 Given an array of integers, give the largest sum of n consecutive elements. Code Completion Given an array of integers, give the largest sum of n consecutive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
274 Given an array of integers, return the sum of all positive elements. Code Completion Given an array of integers, return the sum of all positive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
275 Given an array of floating-point numbers, return an array of the averages of consecutive element pairs of the original array. Code Completion Given an array of floating-point numbers, return an array of the averages of consecutive element pairs of the original array. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
276 Given an array 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 an array of integers and two values a and b, return the sum of all elements that are at... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
277 Given an array of integers, return the average of all positive elements. Code Completion Given an array of integers, return the average of all positive elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
278 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
279 Given an array of integers, return the average of all elements that are not the maximum or minimum. Code Completion Given an array of integers, return the average of all elements that are not the maximum or minimum. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
280 Given an array of integers, return the product of all non-zero elements. Code Completion Given an array of integers, return the product of all non-zero elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
281 Given an array of integers, return the sum of all odd elements. Code Completion Given an array of integers, return the sum of all odd elements. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
282 Given an array of integers, find the largest sum of two different elements in the array. Code Completion Given an array of integers, find the largest sum of two different elements in the array. CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
283 Given an array of integers, give the largest n ≤ length / 2 so that the sum of the first n elements equals the sum of the last n elements. Code Completion Given an array of integers, give the largest n ≤ length / 2 so that the sum of the first... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
284 Given an array of integers, give the smallest n so that the sum of the first n elements is at least as large as the sum of the remaining elements. Code Completion Given an array of integers, give the smallest n so that the sum of the first n elements is at... CodeCheck Arrays - Simple Exercises, Sums, Averages, Products
285 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
286 Given an array of integers, return an array of length 2, with the number of positive and the number of negative elements in the array. Code Completion Given an array of integers, return an array of length 2, with the number of positive and the number of... CodeCheck Arrays - Simple Exercises, Two Answers
287 Given an array of integers, return an array of length 2, each being an array. Code Completion Given an array of integers, return an array of length 2, each being an array. The first one holds the... CodeCheck Arrays - Simple Exercises, Two Answers
288 Given an array of integers, return an array of length 2, each being an array. Code Completion Given an array of integers, return an array of length 2, each being an array. The first one holds the... CodeCheck Arrays - Simple Exercises, Two Answers
289 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
290 Given an array of integers and an integer n, remove all elementts &gt; n or &lt; -n. Code Completion Given an array of integers and an integer n, remove all elementts > n or < -n. Shift all remaining... CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
291 Given an array of integers, move all zeroes to the front. Code Completion Given an array of integers, move all zeroes to the front. CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
292 Given an array of integers, move all negative numbers to the front and all positive numbers to the back, keeping their relative order. Code Completion Given an array of integers, move all negative numbers to the front and all positive numbers to the back, keeping... CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
293 Given an array of integers, remove all even elements that occur exactly twice. Code Completion Given an array of integers, remove all even elements that occur exactly twice. CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
294 Given an array of integers, remove all adjacent duplicates. Code Completion Given an array of integers, remove all adjacent duplicates. CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
295 Given an array of integers, move all zeroes to the back. Code Completion Given an array of integers, move all zeroes to the back. CodeCheck Arrays - Simple Exercises, Moving or Removing Elements
296 Given an array of integers and a value, return the position of the last occurrence of the value in the array, or -1 if the value does not exist. Code Completion Given an array of integers and a value, return the position of the last occurrence of the value in the... CodeCheck Arrays - Simple Exercises, Finding Elements
297 Given an array of integers and a value, fill an array with all positions of the value in the array. Code Completion Given an array of integers and a value, fill an array with all positions of the value in the array. CodeCheck Arrays - Simple Exercises, Finding Elements
298 Given an array of integers and a value, return the position of the element that is closest to the value. Code Completion Given an array of integers and a value, return the position of the element that is closest to the value.... CodeCheck Arrays - Simple Exercises, Finding Elements
299 Given two arrays of integers of the same length, return the first position where their elements are the same. Code Completion Given two arrays of integers of the same length, return the first position where their elements are the same. CodeCheck Arrays - Simple Exercises, Finding Elements
300 Given two arrays of integers of the same length, return the first position where their elements differ. Code Completion Given two arrays of integers of the same length, return the first position where their elements differ. CodeCheck Arrays - Simple Exercises, Finding Elements
301 Given an array of integers and a value, return the difference between the last and first position of the value in the array, or -1 if the value does not exist. Code Completion Given an array of integers and a value, return the difference between the last and first position of the value... CodeCheck Arrays - Simple Exercises, Finding Elements
302 Given an array of integers, return the largest sum of consecutive elements. Code Completion Given an array of integers, return the largest sum of consecutive elements. CodeCheck Arrays - Simple Exercises, Double Loops
303 Given an array of integers, return the largest sequence whose reverse also occurs somewhere in the array. Code Completion Given an array of integers, return the largest sequence whose reverse also occurs somewhere in the array. CodeCheck Arrays - Simple Exercises, Double Loops
304 Given an array a of integers, return an array of all elements of a that occur exactly once. Code Completion Given an array a of integers, return an array of all elements of a that occur exactly once. CodeCheck Arrays - Simple Exercises, Double Loops
305 Given an array of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a + 2, . Code Completion Given an array of integers, return the position of the longest subsequence of consecutive integers a, a + 1, a... CodeCheck Arrays - Simple Exercises, Double Loops
306 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
307 Given two arrays of integers a and b of the same length, count the number of positions where the array elements differ by at least 2. Code Completion Given two arrays of integers a and b of the same length, count the number of positions where the array... CodeCheck Arrays - Simple Exercises, Counting Elements
308 Given an array of integers, count how many elements are negative. Code Completion Given an array of integers, count how many elements are negative. CodeCheck Arrays - Simple Exercises, Counting Elements
309 Given an array of integers, return the most frequent element. Code Completion Given an array of integers, return the most frequent element. If there is more than one element with maximum frequency,... CodeCheck Arrays - Simple Exercises, Counting Elements
310 Given an array of integers, return an array of all elements that occur with maximum frequency. Code Completion Given an array of integers, return an array of all elements that occur with maximum frequency. CodeCheck Arrays - Simple Exercises, Counting Elements
311 Given an array of integers, return the position of the first element that occurs more than once, or -1 if all elements occur exactly once. Code Completion Given an array of integers, return the position of the first element that occurs more than once, or -1 if... CodeCheck Arrays - Simple Exercises, Counting Elements
312 Given an array of integers, return an array of all elements that occur exactly once. Code Completion Given an array of integers, return an array of all elements that occur exactly once. CodeCheck Arrays - Simple Exercises, Counting Elements
313 Given an array of integers and two values a and b, count how many elements are at least a and at most b. Code Completion Given an array of integers and two values a and b, count how many elements are at least a and... CodeCheck Arrays - Simple Exercises, Counting Elements
314 Given two arrays of integers a and b of the same length, count the number of positions where the arrays have the same elements. Code Completion Given two arrays of integers a and b of the same length, count the number of positions where the arrays... CodeCheck Arrays - Simple Exercises, Counting Elements
315 Given an array of integers, remove all elements that occur more than once, leaving the first occurrence. Code Completion Given an array of integers, remove all elements that occur more than once, leaving the first occurrence. CodeCheck Arrays - Simple Exercises, Counting Elements
316 Recursion Programming Exercise: Sum of the Digits Free Coding Problem, code writing Coding Question CodeWorkout recursion, code writing
317 Recursion Programming Exercises: Minimum of array Free Coding Problem, code writing Coding Question CodeWorkout recursion, code writing
318 Find Average of Three Numbers C++ Free Coding Problem, code writing Coding Question CodeWorkout arithmetic, code writing
319 Create an array of ints Free Coding Problem, code writing Coding Question CodeWorkout arrays, cci, 2214, code writing
320 Creating an Array of Variable Size Free Coding Problem, code writing Coding Question CodeWorkout CS1114, array, Java, variable, parameter, create, code writing
321 Create Array of Values Free Coding Problem, code writing Coding Question CodeWorkout CS1114, array, Java, create, initialize, code writing
322 Which type of tree traversal (1) Question, forced choice Multiple Choice Question CodeWorkout cci, Java, binary tree, traversal, 2214, forced choice
323 Which type of tree traversal (2) Question, forced choice Multiple Choice Question CodeWorkout cci, Java, binary tree, traversal, 2214, forced choice
324 Which type of tree traversal (3) Question, forced choice Multiple Choice Question CodeWorkout cci, Java, binary tree, traversal, 2214, forced choice
325 Get position of smallest integer Free Coding Problem, coding problem Coding Question CodeWorkout array, cci, coding problem
326 Count the digits of an integer Free Coding Problem Coding Question CodeWorkout recursion, int, cci
327 Find position of value Free Coding Problem, coding problem Coding Question CodeWorkout array, cci, coding problem
328 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
329 Determining When at Least One of the Three Boolean Variables is True Construct a program that determines whether at least one of the three boolean variables is true based on the inputs... PCEX boolean expressions
330 Determining When at Least One of the Three Boolean Variables is False Construct a program that determines whether at least one of the three boolean variables is false based on the inputs... PCEX boolean expressions
331 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
332 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
333 Construct a function that checks the size of a linked list Construct a function that calculates the number of elements in a singly linked list.
LinkedList class implementation is given below.
jsParsons linked list
334 Construct a function that returns a list of remainders from the input. Construct a function which calculates the remainder of each element of the first list and the element with the same... jsParsons
335 Construct a function that returns a list of remainders from the input. Construct a program which calculates the remainder of each element of the first list and the element with the same... jsParsons
336 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
337 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
338 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
339 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
340 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
341 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
342 Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth quadrant plane, or on the x-axis, or on the y-axis, or the origin. Code Completion Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth... CodeCheck Branches, Branches Without Functions
343 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
344 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
345 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
346 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
347 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
348 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
349 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
350 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
351 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
352 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
353 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
354 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
355 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
356 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
357 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
358 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
359 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
360 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
361 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
362 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
363 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
364 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
365 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
366 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
367 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
368 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
369 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
370 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
371 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
372 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
373 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
374 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
375 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
376 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
377 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
378 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
379 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
380 DFA Exercise: Minimize the Number of State Exercise 1 Automata Construction Exercise User shows the steps in the algorithm to minimize the states in a given DFA. Exercise 1. OpenDSA Deterministic Finite Automata
381 DFA Exercise: Minimize the Number of State Exercise 2 Automata Construction Exercise User shows the steps in the algorithm to minimize the states in a given DFA. Exercise 2. OpenDSA Deterministic Finite Automata
382 Regular Grammar Exercise: a's a Multiple of 3 Grammar Construction Exercise User writes an regular grammar for the language of strings with the number of a's being divisible by 3. OpenDSA Regular Grammar
383 Turing Machine Exercise: Accept Powers of 2 Automata Construction Exercise User creates a Turing machine that accepts strings of a's with the number of characters being a power of 2. OpenDSA Turing Machine
384 Turing Machine Exercise: Decide Powers of 2 Automata Construction Exercise User creates a Turing machine that decides if strings of a's have a length that is a power of 2. OpenDSA Turing Machine
385 Parse Tree Example: Enforcing Order of Operations Algorithm Visualization Slideshow visualizing a parse tree from a grammar that enforces the correct order of operations. OpenDSA Parse Tree
386 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
387 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
388 Determining When at Least One of the Three Boolean Variables is False Construct a program that determines whether at least one of the three boolean variables is false based on the inputs... PCEX boolean expressions
389 Use Recursion to calculate total sum of all numbers from 1 to N. Using recursion, complete the sum1toN method so that it returns the total sum of all numbers from 1 to N.... PCEX
390 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
391 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
392 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
393 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
394 Given a two-dimensional array of integers and a value x, return the position of the first match as an array of length 2. Code Completion Given a two-dimensional array of integers and a value x, return the position of the first match as an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
395 Given a two-dimensional array of integers, return an array of the number of negative elements in each column. Code Completion Given a two-dimensional array of integers, return an array of the number of negative elements in each column. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
396 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
397 Given a two-dimensional array of integers, return the position of the smallest element in the array as an array of length 2. Code Completion Given a two-dimensional array of integers, return the position of the smallest element in the array as an array of... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
398 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
399 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
400 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
401 Given a two-dimensional array of integers and a value x, return the positions of all matching elements, as an array 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 an array... CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
402 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
403 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
404 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
405 Given a two-dimensional array of integers, return an array of the largest element in each row. Code Completion Given a two-dimensional array of integers, return an array of the largest element in each row. CodeCheck Two-Dimensional Arrays, Looping Over the Entire Array
406 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
407 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
408 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
409 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
410 Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array of length 2. Code Completion Given a two-dimensional array of integers, return the position of the largest square subarray filled with zeroes, as an array... CodeCheck Two-Dimensional Arrays, Complex Loops
411 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
412 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
413 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
414 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
415 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
416 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
417 Static field to maintain the total value of Coin objects created Code Completion Add a private static variable to the Coin class that maintains the total value of all coins that were constructed.... CodeCheck Designing Classes
418 Static method for counting the number of times a character appears in a string Code Completion Supply a static method that counts the number of times that a specific character appears in a given string. For... CodeCheck Designing Classes
419 Static method for computing number of binary digits in n Code Completion Supply a static method that computes the number of binary digits in a given integer. For example, CodeCheck Designing Classes
420 Static field to count number of objects Code Completion Add a private static variable to the Coin class that counts the total number of coins that were constructed. Also... CodeCheck Designing Classes
421 Generic matrix class as array of arrays Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
422 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 an array 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
423 Write a method that undoes the effect of the preceding exercise. Code Completion Write a method that undoes the effect of the preceding exercise. CodeCheck Strings, Other String Operations
424 Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth quadrant plane, or on the x-axis, or on the y-axis, or the origin. Code Completion Given the x- and y-coordinates of a point, print whether the point lies in the first, second, third, or fourth... CodeCheck Branches, Branches Without Functions
425 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
426 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
427 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
428 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
429 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
430 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
431 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
432 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
433 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
434 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
435 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
436 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
437 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
438 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
439 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
440 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
441 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
442 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
443 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
444 Given a string s and a character c (as string of length 1), return a string with the characters surrounding the first occurrence of c reversed. Code Completion Given a string s and a character c (as string of length 1), return a string with the characters surrounding... CodeCheck Strings, Other String Operations
445 Given a string s and a character c (as string of length 1), return a string with the characters surrounding any occurrence of c reversed. Code Completion Given a string s and a character c (as string of length 1), return a string with the characters surrounding... CodeCheck Strings, Other String Operations
446 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
447 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
448 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
449 Add an element to the front and back of a linked list Code Completion Implement a method that adds an element to the beginning of a linked list and another at the end. CodeCheck Linear Data Structures
450 Given two two-dimensional arrays with the same number of rows, return an array that places them side by side. Code Completion Given two two-dimensional arrays with the same number of rows, return an array that places them side by side. CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
451 Given two two-dimensional arrays a and b of integers with the same number of rows and columns, return an array 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 an array... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
452 Practising reading a file and printing the third element in each line of the file Construct a program that opens up a file and prints out the third element in each line of the file jsParsons exception handling, file i/o
453 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
454 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
455 Given a string, return a string composed first of all characters at even positions and then of all characters at odd positions. Code Completion Given a string, return a string composed first of all characters at even positions and then of all characters at... CodeCheck Strings, Other String Operations
456 Given strings s and t, return a list of all positions in which t occurs in s. Code Completion Given strings s and t, return a list of all positions in which t occurs in s. CodeCheck Strings, Finding Substrings
457 Given a string, find the sum of all integers inside. Code Completion Given a string, find the sum of all integers inside. Return 0 if there is no integer inside. CodeCheck Strings, Numbers in Strings
458 Given a string, find the sum of all integers inside. Code Completion Given a string, find the sum of all integers inside. Return 0 if there is no integer inside. CodeCheck Strings, Numbers in Strings
459 Given a string, return a string composed first of all characters at even positions and then of all characters at odd positions. Code Completion Given a string, return a string composed first of all characters at even positions and then of all characters at... CodeCheck Strings, Other String Operations
460 Given an integer n, fill an array of length n with 1 -1 1 -1 . Code Completion Given an integer n, fill an array of length n with 1 -1 1 -1 ... CodeCheck Arrays - Simple Exercises, Filling
461 Given integers n and k, fill an array of length n with 0 1 2 . Code Completion Given integers n and k, fill an array of length n with 0 1 2 ... k-1 0 1 2... CodeCheck Arrays - Simple Exercises, Filling
462 Given strings s and t, return a list of all positions in which t occurs in s. Code Completion Given strings s and t, return a list of all positions in which t occurs in s. CodeCheck Strings, Finding Substrings
463 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
464 Given a string s and an integer n, return a string in which each of the characters in s is repeated n times. Code Completion Given a string s and an integer n, return a string in which each of the characters in s is... CodeCheck Strings, Other String Operations
465 Given a string s and a string t, return a string in which all the characters of s that occur in t have been replaced by a _ character. Code Completion Given a string s and a string t, return a string in which all the characters of s that occur... CodeCheck Strings, Other String Operations
466 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
467 Given strings s and t, return a string in which all occurrences of t are removed from s. Code Completion Given strings s and t, return a string in which all occurrences of t are removed from s. CodeCheck Strings, Finding Substrings
468 Given a two-dimensional array a, return an array 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 an array whose [i][j] element is the average of the neighbors of a[i][j] in... CodeCheck Two-Dimensional Arrays, Producing 2D Arrays
469 Given a string s and an integer n, return a string in which each of the characters in s is repeated n times. Code Completion Given a string s and an integer n, return a string in which each of the characters in s is... CodeCheck Strings, Other String Operations
470 Given a string s and a string t, return a string in which all the characters of s that occur in t have been replaced by a _ sign. Code Completion Given a string s and a string t, return a string in which all the characters of s that occur... CodeCheck Strings, Other String Operations
471 Given a string and two characters x and y, interchange all occurrences of x and y. Code Completion Given a string and two characters x and y, interchange all occurrences of x and y. CodeCheck Strings, Other String Operations
472 Given two arrays a and b, remove all elements of b from a. Code Completion Given two arrays a and b, remove all elements of b from a. CodeCheck Arrays - Simple Exercises, Double Loops
473 Given strings s and t, return a string in which all occurrences of t are removed from s. Code Completion Given strings s and t, return a string in which all occurrences of t are removed from s. CodeCheck Strings, Finding Substrings
474 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
475 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
476 Given three integers x, y, z, print the sum of the odd integers. Code Completion Given three integers x, y, z, print the sum of the odd integers. CodeCheck Branches, Branches Without Functions
477 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
478 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
479 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
480 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
481 Given a string s and a character c, return a string with the characters surrounding any occurrence of c reversed. Code Completion Given a string s and a character c, return a string with the characters surrounding any occurrence of c reversed.... CodeCheck Strings, Other String Operations
482 Given a string s and a character c, return a string with the characters surrounding the first of c reversed. Code Completion Given a string s and a character c, return a string with the characters surrounding the first of c reversed.... CodeCheck Strings, Other String Operations
483 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
484 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
485 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
486 Given three integers x, y, z, print the sum of the odd integers. Code Completion Given three integers x, y, z, print the sum of the odd integers. CodeCheck Branches, Branches Without Functions
487 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
488 Constants_Memphis_01 Example of Constant (final) in Java. AnnEx
489 Constants_Memphis_02 Example of constant (final) in java. AnnEx
490 (If else) Temperature Conversion - CSEdPad Conversion of temperature from degree Celsius to degree Fahrenheit and vice versa AnnEx if-else statement
491 If else nested (Memphis) Demo of using if with else - this program simulates a bouncer at a club. AnnEx if-else statement
492 Parameter Passing by Name Visualization Code Tracing Presentation Visualization of parameter passing by name in SLang2. OpenDSA Parameter Passing
493 Parameter Passing by Reference Visualization Code Tracing Presentation Visualization of parameter passing by reference in SLang2. OpenDSA Parameter Passing
494 Parameter Passing by Value Visualization Code Tracing Presentation Visualization of parameter passing by value in SLang2. OpenDSA Parameter Passing
495 Parameter Passing by Copy-Restore Visualization Code Tracing Presentation Visualization of parameter passing by copy-restore in SLang2. OpenDSA Parameter Passing
496 Parameter Passing by Macro Visualization Code Tracing Presentation Visualization of parameter passing by macro in SLang2. OpenDSA Parameter Passing
497 Pumping Lemma Game Proficiency Exercise Demonstration of an adversary argument for the Pumping Lemma, in the form of an adversary game. OpenDSA Pumping Lemma, Regular Language, Adversary Argument
498 Algorithm Analysis Chapter Summary Questions: CS2 Question, Battery Battery of self-assessment questions on Algorithm Analysis. Suitable for a CS2 course. OpenDSA Algorithm Analysis
499 Algorithm Analysis Chapter Summary Questions: CS3 Question, Battery Battery of self-assessment questions on Algorithm Analysis. Suitable for a post-CS2 Data Structures and Algorithms course. OpenDSA Algorithm Analysis
500 Problems, Algorithms, and Programs Exercise Question, Battery Battery of self-assessment questions on lower bounds and the relationship of various growth rates. OpenDSA Problem, Algorithm, Program
501 Analyzing Problems Practice Questions Question, Battery Battery of self-assessment questions about asymptotic analysis and analyzing problems. OpenDSA Algorithm Analysis, Analyzing Problems
502 Program Code Analysis Practice Questions Question, Battery Battery of self-assessment questions about asymptotic analysis and analyzing programs. OpenDSA Algorithm Analysis, Analyzing Programs
503 Comparing Growth Rates Exercise Question, Battery Battery of self-assessment questions that lets users pick which growth rate is cheapest from several choices. OpenDSA Problem, Algorithm, Program
504 Faster Computer or Faster Algorithm Exercise Question, Battery Battery of self-assessment questions on the distinction between speeding a computer processor vs. reducing computational complexity of an algorithm OpenDSA Problem, Algorithm, Program
505 Growth Rates Ordering Exercise Question, Battery Battery of self-assessment questions that lets users put several growth rates in order. OpenDSA Problem, Algorithm, Program
506 Algorithm Analysis Lower Bounds Practice Exercise Question, Battery Battery of self-assessment questions on the distinction between problems, algorithms, and programs. OpenDSA Growth Rate, Lower Bound
507 Common Algorithm Analysis Misconceptions Practice Questions Question, Battery Battery of self-assessment questions related to misconceptions in asymptoic algorithm analysis. OpenDSA Algorithm Analysis, Misconception
508 Asymptotic Analysis and Upper Bounds Exercise Question, Battery Battery of self-assessment questions about asymptotic analysis and upper bounds. OpenDSA Problem, Algorithm, Program
509 Sort Comparison Summary Exercise Question, Battery Battery of self-assessment questions where user selects which sort is the best to use in a particular situation. OpenDSA Radix Sort
510 Sorting Lower Bound Summary Questions Question, Battery Battery of self-assessment questions related to the lower bounds proof for the general sorting problem. OpenDSA Sorting Problem Lower Bound
511 Sorting Chapter Summary Questions Question, Battery Battery of self-assessment questions for the entire Sorting chapter. OpenDSA Sorting
512 Context-Free Language Derivation Trees Example Algorithm Visualization Visualization of a derviation tree from a given context-free grammar. OpenDSA Context-Free Language
513 Discrete Fourier Transform Matrix Presentation Demonstration of multiplying by the FFT symmetry matrix for the 8th power of unity. OpenDSA Polynomial Multiplication, Fast Fourier Transform
514 Polynomial Evaluation Algorithm Visualization Visualization of the relationship between evaluation of polynomials and multiplying polynomials. OpenDSA Polynomial Multiplication, Evaluation
515 Even and Odd Polynomials Slideshow Presentation Demonstration of the symmetries between even powers versus odd powers for polynomial evaluation of a value and its negation. OpenDSA Polynomial Multiplication
516 Polynomial Product Algorithm Visualization Visualization of the process for muliplying to polynomials. OpenDSA Polynomial Multiplication
517 DFA Example Trace: How a DFA Traces Algorithm Visualization, Code Tracing Presentation Visualization of how a DFA would process an input string. OpenDSA Deterministic Finite Automata
518 DFA Example Trace: Even Binary Numbers Algorithm Visualization, Code Tracing Presentation Visualization of how a DFA would process input strings for the language of even binary numbers. OpenDSA Deterministic Finite Automata
519 Calculating Body Mass Index (BMI) BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX arithmetic operations, operators, variables
520 Calculating and Rounding Up Body Mass Index (BMI) To the Nearest Integer BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX arithmetic operations
521 Boolean expressions (Memphis) Some basic demos of boolean expressions (1-31) AnnEx logical operators
522 Char Strings (Memphis) Some demos of working with the char and String data types. AnnEx strings
523 (Do while) Find high & low scores - CSEdPad Given an collection of test scores with values between 0 and 100, find and display the low and high scores... AnnEx do-while loop
524 (Math class) Math example 3 - CSEdPad Demonstrate the understanding of Math class concepts by construct a program that calculate and print the surface area and volume... AnnEx math
525 (MathClass) MathExample1 - CSEdPad Demonstrate the understanding of Math class concepts by constructing a program that finds the length of the hypotenuse in of... AnnEx math
526 Math class 1 (Memphis) Simple example of how to use Java Math methods. This program shows that the trig identity sin^2(x) + cos^2(x) =... AnnEx math
527 Modulus (Memphis) Demonstrates usage of the % operator. % means "remainder when you divide by" For example: 49 % 6 = 1... AnnEx
528 Mid-square Method Calculator Calculation Exercise Calculator for computing value of the middle digits of a squared number. OpenDSA Hash Function
529 String Folding Method activity Calculation, User Supplied Data Calculator for computing value of hashing a string by 'folding'. A better method than character value summing. OpenDSA Hash Function
530 Simple String Hash Calculator Calculation, User Supplied Data Calculator for computing value of hashing a string by simple summation of its characters' ASCII values. OpenDSA Hash Function
531 Introduction to Data Structures and Algorithms Review Questions Question, Battery Data Structures introduction battery of self-assessment questions. OpenDSA Data Structures
532 Comparison Review Questions Question, Battery A battery of self-assessment questions on comparators and design issues related to comparing records. OpenDSA Record Comparison, Comparator
533 Dictionary ADT Review Questions Question, Battery A battery of self-assessment questions on the Dictionary ADT. OpenDSA Dictionary, Abstract Data Type
534 Design Patterns Review Questions Question, Battery A battery of self-assessment questions on design patterns. OpenDSA Design Pattern
535 CFG Associativity Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression and deterimine if the grammar enforces correct associativity. Alternate... OpenDSA Context-Free Grammar, Ambiguity
536 Language from CFG Exercise: Alternate Question, Battery A collection of self-practice questions where users select a language description for a given CFG. Alternate version. OpenDSA Context-Free Grammar
537 CFG Determining Ambiguity Exercise: Alternate Question, Battery A collection of self-practice questions where users determine whether a given CFG is ambiguous or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
538 CFG Expression Evaluation Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression under the definition of a given CFG. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
539 Extended BNF Exercise: Alternate Question, Battery A collection of self-practice questions where users select extended BNF statements matching a normal set of BNF statements. Alternate version. OpenDSA Context-Free Grammar
540 CFG Ambiguity 1 Exercise: Alternate Question, Battery A collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
541 CFG Ambiguity 2 Exercise: Alternate Question, Battery A second collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
542 CFG Ambiguity 3 Exercise: Alternate Question, Battery A third collection of self-practice questions where users determine whether a given string is parsed ambiguously or not. Alternate version. OpenDSA Context-Free Grammar, Ambiguity
543 CFG Precedence and Associativity Exercise: Alternate Question, Battery A collection of self-practice questions where users evaluate a mathematical expression and deterimine if the grammar enforces correct precedence and... OpenDSA Context-Free Grammar, Ambiguity
544 Determining Whether a Given String is Derivable from Given Grammar Exercise: Alternate Calculation Exercise, Battery A collection of self-practice questions where users determine which strings can or cannot be derived from a given grammar: Alternate. OpenDSA Context-Free Grammar, Parse Tree
545 Hash Cost Analysis Summary Practice Questions Question, Battery A collection of self-practice questions on hashing cost analysis. OpenDSA Hashing Cost Analysis
546 Hashing Chapter Summary Practice Questions Question, Battery A collection of self-practice questions for the entire Hashing chapter. OpenDSA Hashing
547 Hash Deletion Summary Practice Questions Question, Battery A collection of self-practice questions on hash table deletion. OpenDSA Hashing
548 Hash Functions Summary Practice Questions Question, Battery A collection of self-practice questions on hash functions. OpenDSA Hash Function
549 Inheritance and Polymorphism: Review Questions 1 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Working with Jeroos. OpenDSA Subclass
550 Inheritance and Polymorphism: Review Questions 2 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Working class hierarchy and inheritance OpenDSA Class Hierarchy, Inheritance
551 Inheritance and Polymorphism: Review Questions 3 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Developing algorithms. OpenDSA Class Hierarchy, Inheritance
552 Inheritance and Polymorphism: Review Questions 4 Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Writing methods. OpenDSA Method
553 Inheritance and Polymorphism: Chapter Summary Review Question, Battery Inheritance and Polymorphism battery of self-assessment questions: Chapter review summary. OpenDSA Inheritance, Polymorphism
554 Array-Based List Review Questions Question, Battery Array-based list battery of self-assessment questions. OpenDSA Array-Based List
555 Functional Programming: Accumulator Pattern Tracing Exercise, Battery A collection of self-practice questions related to the accumulator pattern. OpenDSA Functional Programming
556 Lambda Calculus: Alpha Conversion Calculation Exercise, Battery A collection of self-practice questions related to alpha conversion in the Lambda Calculus expression. OpenDSA Lambda Calculus
557 Lambda Calculus: Beta-Redex Question, Battery A collection of self-practice questions related to Beta-redexes in the Lambda Calculus. OpenDSA Lambda Calculus
558 Lambda Calculus: Beta-Redex and Alpha Conversion Question, Battery A collection of self-practice questions related to Beta-redexes with Alpha conversion in the Lambda Calculus. OpenDSA Lambda Calculus
559 Lambda Calculus: Performing Beta Reductions Question, Battery A collection of self-practice questions related to performing Beta-reduction in the Lambda Calculus. OpenDSA Lambda Calculus
560 Lambda Calculus: Beta Reduction Order 1 Question, Battery A collection of self-practice questions related to Beta reduction order in the Lambda Calculus. OpenDSA Lambda Calculus
561 Lambda Calculus: Beta Reduction Order 2 Question, Battery A second collection of self-practice questions related to Beta reduction order in the Lambda Calculus. OpenDSA Lambda Calculus
562 Parameter Passing by Copy-Restore vs Macro vs Name Tracing Exercise A collection of self-practice questions to compare parameter passing by copy-restore vs macro vs name in language SLang2. OpenDSA Parameter Passing
563 Parameter Passing by Reference vs Copy-Restore vs Macro Tracing Exercise A collection of self-practice questions to compare parameter passing by reference vs copy-restore vs macro in language SLang2. OpenDSA Parameter Passing
564 Parameter Passing by Value vs Reference Exercise Tracing Exercise A collection of self-practice questions to compare parameter passing by value vs passing by reference in language SLang2. OpenDSA Parameter Passing
565 Parameter Passing by Value vs Reference Exercise vs Copy-Restore Tracing Exercise A collection of self-practice questions to compare parameter passing by value vs passing by reference vs copy-restore in language SLang2. OpenDSA Parameter Passing
566 Lambda Calculus: Church Numerals Tracing Exercise A collection of self-practice questions related to Church numerals in the Lambda Calculus. OpenDSA Lambda Calculus
567 Functional Programming: Curry 2 Question, Battery A collection of self-practice questions related to functional programming languages: curry 2. OpenDSA Functional Programming
568 Recursive Tree Processing: Mystery Function Tracing Exercise, Battery A collection of self-practice questions related to tree processing in a functional programming language: Mystery Function. OpenDSA Functional Programming
569 Determine Values Bound to a Variable in Environment Calculation Exercise, Battery A collection of self-practice questions related to determining values bound to a variable in environment of the functional programming language... OpenDSA Functional Programming
570 Expression Evaluation for SLang1 Calculation Exercise, Battery A collection of self-practice questions related to expression evaluation for the functional programming language SLang1. OpenDSA Functional Programming
571 Denoted Values in SLang1 Question, Battery A collection of self-practice questions related to denoted values in the functional programming language SLang1. OpenDSA Functional Programming
572 CFG Expression Evaluation Exercise Calculation Exercise, Battery A collection of self-practice questions where users evaluate a mathematical expression under the definition of a given CFG. OpenDSA Context-Free Grammar, Ambiguity
573 Identifying Fixed Point Combinators Question, Battery A collection of self-practice questions related to identifying fixed point combinators in the Lambda Calculus. OpenDSA Lambda Calculus
574 Functional Programming: Cons, Hd, and Tl Tracing Exercise, Battery A collection of self-practice questions related to the cons, hd, and tl operators. OpenDSA Functional Programming
575 Lambda Calculus: Bound Variables Calculation Exercise, Battery A collection of self-practice questions related to identifying bound variables in a Lambda Calculus expression. OpenDSA Lambda Calculus
576 Lambda Calculus: Free Variables Calculation Exercise, Battery A collection of self-practice questions related to identifying free variables in a Lambda Calculus expression. OpenDSA Lambda Calculus
577 Jison Grammar Exercise 1 Calculation Exercise A collection of self-practice questions where users calculate the number of strings parsed successfully by a given grammar. OpenDSA Parser Generator
578 Lambda Calculus: Semantics Question A collection of self-practice questions related to semantics of the Lambda Calculus. OpenDSA Lambda Calculus
579 Lambda Calculus: Syntax 1 Question, Battery A collection of self-practice questions related to syntax of the Lambda Calculus. OpenDSA Lambda Calculus
580 Lambda Calculus: Syntax 2 Question, Battery A second collection of self-practice questions related to syntax of the Lambda Calculus. OpenDSA Lambda Calculus
581 Functional Programming: Reduce 2 Question, Battery A collection of self-practice questions related to functional programming languages: reduce pattern. OpenDSA Functional Programming
582 Lambda Calculus: Substitution 1 Tracing Exercise, Battery A collection of self-practice questions related to substitution in the Lambda Calculus expression. OpenDSA Lambda Calculus
583 Lambda Calculus: Substitution 2 Tracing Exercise, Battery A second collection of self-practice questions related to substitution in the Lambda Calculus expression. OpenDSA Lambda Calculus
584 Lambda Calculus: Substitution Subcases 1 Question, Battery A collection of self-practice questions related to substitution subcases in the Lambda Calculus expression. OpenDSA Lambda Calculus
585 Lambda Calculus: Substitution Subcases 2 Question, Battery A second collection of self-practice questions related to substitution subcases in the Lambda Calculus expression. OpenDSA Lambda Calculus
586 Lambda Calculus: Substitution Subcases 3 Question, Battery A third collection of self-practice questions related to substitution subcases in the Lambda Calculus expression. OpenDSA Lambda Calculus
587 Polynomial Multiplication and Evaluation Review Questions Question, Battery Polynomial multiplication concepts battery of self-assessment questions. OpenDSA Transform, Polynomial Multiplication, Polynomial Evaluation
588 Bubble Sort: Review Questions Question, Battery Bubble Sort battery of self-assessment questions. OpenDSA Bubble Sort
589 Exchange Sorts: Review Questions Question, Battery Exchange Sorting battery of self-assessment multiple choice questions. OpenDSA Insertion Sort
590 Heapsort: Review Questions Question, Battery Heapsort battery of self-assessment questions. OpenDSA Heapsort
591 Insertion Sort: Review Questions Question, Battery Insertion Sort battery of self-assessment questions. OpenDSA Insertion Sort
592 Mergesort: Review Questions Question, Battery Mergesort battery of self-assessment questions. OpenDSA Mergesort
593 Quicksort: Review Questions Question, Battery Quicksort battery of self-assessment questions. OpenDSA Quicksort
594 Radix Sort: Review Questions Question, Battery Radix Sort battery of self-assessment questions. OpenDSA Radix Sort
595 Selection Sort: Review Questions Question, Battery Selection Sort battery of self-assessment questions. OpenDSA Selection Sort
596 Shellsort: Legal Series Questions Question, Battery Shellsort battery of self-assessment questions about whether a given diminishing increment series is legal for Shellsort. OpenDSA Shellsort
597 Shellsort: Review Questions Question, Battery Shellsort battery of self-assessment questions. OpenDSA Shellsort
598 Sorting Introduction: Summary Questions Question, Battery Sorting introduction battery of self-assessment multiple choice questions. OpenDSA Sorting Notation
599 BST Delete Max Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow visualizing recursive delete of the maximum value in a BST. OpenDSA Binary Search Tree
600 Traverse an expression tree Algorithm Visualization, Code Tracing Presentation Slideshow demonstrating traversal of an expression tree. The primary point is to highlight the node implementation for a full binary... OpenDSA Expression Tree, Binary Tree Traversal, Full Binary Tree
601 Heap Build Proof Slideshow Code Tracing Presentation, Algorithm Visualization Slideshow visualizing the cost of the efficient heap buiding algorithm, showing that it is a linear-time algorithm. OpenDSA Heap
602 Huffman Coding Tree Slideshow: Decoding Algorithm Visualization Slideshow visualizing the process of decoding a string of Huffman Codes. OpenDSA Huffman Coding Tree
603 Tree Timeline Slideshow Algorithm Visualization Slideshow showing the concept of marking a timeline for the values stored in a BST. This will be contrasted with... OpenDSA Trie
604 Trie Timeline Slideshow Algorithm Visualization Slideshow showing the concept of marking a timeline for the values stored in a Trie decomposition version of a BST. OpenDSA Trie
605 Binary Insertion Sort Slideshow Algorithm Visualization Slideshow introducing the concept of using binary search to find the insert location of the next record during Insertion Sort.... OpenDSA Binary Insertion Sort
606 General Tree Postorder Traversal Slideshow Algorithm Visualization Slideshow showing postorder traveral of a general tree, and demonstrates the general tree ADT. OpenDSA General Tree
607 General Tree Preorder Traversal Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow showing preorder traveral of a general tree, and demonstrates the general tree ADT. OpenDSA General Tree
608 Union/Find Examaple Slideshow Algorithm Visualization, Code Tracing Presentation Slideshow demonstrating processing of a series of union operations on a collection of disjoint sets. Shows the parent pointer representation... OpenDSA Union/Find Algorithm, Disjoint Set
609 Introduction to Hashing Slideshow Algorithm Visualization Slideshow showing the simplest of hashing approaches: Just put a key into that array position. OpenDSA Hashing
610 Paged BST Slideshow Algorithm Visualization Slideshow showing the use of paging with a BST-based index. Updating the BST to require it to remain a complete... OpenDSA Tree-Based Indexing
611 Paged BST with Page Rebalancing For Use on Disk Slideshow Algorithm Visualization Slideshow showing the use of paging with a BST-based index. Reorganizing the nodes to be on optimal disk pages reduces... OpenDSA Tree-Based Indexing
612 Building a 2-3+ Tree Slideshow Algorithm Visualization Slideshow showing a series of insertions into a 2-3+ tree. OpenDSA Tree-Based Indexing, 2-3 Tree
613 Deletion from a 2-3+ Tree Algorithm Visualization Slideshow showing a series of delete operations in a 2-3+ tree. OpenDSA Tree-Based Indexing, 2-3 Tree
614 Search in a 2-3+ Tree Algorithm Visualization Slideshow showing a series of search operations in a 2-3+ tree. OpenDSA Tree-Based Indexing, 2-3 Tree
615 Turing Machine to Copy a String Algorithm Visualization, Code Tracing Presentation Slideshow presenting the execution of a Turing machine that copies a string. OpenDSA Turing Machine
616 Circular Array-Based Queue Design Slideshow: Concepts Algorithm Visualization Slideshow presenting the concept of a circular array-based queue. OpenDSA Array-Based Queue
617 List ADT Positions Slideshow Presentation Slideshow discussing the concept of current position in a list and its implications for insertion. OpenDSA List
618 Freelist Slideshow Algorithm Visualization Slideshow presenting the concept of using a freelist instead of a system memory manager. OpenDSA Linked List
619 Symmetric Matrix Multiplication Reduction Presentation Slideshow showing a reduction of Matrix Multiply to Symmetric Matrix Multiply. This demonstrates that the lower bound for Symmetric Matrix... OpenDSA Reduction
620 Equivalence Relations Review Programmed Instruction Programmed Instruction Frameset presentation of equivalence relations review. OpenDSA Set
621 Programmed Instruction: Induction Proof For Factorial Programmed Instruction Programmed Instruction Frameset examples of induction proof proving a Factorial function implementation correct. OpenDSA Proof by Induction
622 Programmed Instruction: Induction Proof Examples Programmed Instruction Programmed Instruction Frameset examples of induction proofs. OpenDSA Proof by Induction
623 Programmed Instruction: Induction Proofs Programmed Instruction Programmed Instruction Frameset review of induction proofs. OpenDSA Induction Proof
624 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
625 Programmed Instruction: Proof Techniques Introduction Programmed Instruction Programmed Instruction Frameset presentation of basic proofs review, including proof by contradiction review. OpenDSA Proof
626 Relations Review Programmed Instruction Programmed Instruction Frameset presentation of basic relations terminology review. OpenDSA Set
627 Set Definitions Review Programmed Instruction Programmed Instruction Frameset presentation of basic set definitions and terminology review. OpenDSA Set
628 Set Notation Review Programmed Instruction Programmed Instruction Frameset presentation of basic set notation review. OpenDSA Set
629 Turing Machines Introduction Frameset Programmed Instruction Slideshow introducing the concept of a Turing machine and its formal definition. OpenDSA Collision Resolution
630 Turing Machines Configurations and Terminology Frameset Programmed Instruction Slideshow presenting the concept of a configuration for a Turing machine, along with defintions for terms like halting, accepting, and... OpenDSA Collision Resolution
631 Parse Tree Example for a Math Expression Algorithm Visualization Slideshow visualizing generation of a parse tree for a simple math expression. OpenDSA Parse Tree
632 Ambiguous Parse Tree Example for a Math Expression Algorithm Visualization Slideshow visualizing how generation of a parse tree from a grammar might be ambiguous. OpenDSA Parse Tree
633 Functional Programming Recursion: Summing Elements in a Tree Algorithm Visualization, Code Tracing Presentation Slideshow visualizing list-of-list (tree) processing in a functional programming language: sum all values. OpenDSA Functional Programming
634 Functional Programming Recursion: BST Algorithm Visualization, Code Tracing Presentation Slideshow visualizing list-of-list (tree) processing in a functional programming language: Binary Search Tree Search. OpenDSA Functional Programming
635 From Operation Algorithm Visualization Slideshow illustrating the concept of a lazy list. OpenDSA Parameter Passing, Lazy List
636 Lazy Lists Eager Evaluation Algorithm Visualization Slideshow illustrating the concept of eager evaluation for a lazy list. OpenDSA Parameter Passing, Lazy List
637 Lazy Lists Lazy Evaluation Algorithm Visualization Slideshow illustrating the concept of lazy evaluation for a lazy list. OpenDSA Parameter Passing, Lazy List
638 Garbage Disposal Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of garbage collection. OpenDSA Garbage Collection, Heap Memory
639 Link Nodes Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of Link Nodes. OpenDSA Link Node
640 Link Nodes: Iteration Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of iterating through a linked list. OpenDSA Link Node, Iteration
641 Link Nodes: Delete Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of deleting from a linked list. OpenDSA Link Node, Iteration
642 Link Nodes: Insertion Algorithm Visualization, Code Tracing Presentation Slideshow introducing the concept of inserting a new node into a linked list. OpenDSA Link Node, Iteration
643 Writing a Recursive Function: Variations Code Tracing Presentation Slideshow showing multiple examples of how to write a recursive function to do summation. OpenDSA Recursion
644 Skip List Insert Slideshow Algorithm Visualization Slideshow showing examples of insertion into a Skip List. OpenDSA Skip List, Randomized Algorithm
645 Skip List Delete Slideshow Algorithm Visualization Slideshow showing examples of deletion from a Skip List. OpenDSA Skip List, Randomized Algorithm
646 Evaluation and Interpolation Algorithm Visualization Slideshow demonstrating the relationships of evaluation and interpolation of a polynomial. OpenDSA Polynomial Multiplication, Polynomial Evaluation, Polynomial Interpolation
647 The Fast Fourier Transform Algorithm Visualization, Code Tracing Presentation Visual demonstration of the Fast Fourier Transform for polynomial multiplication. OpenDSA Polynomial Multiplication, Fast Fourier Transform
648 Using Posets for a Lower Bounds Proof Presentation Slideshow showing the use of posets in a proof of the lower bound for search in an unsorted list. OpenDSA Poset, Search in Unsorted Lists
649 Binsort Slideshow: Sorting a Permutation Algorithm Visualization Slideshow showing the details of sorting a permutation of the n values from 0 to n-1. OpenDSA Binsort
650 Binsort Slideshow: Generalized Version Algorithm Visualization Slideshow showing the details of binsort for an arbitrary key range. OpenDSA Binsort
651 Bubble Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Bubble Sort's cost in worst, average, and best cases. OpenDSA Bubble Sort, Worst Case, Average Case, Best Case
652 Exchange Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Echange Sorting cost. OpenDSA Bubble Sort, Worst Case, Average Case, Best Case
653 Heapsort Visualization Slideshow Algorithm Visualization Slideshow showing a visualization of the Heapsort algorithm. OpenDSA Heapsort
654 Insertion Sort Average Case Slideshow Code Tracing Presentation, Algorithm Analysis Presentation Slideshow showing an analysis of Insertion Sort's average-case behavior and cost. OpenDSA Insertion Sort, Average Case
655 Insertion Sort Best Case Slideshow Code Tracing Presentation, Algorithm Analysis Presentation Slideshow showing an analysis of Insertion Sort's best-case behavior and cost. OpenDSA Insertion Sort, Best Case
656 Insertion Sort Worst Case Analysis Code Tracing Presentation, Algorithm Analysis Presentation Slideshow showing an analysis of Insertion Sort's worst-case behavior and cost. OpenDSA Insertion Sort, Worst Case
657 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
658 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
659 Merging Slideshow Algorithm Visualization Slideshow showing the details of merging two sorted runs in Mergesort. OpenDSA Mergesort
660 Selection Sort Analysis Slideshow Algorithm Analysis Presentation Slideshow showing an analysis of Selection Sort's cost analysis. OpenDSA Selection Sort, Worst Case, Average Case, Best Case
661 Shellsort First Pass Details Slideshow Algorithm Visualization Slideshow showing the details of what records would be compared and swapped in the first pass of Shellsort. OpenDSA Shellsort
662 Shellsort Second Pass Sorting Details Slideshow Algorithm Visualization Slideshow showing the details of what records would be compared and swapped in the second pass of Shellsort. OpenDSA Shellsort
663 Shellsort Third Pass Sorting Details Slideshow Algorithm Visualization Slideshow showing the details of what records would be compared and swapped in the third pass of Shellsort. OpenDSA Shellsort
664 Shellsort Final Pass Details Slideshow Algorithm Visualization Slideshow showing the details of what records would be compared and swapped in the final "cleanup" pass of Shellsort. OpenDSA Shellsort
665 Pumping Lemma Slideshow Proof Visualization Simple demonstration of a Pumping Lemma proof to show that a language is not regular. OpenDSA Pumping Lemma, Non-Regular Language
666 Regular Expression to Minimized DFA Example Algorithm Visualization Visualization presenting examples of converting a Regular Expression to an equivalend NFA. OpenDSA Regular Expression, Non-Deterministic Finite Automata
667 BMI Calculator BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX arithmetic operations, arithmetic operators, operators, variables
668 BMI Calculator BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX operators, variables
669 JSON Conditionals 1 Display names of food items in a restaurant that have a beef as an ingredient from Mexican Cuisine. Assume you're... PCEX json, json-conditions
670 PANDAS GroupBy 1 From a class of 200 students, you have a dataset of students, their section, and grades. get the mean grade... PCEX json, pandas
671 PANDAS Select 1 From a class of 200 students, first select only student ids and their letter grades. Then, select students in 'Section... PCEX json, pandas
672 PANDAS Statistics 1 From a class of 200 students, you have a dataset of students, their section, and grades. Start by inspecting the... PCEX json, pandas, statistics
673 Calculating and Rounding Up Body Mass Index (BMI) To the Nearest Integer BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX arithmetic operations, arithmetic operators, data types, operators, variables
674 BMI Calculator BMI is a measure of body fat based on height and weight that applies to adult men and women. BMI... PCEX operators, variables
675 PANDAS GroupBy 1 Challenge From a class of 200 students, you have a dataset of students, their section, grades for 10 homeworks and grades.... PCEX
676 PANDAS Select 1 Challenge From a class of 200 students, first select only student ids and their letter grades. Then, select students with grades... PCEX
677 PANDAS Statistics 1 Challenge From a class of 200 students, you have a dataset of students, their section, and grades. Find students with grade... PCEX
678 Add transfer to ATM Code Completion Add the capability of transferring money from the currently selected account to the other account from the same account holder... CodeCheck Object-Oriented Design
679 Hash code for Person class Code Completion When you add instances of the given Person class in a HashSet, the resulting hash set is too large. Evidently,... CodeCheck Tree Structures
680 Map words to their lengths Code Completion Given an array of strings, create a tree map with each string as a key and its corresponding value the... CodeCheck Tree Structures
681 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
682 Railfence cypher Code Completion A simple way of encoding a message is the railfence cypher. The message is written downwards and diagonally on rails... CodeCheck Arrays and Array Lists
683 BankAccount with Service Charge Code Completion Change the withdraw method of the BankAccount class so that a charge of $1.00 is deducted for each withdrawal. CodeCheck Classes
684 Zipper words with helper method Code Completion Two strings of equal length can be interlaced like the teeth of a zipper to form a new word. For... CodeCheck Recursion
685 Zipper words Code Completion Two strings of equal length can be interlaced like the teeth of a zipper to form a new word. For... CodeCheck Recursion
686 Sort Names Code Completion We consider names of people that consist of first and last names, such as Joe Smith. When you sort names,... CodeCheck Branches
687 Preconditions for Sentence constructor Code Completion The constructor of the Sentence class below makes assumptions about the text parameter: CodeCheck Designing Classes
688 Preconditions for SalaryBonus constructor Code Completion The constructor of the SalaryBonus class below makes the following assumptions; CodeCheck Designing Classes
689 Selection sort modification placing even before odd Code Completion Implement a modification of the SelectionSorter class that reorders the array to have even elements followed by odd ones. Follow... CodeCheck Sorting and Searching
690 Modifying an Array (Case 1) Construct a program that increments all elements of the array by 1. PCEX arrays
691 Modifying an Array (Case 2) Construct a program that swaps pairs of adjacent elements of the array. For example, if the array is {1, 2,... PCEX arrays
692 Displaying the Days That are Above 32 Degrees Fahrenheit Construct a program that reads a series of temperatures and reports the days that are above 32 degrees Fahrenheit. Assume... PCEX arrays
693 Binary Search - 2 This function implements a recursive version of Binary Search PCEX
694 Binary Search - 2 This function implements a recursive version of Binary Search PCEX
695 Determining When All Three Boolean Variables Are Equal Construct a program that receives the value of three boolean variables from the user and determines whether all variables have... PCEX boolean expressions
696 PrintFileContent Read and print the contents of a text file. PCEX
697 Printing Consecutive Numbers Starting from Zero (Case 1) Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop
698 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop
699 Printing Consecutive Numbers Within a Specified Range (Case 1) Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX for loop
700 Printing Consecutive Numbers Within a Specified Range (Case 2) Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
701 Calculating the Employees Wage Based on the Hours That the Employee Has Worked and an Hourly Pay Rate Construct a program for the payment department of a company to calculate the wage of an employee based on the... PCEX control flow, if-else statement
702 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
703 Executing statements sequentially In imperative programming the order of the statements matters for the execution of the program. PCEX
704 Printing Name Initials Construct a program that prints the initials of the name "John Smith". PCEX strings
705 (Arrays) Grade scores - CSEdPad This program stores the grades of 10 students in the Natural Language Processing class. Then, the program calculates the highest... AnnEx arrays
706 (Two-dim arrays) Matrix multiply - CSEdPad This program demonstrates the multiplication of two matrices using a two-dimensional array AnnEx 2d arrays
707 Practicing class inheritance Construct a program using inheritance of classes to display a student’s name and score. Consider student as an instance of... jsParsons classes, objects
708 Dictionary Keys storage-dictionary stores the amount of certain items in storage. Construct a program that prints out a list of all the... jsParsons classes, data structures, dictionaries, dictionary, stacks
709 Construct a program with multiple if-elif statements Construct a program which checks whether each of the integers in interval from 1 to 100 is divisible by 2,... jsParsons
710 Construct a program with multiple if-elif statements Construct a program which checks which of the integers in interval from 1 to 50 is divisible by only 2,... jsParsons
711 Construct a program with multiple if-elif statements Construct a program which checks whether each of the integers in interval from 1 to 100 is divisible by 2,... jsParsons for loop
712 Reorganize the list Construct a function which partition the list of integers given as a parameter such that all even numbers come first... jsParsons
713 Calculating power Construct a function which calculates the power of a number. The function takes two integers as parameters (the base number... jsParsons
714 Letter frequency Construct a function which counts the frequency of each character in the string given as a parameter and returns a... jsParsons dictionaries
715 Letter frequency Construct a program which counts the frequency of each character in string 'Summer' and stores it in a dictionary. Finally,... jsParsons dictionaries
716 JSON Aggregate 1 You're provided a list of used cars in json list format. Find the the car by minimizing the cost. jsParsons json, json-aggregate
717 JSON Aggregate 2 You're provided a list of laptops in JSON list format. Find the best laptop by minimizing the price and maximizing... jsParsons json, json-aggregate
718 JSON Aggregate 4 You're provided a list of aircrafts and helicopter, with manufacturer information, date of manufacture and other information. Count the flights... jsParsons json, json-aggregate
719 JSON Aggregate 5 You're provided a list of aircrafts and helicopter, with manufacturer information, date of manufacture and other information. Find the minimum... jsParsons json, json-aggregate
720 JSON Conditions 1 you're provided information for a list of flights that go to and from New York, Pittsburgh and Miami. You have... jsParsons json, json-conditions
721 JSON Conditions 2 You're provided a list of aircrafts and helicopter. Shortlist the flights used in military. jsParsons json, json-conditions
722 Construct a function that traverse a linked list Construct a function that prints all elements of a Doubly Linked List in forwards and then reverse order.
DoublyLinkedList class implementation...
jsParsons doubly linked list, linked list
723 PANDAS GroupBy 1 You're provided a dataframe of used cars using pandas. Group the data by 'type' and calculate the average mileage for... jsParsons json, pandas
724 PANDAS GroupBy 2 You're provided a dataframe of used cars using pandas. Group the data by 'type' and count the number of cars... jsParsons pandas
725 PANDAS GroupBy 3 You're provided a dataframe of used cars using pandas. Group the data by 'type' and find the maximum mileage for... jsParsons pandas
726 PANDAS Select 1 You're provided a dataframe of used cars using pandas. Select the columns with their type, mileage and name jsParsons json, pandas
727 PANDAS Select 2 You're provided a dataframe of used cars using pandas. Select the columns with their type, mileage and name. filter those... jsParsons pandas
728 PANDAS Stats 1 You're provided a dataframe of used cars using pandas. Display the first 5 rows and calculate the average mileage of... jsParsons json, pandas, statistics
729 PANDAS Stats 2 You're provided a dataframe of used cars using pandas. Select the 'type' and 'mileage' columns and use describe() to display... jsParsons pandas, statistics
730 PANDAS Stats 3 You're provided a dataframe of used cars using pandas. Count how many cars belong to each type using value_counts() and... jsParsons pandas, statistics
731 Recursive Factorial Define a function that returns the factorial of a given positive integer. jsParsons functions, recursion, search, search algorithms, sorting, sorting algorithms
732 Swap Construct a program that swaps the values of x and y variables. jsParsons operators, variables
733 Passing Lists Construct a function that calculate square values of the list’s elements. PCEX list, value vs reference
734 Birthday Calculator Calculation, User Supplied Data Simple calculator for computing the probability of a collision occuring given a specified number of inserts into a specified table... OpenDSA Hashing, Collision Resolution
735 Parsing an Expression Algorithm Visualization, User Supplied Data Algorithm Visualization for generating the parse tree of a user-supplied mathematical expression. Demonstrates that the associated grammar enforces the correct... OpenDSA Parse Tree
736 Binary Search Proficency Exercise Tracing Exercise Interactive exercise where users indicate which elements of the array should be searched to reproduce the binary search algorithm's behavior. OpenDSA Binary Search
737 Double Hashing Proficiency Exercise Tracing Exercise User must show the result of doing a series of inserts using double hashing. The user indicates which position in... OpenDSA Collision Resolution
738 Hash Functions Exercises Calculation Exercise User must give the result of a specified hash function on a specified input. Where appropriate, user is expected to... OpenDSA Hash Function
739 Linear Hashing with Steps Proficiency Exercise Tracing Exercise User must show the result of doing a series of inserts using linear probing with steps. The user indicates which... OpenDSA Collision Resolution
740 Pseudo-Random Probing Proficiency Exercise Tracing Exercise User must show the result of doing a series of inserts -- OpenDSA Collision Resolution
741 Quadratic Probing Proficiency Exercise Tracing Exercise User must show the result of doing a series of inserts using quadratic probing. The user indicates which position in... OpenDSA Collision Resolution
742 Open Hashing Proficiency Exercise Tracing Exercise User must show the result of doing a series of inserts using open hashing. The user indicates which position in... OpenDSA Open Hashing
743 Introduction Chapter for CS1: Review Questions 1 Question, Battery Intro to Software Design Week 1 battery of self-assessment questions: Micro-Worlds OpenDSA Software Design
744 Introduction Chapter for CS1: Review Questions 2 Question, Battery Intro to Software Design Week 1 battery of self-assessment questions: Turning micro-worlds into code. OpenDSA Software Design
745 Introduction Chapter for CS1: Week 1 Reading Quiz Question, Battery Intro to Software Design Week 1 battery of self-assessment questions: Programming Concepts. OpenDSA Software Design
746 Linear Structures Chapter Summary Questions Question, Battery Self-practice questions related to all aspects of lists, stacks, and queues. OpenDSA List, Stack, Queue
747 Linear Data Structures Summary Questions Question, Battery Self-practice questions comparing uses of linear structures. OpenDSA List, Stack, Queue
748 Annotating Jison Exercise Tracing Exercise A question where users determine the results of parsing a given collection of strings. OpenDSA Parser Generator
749 Jison Grammar Exercise 2 Calculation Exercise A question where users calculate the number of strings parsed successfully by a given grammar. OpenDSA Parser Generator
750 Count Inversions Proficiency Exercise Calculation Exercise Proficiency exercise to count the number of inversions in an array. OpenDSA Exchange Sort, Inversion
751 Radix Sort Profiency Exercise Tracing Exercise Proficiency exercise for a pass of the Radix Sort algorithm. User must indicate how values in one array are moved... OpenDSA Quicksort
752 Inorder Traversal Shown in Detail Algorithm Visualization, Code Tracing Presentation Slideshow presenting a detailed visualization of inorder traversal of a binary tree and how the recursion works. OpenDSA Inorder Traversal
753 Postorder Traversal Shown in Detail Algorithm Visualization, Code Tracing Presentation Slideshow presenting a detailed visualization of postorder traversal of a binary tree and how the recursion works. OpenDSA Postorder Traversal
754 Preorder Traversal Shown in Detail Algorithm Visualization, Code Tracing Presentation Slideshow presenting a detailed visualization of preorder traversal of a binary tree and how the recursion works. OpenDSA Preorder Traversal
755 Bucket Hashing Slideshow Algorithm Visualization Slideshow showing the basic hash method of hashing to any free position within a computed bucket. OpenDSA Bucket Hashing
756 Alternate Double Hashing Slideshow Algorithm Visualization Slideshow demonstrating an alternate version of double hashing collision resolution. OpenDSA Collision Resolution
757 Context-Free Language Derivations Frameset Programmed Instruction Programmed Instruction Frameset discussing derivations of strings from Context-Free Grammars. OpenDSA Context-Free Language
758 Programmed Instruction: DFA Definitions Programmed Instruction Programmed Instruction Frameset covering the formal definition of a DFA. OpenDSA Deterministic Finite Automata
759 Programmed Instruction: Non-Deterministic Finite Automata Programmed Instruction Programmed Instruction Frameset introducing the concept of non-determinism and the NFA. OpenDSA Deterministic Finite Automata
760 Closure Properties to Show a Language Non-Regular: Example 1 Programmed Instruction, Proof Visualization Programmed Instruction slideshow demonstrating an example of using closure properties to prove a language non-regular. Language: a^n b^m a^m. OpenDSA Non-Regular Language, Closure Property
761 Closure Properties to Show a Language Non-Regular: Example 2 Programmed Instruction, Proof Visualization Programmed Instruction slideshow demonstrating an example of using closure properties to prove a language non-regular. Example 2. OpenDSA Non-Regular Language, Closure Property
762 Closure Properties to Show a Language Non-Regular Programmed Instruction, Proof Visualization Programmed Instruction slideshow introducing the concept of using closure properties to prove a language non-regular. OpenDSA Non-Regular Language, Closure Property
763 Pushdown Automata Acceptance Model Equivalence Frameset Programmed Instruction Programmed Instruction Frameset discussing the equivalence of various Pushdown Automata acceptance models. OpenDSA Pushdown Automata
764 NFA Conversion to Regular Expression Example Programmed Instruction Programmed Instruction Frameset presenting an example of converting a NFA to an equivalent Regular Expression. OpenDSA Regular Expression, Non-Deterministic Finite Automata
765 Regular Expressions Equivalent to NFA: Part 1 Programmed Instruction Programmed Instruction Frameset presenting Part 1 of 4 parts of a proof of equivalence of Regular Expressions and NFAs. OpenDSA Regular Expression, Non-Deterministic Finite Automata
766 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
767 Regular Expressions Equivalent to NFA: Example Programmed Instruction Programmed Instruction Frameset presenting examples of converting a Regular Expression to an equivalend NFA. OpenDSA Regular Expression, Non-Deterministic Finite Automata
768 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
769 Regular Expressions Equivalent to NFA: Part 4: Star Programmed Instruction Programmed Instruction Frameset presenting Part 4 of 4 parts of a proof of equivalence of Regular Expressions and NFAs. Kleene... OpenDSA Regular Expression, Non-Deterministic Finite Automata
770 Closure Properties for Regular Languages: Right Quotient Programmed Instruction Programmed Instruction Frameset presenting the concept of right quotient, and a proof that this operator is closed for regular languages. OpenDSA Regular Language, Closure Property
771 Closure Properties for Regular Languages: Homomorphism Programmed Instruction Programmed Instruction Frameset presenting the concept of homomorphism, and a proof that this operator is closed for regular languages. OpenDSA Regular Language, Closure Property
772 Decideable Questions about Regular Languages Programmed Instruction Programmed Instruction Frameset reviews the concept of decideablilty and presenting some key questions that are decideable for regular languages. OpenDSA Regular Language
773 Ambiguous Parse Tree Example for a Math Expression: 2 Algorithm Visualization Slideshow visualizing a second example of how generation of a parse tree from a grammar might be ambiguous. OpenDSA Parse Tree
774 Recursion Introduction Slideshow: Delegation Code Tracing Presentation Slideshow demonstrating the basic concepts of base cases and recursive calls in a function. OpenDSA Recursion
775 Skip List Introduction Slideshow Algorithm Visualization Slideshow showing an idealized version of the Skip List as an introduction to the concepts. OpenDSA Skip List
776 Constructing a Binomial Tree Algorithm Visualization Slideshow showing a small example of building a binomial tree. OpenDSA Binomial Tree
777 Polynomial Multiplication Introduction Slideshow Algorithm Visualization Slideshow showing how the terms of a polynomial affect its geometric shape. OpenDSA Polynomial Multiplication
778 Bubble Sort First Pass Slideshow Algorithm Visualization Slideshow showing a simple visualization of the first pass for Bubble Sort. OpenDSA Bubble Sort
779 Bubble Sort 2nd Pass Slideshow Algorithm Visualization Slideshow showing a simple visualization of the second pass for Bubble Sort. OpenDSA Bubble Sort
780 Mergesort Analysis Slideshow Algorithm Visualization Slideshow showing a visual analysis of Mergesort best, average, and worst case performance. OpenDSA Mergesort
781 Selection Sort First Pass Slideshow Algorithm Visualization Slideshow showing a simple visualization of the first pass for Selection Sort. OpenDSA Selection Sort
782 Selection Sort Second Pass Slideshow Algorithm Visualization Slideshow showing a simple visualization of the second pass for Selection Sort. OpenDSA Selection Sort
783 Modifying an Array Construct a program that increments all elements of the array by 1. PCEX arrays
784 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop, loops
785 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX for loop, loops
786 JLinkedListUtil This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... PCEX
787 Name Initials Construct a program that prints the initials of the name "John Smith". PCEX string operations, strings
788 JSON Aggregate 2 You're give the age of different people in JSON format, find the name of the person PCEX json, json-aggregate
789 JSON Conditionals 2 You're provide a JSON list of different books, find the ones with greater than 300 pages. PCEX json, json-conditions
790 Modifying a List Construct a program that increments all values of the list by 1. PCEX list
791 Adding Values to an Empty List Construct a program that creates a list of first ten positive odd numbers. PCEX list
792 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 10 (exclusive). PCEX for loop, loops
793 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 1 (inclusive) to 9 (inclusive). PCEX algorithm analysis, for loop, loops
794 Modifying an Array (Case 2) Construct a program that swaps pairs of adjacent elements of the array. For example, if the array is {1, 2,... PCEX arrays
795 Displaying the Days That are Above 32 Degrees Fahrenheit Construct a program that reads a series of temperatures and reports the days that are above 32 degrees Fahrenheit. Assume... PCEX arrays
796 Determining When All Three Boolean Variables Are Equal Construct a program that receives the value of three boolean variables from the user and determines whether all variables have... PCEX boolean expressions
797 Printing Consecutive Numbers Starting from Zero (Case 2) Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop, nested loops
798 Printing Consecutive Numbers Within a Specified Range (Case 2) Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
799 JLinkedListUtil Challenge This LinkedListUtil class tests various usages of the LinkedList class. The single param is an array of string. You will... PCEX
800 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
801 JSON Aggregate 2 Challenge You're give the age of different people in JSON format, find the name of the person PCEX json
802 JSON Conditionals 2 Challenge You're provide a JSON list of different books, find non-fiction books with rating greater than 4.5 PCEX json
803 JSON ITERATION 1 Challenge Write the code that prints the names of all restaurants. You're provided with list of restaurants in json format PCEX json
804 Modifying a List Construct a program that swaps pairs of adjacent elements of the list. For example, if the list is [1, 2,... PCEX list
805 Adding Values to an Empty List Construct a program that creates a list of eight string values received from the user. PCEX list
806 Printing Consecutive Numbers Starting from Zero Construct a program that prints a sequence of numbers from 0 (inclusive) to 6 (exclusive). PCEX for loop
807 Printing Consecutive Numbers Within a Specified Range Construct a program that prints a sequence of numbers from 8 (inclusive) to 14 (inclusive). PCEX for loop
808 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
809 Three Booleans (Case 3) Construct a program that receives the value of three boolean variables from the user and determines whether all variables have... PCEX boolean expressions, if-else statement
810 Class 1 (BankAccount) What is the final value of result? QuizJET classes, objects
811 Path lengths in binary tree Code Completion Your task is to compute a set of all path lengths in a binary tree. For example, given this tree, CodeCheck Tree Structures
812 Letter frequency map Code Completion Your task is to produce a map of the frequencies of all letters in a string. Letters are represented as... CodeCheck Tree Structures
813 Unique words in two string sets Code Completion Implement a method that receives two arrays of strings and determines which words are unique to each. CodeCheck Tree Structures
814 Letter set Code Completion Your task is to produce a set of all letters in a string. Letters are represented as strings of length... CodeCheck Tree Structures
815 Run lengths Code Completion A run is a sequence of adjacent repeated values. For example, the array with elements CodeCheck Arrays and Array Lists
816 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
817 BankAccount with Bonus for Opening Account Code Completion Implement a BankAccount that pays a bonus of $10 for each new account. CodeCheck Classes
818 BankAccount with Transaction Count Code Completion Change the deposit and withdraw methods of the BankAccount class so that a count of transactions is updated. For example,... CodeCheck Classes
819 ZipperWordGenerator Code Completion You are given two strings of equal length. Your task is to generate all zipper words that can be produced... CodeCheck Recursion
820 Using conditions for completion count Code Completion We will divide the work of computing the maximum of all values in an array over multiple threads. Each thread... CodeCheck Concurrency
821 Synchronizing multiple summation threads Code Completion We will divide the work of computing the sum of all values in an array over multiple threads. Each thread... CodeCheck Concurrency
822 Launching multiple summation threads and using yield Code Completion We will divide the work of computing the sum of all values in an array over multiple threads. Each thread... CodeCheck Concurrency
823 Color codes for double-sized image Code Completion Consider an image that is composed of a number of colored small squares, each colored in one of these 8... CodeCheck Loops
824 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
825 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
826 Get the version attribute from an RSS file Code Completion An RSS file describes a set of news items. Here is a sample RSS file: CodeCheck XML
827 Get the version attribute from an RSS file Code Completion An RSS file describes a set of news items. Here is a sample RSS file: CodeCheck XML
828 Overlapping sets Code Completion An open interval is the set of all numbers between a lower and upper bound. In mathematical notation, we write CodeCheck Branches
829 Generic matrix class as a map with integer keys Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
830 Generic matrix class as linear array Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
831 Generic matrix class as a map with integer pair keys Code Completion Your task is to complete the implementation of a generic Matrix class. A matrix is a two-dimensional arrangement of elements.... CodeCheck Generic Types
832 Celsius To Fahrenheit Conversion Construct a program that computes the Fahrenheit equivalent of an input Celsius value using the formula F = (9/5)C +... PCEX operators, primitive data types, variables
833 Fahrenheit to Celsius Conversion Construct a program that computes the Celsius equivalent of an input Fahrenheit value using the formula C = (F -... PCEX primitive data types
834 Rotating the Array Values to the Left by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
835 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 arrays
836 Rotating the Array Values to the Right by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
837 Rotating the List Values to the Right by Two Position Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX arrays
838 String Comparison (Case 1) Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX strings
839 Casting data types (Memphis) The code below demonstrates how to swap the values of x and y, and perform some casting operations to convert... AnnEx
840 (Recursion) Recursive is palindrome - CSEdPad This program checks a string is palindrome or not (first half of the string is the same as the second... AnnEx recursion
841 (While loops) While Loops Ex 1 - CSEdPad Loop with simple loop variable increment: Assume you have a list of 1,000 people in alphabetical order and you are... AnnEx while loop
842 Power calculation Construct a program which calculates the base raised to the power of the non-negative exponent. jsParsons
843 Reorganize the list Construct a program which partition the original list of integers such that all even numbers come first and all odd... jsParsons
844 Reorganize the list Construct a function which partition the original list of integers such that all even numbers come first and all odd... jsParsons
845 Reorganize the list Construct a program which partition the original list of integers such that all even numbers come first and all odd... jsParsons
846 Calculating power Construct a program which calculates the base raised to the power of the exponent. jsParsons
847 Odd or Even Construct a program that goes through a list of numbers and prints out whether they are odd or even. jsParsons algorithm analysis, for loop, loops
848 Reverse the list Construct a program which creates a new list that is reverse of list [1, 2, 3, 4, 5]. jsParsons value vs reference
849 Reverse the list Construct a program which creates a new list that is reverse of list [1, 2, 3, 4, 5]. jsParsons value vs reference
850 Reverse the list Construct a program which creates a new list that is reverse of list [1, 2, 3, 4, 5]. jsParsons value vs reference
851 Reverse the list Construct a program which creates a new list that is reverse of list [1, 2, 3, 4, 5]. jsParsons
852 Calculating power Construct a program that calculates the base raised to the power of the non-negative exponent without using multiplication. jsParsons for loop
853 Return Bigger or None Construct a function that returns the bigger value of the given arguments. If a and b are equal, it should... jsParsons functions, if-else statement
854 Printing a square star pattern Construct a program that takes an input as the size of a solid square and print the square. For example,... PCEX for loop, nested loops
855 Insertion Sort Insertion sort works similarly to how one would sort a hand of cards: by choosing an element and searching through... PCEX recursion, search algorithms, sorting, sorting algorithms
856 Selection sort Ascending-order Selection sort operates by finding the minimum element of an array and moving it to the “beginning” of the... PCEX recursion, search algorithms, sorting, sorting algorithms
857 Insertion Sort Challenge Insertion sort works similarly to how one would sort a hand of cards: by choosing an element and searching through... PCEX
858 Selection sort Challenge Descending-order Selection sort operates by finding the maximum element of an array and moving it to the “beginning” of the... PCEX
859 Huffman Coding Tree Build Visualization Algorithm Visualization, User Supplied Data Visualization for building a Huffman Coding Tree from a set of weights supplied by the user. OpenDSA Huffman Coding Tree
860 Union/Find Proficiency Exercise Tracing Exercise Proficiency exercise for the Union/Find algorithm to maintain a collection of disjoint sets. User must show the complete sequence of... OpenDSA Union/Find Algorithm
861 DFA Exercise: Both Even or Odd Automata Construction Exercise User creates a DFA that accepts the langugage of strings with both even a's and b's, or both odd a's... OpenDSA Deterministic Finite Automata
862 DFA Exercise: b Surrounds a Automata Construction Exercise User creates a DFA that accepts the langugage of strings where every a is surrounded by b's. OpenDSA Deterministic Finite Automata
863 DFA Exercise: Complement Even a, 3 b's Automata Construction Exercise User creates a DFA that accepts the complement of the langugage of strings with an even number of a's and... OpenDSA Deterministic Finite Automata
864 DFA Exercise: Complement No ba Automata Construction Exercise User creates a DFA that accepts the complement of the langugage of strings with a's and b's that does not... OpenDSA Deterministic Finite Automata
865 DFA Exercise: Divisible by 4 Automata Construction Exercise User creates a DFA that accepts the langugage of strings of binary numbers divisible by 4. OpenDSA Deterministic Finite Automata
866 DFA Exercise: Even a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's. OpenDSA Deterministic Finite Automata
867 DFA Exercise: Even a's, b's, odd a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's, followed by at least... OpenDSA Deterministic Finite Automata
868 DFA Exercise: Even a, 3 b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's and at least 3... OpenDSA Deterministic Finite Automata
869 DFA Exercise: Even a's Odd b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an even number of a's and an odd number... OpenDSA Deterministic Finite Automata
870 DFA Exercise: Even Binary Numbers Automata Construction Exercise User creates a DFA that accepts the langugage of even binary numbers. OpenDSA Deterministic Finite Automata
871 DFA Exercise: No 3 a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings of a's and b's without 3 consecutive a's. OpenDSA Deterministic Finite Automata
872 DFA Exercise: No ba Automata Construction Exercise User creates a DFA that accepts the langugage of strings with a's and b's that does not end in ba. OpenDSA Deterministic Finite Automata
873 DFA Exercise: Odd a's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's. OpenDSA Deterministic Finite Automata
874 DFA Exercise: Odd a's, 3 b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's and at most 3... OpenDSA Deterministic Finite Automata
875 DFA Exercise: Odd a's, Even b's Automata Construction Exercise User creates a DFA that accepts the langugage of strings with an odd number of a's and an even number... OpenDSA Deterministic Finite Automata
876 PDA Exercise: Twice as many a's as b's Automata Construction Exercise User creates a Pushdowns Automata that accepts the langugage of strings that have twice as many a's as b's. OpenDSA Pushdown Automata
877 PDA Exercise: Equal a's to b's or c's Automata Construction Exercise User creates a Pushdowns Automata that accepts the langugage of a's b's and c's with as many a's as either... OpenDSA Pushdown Automata
878 Regular Expression Exercise: Strings Containing aba RegEx Writing Exercise User writes an regular expression for the language of strings containing aba. OpenDSA Regular Expression
879 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
880 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
881 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
882 Regular Grammar Exercise: aaab*ba Grammar Construction Exercise User writes an regular grammar for the language of strings matching the regular expression (aaab*ba)*. OpenDSA Regular Expression, Regular Grammar
883 Regular Grammar Exercise: bb*aaa* Grammar Construction Exercise User writes an regular grammar for the language of strings that meet this regular expression: bb*aaa* OpenDSA Regular Expression, Regular Grammar
884 Turing Machine Exercise: Palindromes Automata Construction Exercise User creates a Turing machine that recognizes the language of palindromes on strings of a's and b's. OpenDSA Turing Machine
885 Turing Machine Exercise: Erase abc Automata Construction Exercise User creates a Turing machine that erases a string of a's, b's, and c's. OpenDSA Turing Machine
886 Turing Machine Exercise: Keep abc Automata Construction Exercise User creates a Turing machine that moves over a string of a's, b's, and c's. OpenDSA Turing Machine
887 Binary Tree Definition Calculation Questions Question, Battery, Calculation Exercise Self-practice questions about binary tree terminology that require calculation of quantities such as node counts and tree heights. OpenDSA Binary Tree
888 Binary Tree Terminology Practice Questions Question, Battery Self-practice questions about binary tree terminology that require calculation of quantities such as descendants and tree heights. OpenDSA Binary Tree
889 Birthday Calculator Exercises Calculation Exercise User must use the birthday calculator to determine the smallest number of inserts into a hash table of a specified... OpenDSA Hashing, Collision Resolution
890 Alternate Form Bucket Hashing Proficiency Exercise Tracing Exercise User must give the result from a series of inserts using bucket hashing. This version uses a variation on bucket... OpenDSA Bucket Hashing
891 Bucket Hashing Proficiency Exercise Tracing Exercise User must give the result from a series of inserts using bucket hashing. The user clicks on an array to... OpenDSA Bucket Hashing
892 Linear Probing Proficiency Exercise Tracing Exercise User must give the result from a series of inserts using linear probing collision resolution. The user clicks on an... OpenDSA Linear Probing
893 Conditional statements: Using the Right Conditional Statement Question, Battery Conditional Statement self-assessment questions: Deciding when to use each type of conditional structure. OpenDSA Conditional Statement
894 Sequences Code Output Exercise Tracing Exercise User shows the sequence generated by a given piece of code. OpenDSA Parameter Passing
895 Match Code to Output Exercise Tracing Exercise User shows the output generated by a given piece of code. OpenDSA Parameter Passing
896 Recursive Code Tracing Exercise: Backward Flow Tracing Exercise Recursive Code Tracing Exercise collection focusing on backward flow of information. OpenDSA Recursion
897 Recursive Code Tracing Exercise: Forward Flow Tracing Exercise Recursive Code Tracing Exercise collection focusing on foward flow of information. OpenDSA Recursion
898 Recursive Code Tracing Exercise: Call Count Tracing Exercise Recursive Code Tracing Exercise collection focusing on counting the number of function calls made. OpenDSA Recursion
899 Best, Worst, and Average cases slideshow Presentation Slideshow illustrating analysis when there are different inputs of a given size. OpenDSA Problem, Algorithm, Program
900 Simple analysis cases slideshow Presentation Slideshow illustrating analysis when there is only one input of a given size. OpenDSA Problem, Algorithm, Program
901 Binary Search Algorithm Worst Case Analysis Recurrence Visualization Algorithm Analysis Presentation Slideshow illustrating Binary Search worst case analysis through analysis of its recurrence relation. OpenDSA Binary Search, Algorithm Analysis, Recurrence Relation
902 LRU Replacement with Write Slideshow Algorithm Visualization Slideshow illustrating optimizing the Least Recently Used replacement heuristic by use of a dirty bit to minimize unnecessary writes. OpenDSA Buffer Pool, Least Recently Used, Dirty Bit
903 General Tree Serialization Slideshow Algorithm Visualization Slideshow how to reconstruct a general tree from a serialized representation of its node values. OpenDSA Serialization, Binary Tree
904 Binary Tree Serialization Slideshow: Internal Node Mark Bits Algorithm Visualization Slideshow how to reconstruct a binary tree from a serialized representation of its node values. Alternative representation using mark bits... OpenDSA Serialization, Binary Tree
905 Binary Tree Serialization Slideshow Algorithm Visualization Slideshow how to reconstruct a binary tree from a serialized representation of its node values. OpenDSA Serialization, Binary Tree
906 Quadratic Probing Problems Slideshow Algorithm Visualization Slideshow demonstrating how quadratic probing does not always visit all slots of the hash table during collision resolution. OpenDSA Collision Resolution
907 Linear Probing Bad Performance Slideshow Algorithm Visualization Slideshow showing why linear probing is a poor method of collision resolution. OpenDSA Collision Resolution
908 Programmed Instruction: DFA Minimization Example 1 Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA: Example 1. OpenDSA Deterministic Finite Automata
909 Programmed Instruction: DFA Minimization Example 2 Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA: Example 2. OpenDSA Deterministic Finite Automata
910 Programmed Instruction: DFA Minimization Programmed Instruction Programmed Instruction Frameset presenting the algorithm to minimize the number of states in a DFA. OpenDSA Deterministic Finite Automata
911 Closure Properties for Context-Free Languages Programmed Instruction Programmed Instruction slideshow explaining the concept and giving examples of closure properties for Context-Free Languages. OpenDSA Context-Free Language, Closure Property
912 Functional Programming List Processing: Summation Algorithm Visualization, Code Tracing Presentation Slideshow visualizing basic list processing in a functional programming language: Summation of list values. OpenDSA Functional Programming
913 Java Data Types Presentation Slideshow showing primitive data types in Java and the concept of object and reference. OpenDSA Pointer, Reference, Data Type, Object
914 Call Structure for the Fibonacci Sequence Problem Algorithm Visualization Slideshow showing the tree structure for calls by a recursive implementation of the Fibonacci sequence calculation. OpenDSA Dynamic Programming, Fibonacci Sequence
915 Heapsort Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the cost of Heapsort. OpenDSA Heapsort
916 Insertion Sort Slideshow Algorithm Visualization Slideshow showing a visualization for the first pass of Insertion Sort. OpenDSA Insertion Sort
917 Quicksort Average Case Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the average-case cost of Quicksort. OpenDSA Quicksort
918 Quicksort Best Case Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the best-case cost of Quicksort. OpenDSA Quicksort
919 Quicksort Partition Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the cost of the partition step for Quicksort. OpenDSA Quicksort
920 Quicksort Worst Case Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the worst-case cost of Quicksort. OpenDSA Quicksort
921 Radix Sort Analysis Algorithm Visualization Slideshow showing a visual analysis for the cost of Radix Sort. OpenDSA Radix Sort
922 Sorting Lower Bound Analysis Slideshow Algorithm Visualization Slideshow showing a visual proof for the lower bound of the general sorting problem. OpenDSA Sorting Problem Lower Bound
923 Unit Converter Construct a program that computes the Fahrenheit equivalent of an input Celsius value using the formula F = (9/5)C +... PCEX arithmetic operators, constants, operators, primitive data types, variables
924 Rotating the Array Values Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
925 Three Booleans Construct a program that determines whether at least one of the three boolean variables is true based on the inputs... PCEX boolean expressions
926 String Comparison Construct the program that first checks the equality of the strings "HELLO WORLD!" and "hello world!" and then modifies the... PCEX string operations, strings
927 Unit Converter Construct a program that computes the Fahrenheit equivalent of an input Celsius value using the formula F = (9/5)C +... PCEX operators, variables
928 Rotating the List Values Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX algorithm analysis, classes, data structures, list, stacks
929 Three Booleans Construct a program that determines whether at least one of the three boolean variables is True based on the inputs... PCEX boolean expressions, boolean logic, if-else statement, logical operators
930 Fahrenheit to Celsius Conversion Construct a program that computes the Celsius equivalent of an input Fahrenheit value using the formula C = (F -... PCEX arithmetic operators, constants, data types, operators, primitive data types, variables
931 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 arrays
932 Rotating the Array Values to the Right by One Position Construct a program that has a method that receives an array of values and returns the array rotated to the... PCEX arrays
933 Rotating the List Values to the Right by Two Position Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX arrays
934 Unit Converter Construct a program that computes the Celsius equivalent of an input Fahrenheit value using the formula C = (F -... PCEX operators, variables
935 Rotating the List Values (Case 2) Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX list
936 Rotating the List Values (Case 3) Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX list
937 Rotating the List Values (Case 4) Construct a program that has a function that receives a list of values and returns the list rotated to the... PCEX list
938 Three Booleans (Case 2) Construct a program that determines whether at least one of the three boolean variables is False based on the inputs... PCEX boolean expressions, if-else statement
939 Average word length Code Completion Complete the following program to compute the average length of the words. Invoke the appropriate method to compute the length... CodeCheck Objects
940 Select a short word Code Completion You want to pick a particular “short” word in an array of words, that is, words with at most three... CodeCheck Arrays and Array Lists
941 Short words Code Completion You want to collect all “short” words in an array of words, that is, words with at most three characters.... CodeCheck Arrays and Array Lists
942 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
943 A slow sorting algorithm with two threads Code Completion Consider the following algorithm to sort an array of strings and remove duplicates, using two threads. CodeCheck Concurrency
944 Throw IllegalArgumentException in SavingsAccount constructor Code Completion The SavingsAccount class given below is similar to that of Chapter 9. It should be illegal to construct savings accounts... CodeCheck Input and Output
945 Design IllegalNumberOfWheels Exception Code Completion The following Vehicle class throws a custom exception of type IllegalNumberOfWheels. Your task is to implement this exception class. The... CodeCheck Input and Output
946 Throw IllegalArgumentException in Vehicle constructor Code Completion The Vehicle class given below is used to represent various types of self-propelled vehicles. It should be illegal to construct... CodeCheck Input and Output
947 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
948 Degree, Minute, Second Code Completion Latitude and longitude can be expressed in the form of decimal degrees. Another form, often used on maps, is degrees,... CodeCheck Fundamental Data Types
949 Sort real data Code Completion Your task is to sort an array list of path names such as CodeCheck Sorting and Searching
950 Generic method for filling an array Code Completion The class below has a static method which sets all elements of an array to a value. The method is... CodeCheck Generic Types
951 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
952 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
953 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 2d arrays
954 Increment/Decrement Operators (Case 1) Construct a program that performs increment/decrement operations on variable a (with initial value of 4) and variable b (with initial... PCEX arithmetic operations, operators, variables
955 Increment/Decrement Operators (Case 2) Construct a program that performs increment/decrement operations on variable a (with initial value of 8) and variable b (with initial... PCEX arithmetic operations, operators, variables
956 Increment/Decrement Operators (Case 3) Construct a program that performs increment/decrement operations on variable a (with initial value of 6) and variable b (with initial... PCEX arithmetic operations, operators, variables
957 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
958 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
959 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
960 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
961 (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
962 Variables assignment (Memphis) Some basic variable demos. The final part of the code below demonstrates how to swap the values of x and... AnnEx
963 Class Point Construct a class Point which has a method to tell distance from another instance of Point. jsParsons classes, data structures, objects, stacks
964 Practicing manipulating variables and checking types Construct a program that calculate two variables' modulus and check the type of the modulus jsParsons data types
965 Reverse the list Construct a program which creates a new list that is the reverse of the orginal list. jsParsons list
966 Reverse the list Construct a program which creates a new list that is the reverse of the orginal list. jsParsons list
967 Reverse the list Construct a program which creates a new list that is the reverse of the orginal list. jsParsons list
968 Reverse the list Construct a program which creates a new list that is the reverse of the orginal list. jsParsons
969 Nested ifs Construct a program that prints out a sentence depending on the time of day. Night is considered to be before... jsParsons algorithm analysis, control flow, if statement, if-else statement
970 Printing file contents Construct a program that opens up a file and prints out each line of the file jsParsons exception handling, file i/o
971 String join Construct a program that prints out a sentence from a given list of words. jsParsons strings
972 Greatest Common Factor Construct a program that recursively finds and returns the great common factor between of two integers. PCEX recursion, search, search algorithms, sorting, sorting algorithms
973 Input Manipulation Challenge Construct a program that takes a user's inputs and calculate the division of the inputs.Then convert the division result into... PCEX functions
974 Greatest Common Factor Challenge Construct a program that recursively finds and returns the great common factor between of two integers. This is a simple... PCEX recursion
975 CFG Exercise: a's and b's are equal Grammar Construction Exercise User creates a CFG that generates strings in the language where the number of a's and b's is equal. OpenDSA Context-Free Grammar
976 Turing Machine Exercise: Add an a Automata Construction Exercise User creates a Turing machine that adds an a to a string of a's. OpenDSA Turing Machine
977 Heapsort Profiency Exercise Tracing Exercise Heapsort proficiency exercise. User must show all of the steps for updating the array during Heapsort. OpenDSA Heapsort
978 Mergesort Profiency Exercise Tracing Exercise Mergesort proficiency exercise. User must show all of the merge steps for all values in the array. OpenDSA Mergesort
979 Triangle Classification TestCase Exercise Code Testing Exercise Interactive exercise where user enters input values for a triangle classifier problem with the goal of getting complete code coverage.... OpenDSA Test Case, Code Coverage
980 Extended BNF Exercise Question A question where users select extended BNF statements matching a normal set of BNF statements. OpenDSA Context-Free Grammar
981 Huffman Coding Tree Slideshow: Build Algorithm Visualization Slideshow visualizing the Huffman Coding Tree construction algorithm: Building the tree from a collection of weighted elements. OpenDSA Huffman Coding Tree
982 Full Binary Tree Serialization Slideshow: Mark Bits Algorithm Visualization Slideshow how to reconstruct a full binary tree from a serialized representation of its node values. All that is needed... OpenDSA Serialization, Binary Tree
983 Array-Based Queue Design Problem Slideshow Algorithm Visualization Slideshow presenting the problem that elements in an array-based queue will eventually run out of space. OpenDSA Array-Based Queue
984 Pumping Lemma Example: wwR Programmed Instruction, Proof Visualization Programmed Instruction slideshow showing the pumping lemma proof that the language consisting of a string w followed by the reverse... OpenDSA Non-Regular Language
985 Shellsort First Pass Sublist Slideshow Algorithm Visualization Slideshow showing the sublists that would be processed by the first pass of Shellsort (increments of size n/2). OpenDSA Shellsort
986 Shellsort Second Pass Sublist Slideshow Algorithm Visualization Slideshow showing a visualization for the sublists that would be sorted in the second pass of Shellsort. OpenDSA Shellsort
987 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
988 Increment-Decrement Operators Construct a program that performs increment/decrement operations on variable a (with initial value of 4) and variable b (with initial... PCEX arithmetic operations, arithmetic operators, operators, variables
989 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
990 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
991 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
992 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 2d arrays, arrays
993 Increment/Decrement Operators (Case 2) Construct a program that performs increment/decrement operations on variable a (with initial value of 8) and variable b (with initial... PCEX arithmetic operations, arithmetic operators, operators, variables
994 Increment/Decrement Operators (Case 3) Construct a program that performs increment/decrement operations on variable a (with initial value of 6) and variable b (with initial... PCEX arithmetic operations, arithmetic operators, operators, variables
995 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
996 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 2d list, value vs reference
997 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
998 Collaborator classes Code Completion In some situations, a class needs the help of other classes to complete a task. These other classes are called... CodeCheck Object-Oriented Design
999 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
1000 Same beginning and end sequence Code Completion Your task is to determine whether an array has the same sequence of numbers at the beginning and the end,... CodeCheck Arrays and Array Lists