CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
154
Find Maximum in an ArrayAn int array is given.
easyNot startedSolve
155
Sum of an ArrayAn int array is given.
easyNot startedSolve
156
Average of an ArrayAn int array is given.
easyNot startedSolve
157
Print Array ElementsAn int array is given.
easyNot startedSolve
158
Array LengthAn int array is given.
easyNot startedSolve
159
First and Last ElementAn int array is given.
easyNot startedSolve
160
Count Even NumbersAn int array is given.
easyNot startedSolve
161
Count Greater Than TenAn int array is given.
easyNot startedSolve
162
Sum of Even NumbersAn int array is given.
easyNot startedSolve
163
Range of an ArrayAn int array is given.
easyNot startedSolve
164
Does the Array Contain a ValueAn int array is given.
easyNot startedSolve
165
Count Occurrences of a ValueAn int array is given.
easyNot startedSolve
166
Double Every ElementAn int array is given.
easyNot startedSolve
167
Index of the MaximumAn int array is given.
easyNot startedSolve
168
Find Minimum in an ArrayAn int array is given.
easyNot startedSolve
169
Sum With foreachAn int array is given.
easyNot startedSolve
287
Sum of an Integer ArrayYou are given an array of integers.
easyNot startedSolve
288
Largest Value in an ArrayYou are given an array of test scores.
easyNot startedSolve
289
How Many Items Are in the ArrayYou are given a string array of fruit names.
easyNot startedSolve
290
Print Every ColorYou are given a string array of colors.
easyNot startedSolve
291
Read One Element by IndexYou are given an array of prime numbers.
easyNot startedSolve
292
Count the Even NumbersYou are given an array of integers.
easyNot startedSolve
293
Smallest Value in an ArrayYou are given an array of daily temperatures.
easyNot startedSolve
467
Product of an ArrayGiven the array {1, 2, 3, 4}, multiply all of its elements together and print the product (see Expected Output).
easyNot startedSolve
468
Count Odd NumbersGiven the array {1, 2, 3, 4, 5, 6, 7}, count how many elements are odd and print the count (see Expected Output).
easyNot startedSolve
469
Sum of Odd NumbersGiven the array {1, 2, 3, 4, 5}, add up only the odd elements and print the total (see Expected Output).
easyNot startedSolve
470
Count Negative NumbersGiven the array {-3, 2, -1, 0, 5, -8}, count how many elements are negative and print the count (see Expected Output).
easyNot startedSolve
471
Count Zeros in an ArrayGiven the array {0, 1, 0, 2, 0, 3}, count how many elements equal 0 and print the count (see Expected Output).
easyNot startedSolve
472
Print Array in Reverse OrderGiven the array {1, 2, 3, 4, 5}, print its elements from last to first on one line, separated by single spaces (see Expected Output).
easyNot startedSolve
473
Swap First and Last ElementsGiven the array {1, 2, 3, 4, 5}, swap its first and last elements, then print the whole array on one line separated by spaces (see Expected Output).
easyNot startedSolve
474
Copy an ArrayCopy the array {10, 20, 30} into a brand new array, then print the copy on one line separated by spaces (see Expected Output).
easyNot startedSolve
475
Sum of SquaresGiven the array {1, 2, 3, 4}, add up the square of each element and print the total (see Expected Output).
easyNot startedSolve
476
Print Elements at Even IndicesGiven the array {10, 11, 12, 13, 14, 15}, print the elements at the even indices 0, 2, 4, ...
easyNot startedSolve
477
Print Each Element with Its IndexGiven the array {5, 8, 3}, print each element on its own line in the form index: value (see Expected Output).
easyNot startedSolve
478
Increment Every ElementGiven the array {1, 2, 3}, add 1 to every element, then print the array on one line separated by spaces (see Expected Output).
easyNot startedSolve
479
Sum of First and Last ElementGiven the array {4, 8, 15, 16, 23, 42}, print the sum of its first and last elements (see Expected Output).
easyNot startedSolve
170
Second Largest ElementAn int array is given.
mediumNot startedSolve
171
Element-wise Sum of Two ArraysTwo int arrays of equal length are given.
mediumNot startedSolve
172
Count Above the AverageAn int array is given.
mediumNot startedSolve
173
Is the Array SortedAn int array is given.
mediumNot startedSolve
174
Sum a List<int>Create a List<int>, add the values 5, 10, and 15 to it, then print the total of its elements.
mediumNot startedSolve
175
Reverse an Array In PlaceAn int array is given.
mediumNot startedSolve
294
Average of an Array (Practice)You are given an array of integers.
mediumNot startedSolve
295
Sum of Even-Indexed ElementsYou are given an array of integers.
mediumNot startedSolve
296
Count Long WordsYou are given a string array of words.
mediumNot startedSolve
480
Index of a ValueRead a line of space-separated integers, then read a target integer on the next line.
mediumNot startedSolve
481
Concatenate Two ArraysGiven the arrays {1, 2, 3} and {4, 5, 6}, build one new array containing the first array's elements followed by the second array's elements, then print it on one line separated by spaces (see Expected Output).
mediumNot startedSolve
482
Count Distinct ElementsGiven the array {1, 2, 2, 3, 3, 3, 4}, count how many different values it contains and print the count (see Expected Output).
mediumNot startedSolve
483
Check if All Elements Are PositiveRead a line of space-separated integers.
mediumNot startedSolve
484
Replace Negatives with ZeroGiven the array {3, -1, 4, -5, 9}, change every negative element to 0, then print the array on one line separated by spaces (see Expected Output).
mediumNot startedSolve
485
Running SumGiven the array {1, 2, 3, 4}, build the running total where each position holds the sum of all elements up to and including it, then print the running totals on one line separated by spaces (see Expected Output).
mediumNot startedSolve
486
Index of the MinimumGiven the array {7, 3, 9, 2, 8}, print the index of its smallest element (see Expected Output).
mediumNot startedSolve
487
Sum of Elements at Odd IndicesGiven the array {10, 20, 30, 40, 50, 60}, add up the elements at the odd indices 1, 3, 5, ...
mediumNot startedSolve
176
Sort an Array AscendingAn int array is given.
hardNot startedSolve
177
Most Frequent ElementAn int array is given (all values 0-9).
hardNot startedSolve
178
Rotate an Array Left by OneAn int array is given.
hardNot startedSolve
488
Move Zeros to EndGiven the array {0, 1, 0, 3, 12}, move every 0 to the end while keeping the order of the non-zero elements, then print the array on one line separated by spaces (see Expected Output).
hardNot startedSolve
489
Two SumGiven the array {2, 7, 11, 15} and the target 9, find the two elements that add up to the target and print their indices in increasing order, separated by a space.
hardNot startedSolve
490
Remove Duplicates from Sorted ArrayThe array {1, 1, 2, 3, 3, 4} is already sorted.
hardNot startedSolve
491
Find the Missing NumberThe array {1, 2, 4, 5, 6} contains every number from 1 to 6 except one.
hardNot startedSolve