CJCoding With Joseph
TitleTopicsAction
145
Count Zeros in an ArrayRead an integer n, then read n integers. Count how many of the values are exactl...
easy○ Not Started
ArraysLoops
Solve
226
Find Minimum in an Integer ArrayAn integer array contains `{12, 5, 19, 3, 8}`. Loop through the array and print ...
easy○ Not Started
Arrays
Solve
227
Find Maximum in an Integer ArrayAn int array is given. Find the largest value in it and print that value. For t...
easy○ Not Started
Arrays
Solve
228
Sum of an Integer ArrayAn int array is given. Add up all of its elements and print the total. For the ...
easy○ Not Started
Arrays
Solve
229
Average of an Integer ArrayAn int array is given. Compute the integer average of its elements (the sum divi...
easy○ Not Started
Arrays
Solve
230
Print Array ElementsAn int array is given. Print all of its elements on one line, separated by singl...
easy○ Not Started
Arrays
Solve
231
Array LengthAn int array is given. Print how many elements it has. For the array {3, 1, 4, ...
easy○ Not Started
Arrays
Solve
232
First and Last ElementAn int array is given. Print its first and last elements separated by a single s...
easy○ Not Started
Arrays
Solve
233
Count Even Numbers in an ArrayAn int array is given. Count how many of its elements are even, and print the co...
easy○ Not Started
Arrays
Solve
234
Count Elements Greater Than TenAn int array is given. Count how many of its elements are greater than 10, and p...
easy○ Not Started
Arrays
Solve
235
Sum of Even Numbers in an ArrayAn int array is given. Add up only the even elements and print the total. For t...
easy○ Not Started
Arrays
Solve
236
Range of an ArrayAn int array is given. The range is the largest element minus the smallest eleme...
easy○ Not Started
Arrays
Solve
237
Does the Array Contain a ValueAn int array is given. Print 'Found' if the value 7 appears anywhere in the arra...
easy○ Not Started
Arrays
Solve
238
Count Occurrences of a ValueAn int array is given. Count how many times the value 2 appears, and print the c...
easy○ Not Started
Arrays
Solve
239
Double Every ElementAn int array is given. Print each element multiplied by 2, on one line separated...
easy○ Not Started
Arrays
Solve
240
Index of the MaximumAn int array is given. Print the index (position, starting from 0) of the larges...
easy○ Not Started
Arrays
Solve
376
Product of All Array ElementsMultiply all elements of the array `{1, 2, 3, 4, 5}` together and print the sing...
easy○ Not Started
Arrays
Solve
377
Count Odd Numbers in an ArrayThe array `{3, 8, 5, 12, 7, 4, 9}` is given. Count how many elements are odd and...
easy○ Not Started
Arrays
Solve
378
Sum of First and Last ElementsThe array `{10, 20, 30, 40, 50}` is given. Print the sum of only its first and l...
easy○ Not Started
Arrays
Solve
379
Print Array Elements in ReverseThe array `{1, 2, 3, 4, 5}` is given. Print each element on its own line, from t...
easy○ Not Started
Arrays
Solve
380
Count Negative Numbers in an ArrayThe array `{4, -2, 7, -8, -1, 3, 0}` is given. Count how many elements are stric...
easy○ Not Started
Arrays
Solve
381
Sum of Odd Numbers in an ArrayThe array `{3, 8, 5, 12, 7, 4, 9}` is given. Add together only the odd elements ...
easy○ Not Started
Arrays
Solve
382
Sum of Squares of Array ElementsThe array `{1, 2, 3, 4}` is given. Square each element and add the squares toget...
easy○ Not Started
Arrays
Solve
383
Count Elements Divisible by ThreeThe array `{9, 4, 3, 7, 12, 5, 18}` is given. Count how many elements are evenly...
easy○ Not Started
Arrays
Solve
384
Swap First and Last ElementsThe array `{1, 2, 3, 4, 5}` is given. Swap the first element with the last eleme...
easy○ Not Started
Arrays
Solve
385
Print Even-Indexed ElementsThe array `{10, 20, 30, 40, 50, 60}` is given. Print only the elements at even i...
easy○ Not Started
Arrays
Solve
386
Count Elements Equal to the FirstThe array `{5, 3, 5, 5, 2, 5}` is given. Count how many elements are equal to th...
easy○ Not Started
Arrays
Solve
387
Largest Absolute ValueThe array `{3, -7, 2, -9, 4}` is given. Find the largest absolute value (magnitu...
easy○ Not Started
Arrays
Solve
388
Count Elements Less Than FiveThe array `{2, 7, 4, 9, 1, 5, 3}` is given. Count how many elements are strictly...
easy○ Not Started
Arrays
Solve
147
Longest Word LengthRead an integer n, then read n words. Find and print the length of the longest w...
medium○ Not Started
ArraysLoops
Solve
241
Second Largest ElementAn int array is given. Find and print the second largest value (the largest valu...
medium○ Not Started
Arrays
Solve
242
Element-wise Sum of Two ArraysTwo int arrays of the same length are given. Print a single line where each posi...
medium○ Not Started
Arrays
Solve
243
Count Elements Above the AverageAn int array is given. Compute its integer average, then count how many elements...
medium○ Not Started
Arrays
Solve
244
Is the Array Sorted AscendingAn int array is given. Print 'Sorted' if every element is less than or equal to ...
medium○ Not Started
Arrays
Solve
245
Reverse an Array In PlaceAn int array is given. Reverse the order of its elements by swapping (without cr...
medium○ Not Started
Arrays
Solve
389
Linear Search for a ValueThe array `{4, 8, 15, 16, 23, 42}` is given. Read a single integer target from s...
medium○ Not Started
Arrays
Solve
390
Second Smallest ElementThe array `{7, 3, 9, 1, 5}` is given. Find and print the SECOND smallest element...
medium○ Not Started
Arrays
Solve
391
Check for Duplicate ValuesThe array `{3, 5, 2, 5, 8}` is given. Determine whether any value appears more t...
medium○ Not Started
Arrays
Solve
392
Check if All Elements Are PositiveThe array `{4, 9, 2, 7, 1}` is given. Print `true` if every element is strictly ...
medium○ Not Started
Arrays
Solve
393
Build a Prefix Sum ArrayThe array `{2, 4, 6, 8}` is given. Build a new array where each position holds t...
medium○ Not Started
Arrays
Solve
394
Best Buy and Sell ProfitThe array `{7, 1, 5, 3, 6, 4}` holds daily prices in order. Find the largest val...
medium○ Not Started
Arrays
Solve
395
Concatenate Two ArraysTwo arrays `a = {1, 2, 3}` and `b = {4, 5, 6}` are given. Build a single array t...
medium○ Not Started
Arrays
Solve
396
Find the Missing NumberThe array `{1, 2, 4, 5, 6}` should contain the numbers `1` through `6`, but exac...
medium○ Not Started
Arrays
Solve
397
Count Pairs Summing to a TargetThe array `{1, 5, 7, -1, 5}` is given. Read a target integer from standard input...
medium○ Not Started
Arrays
Solve
246
Sort an Array AscendingAn int array is given. Sort it into ascending order WITHOUT using Arrays.sort (w...
hard○ Not Started
Arrays
Solve
247
Most Frequent ElementAn int array is given (all values are between 0 and 9). Find the value that appe...
hard○ Not Started
Arrays
Solve
248
Rotate an Array Left by OneAn int array is given. Rotate it one position to the left: every element moves d...
hard○ Not Started
Arrays
Solve
398
Merge Two Sorted ArraysTwo already-sorted arrays `a = {1, 3, 5, 7}` and `b = {2, 4, 6, 8}` are given. M...
hard○ Not Started
Arrays
Solve
399
Move All Zeros to the EndThe array `{0, 1, 0, 3, 12}` is given. Move every `0` to the end while keeping t...
hard○ Not Started
Arrays
Solve
400
Maximum Subarray SumThe array `{-2, 1, -3, 4, -1, 2, 1, -5, 4}` is given. Find the largest possible ...
hard○ Not Started
Arrays
Solve