CJCoding With Joseph
TitleTopicsAction
74
Print First Array ElementAn array nums has been created for you with the values {10, 20, 30, 40, 50}. Pri...
easy○ Not Started
Arrays
Solve
75
Print Last Array ElementAn array nums has been created with the values {10, 20, 30, 40, 50}. Print the L...
easy○ Not Started
Arrays
Solve
76
Array Size with sizeofAn array nums has been created with the values {10, 20, 30, 40, 50}. Print how m...
easy○ Not Started
Arrays
Solve
77
Print All Array ElementsAn array nums has been created with the values {10, 20, 30, 40, 50}. Use a for l...
easy○ Not Started
Arrays
Solve
78
Sum All Array ElementsAn array nums has been created with the values {10, 20, 30, 40, 50}. Use a for l...
easy○ Not Started
Arrays
Solve
79
Find the Largest ElementAn array nums has been created with the values {10, 40, 20, 50, 30}. Find the la...
easy○ Not Started
Arrays
Solve
80
Find the Smallest ElementAn array nums has been created with the values {30, 10, 50, 20, 40}. Find the sm...
easy○ Not Started
Arrays
Solve
81
Count Even Numbers in ArrayAn array nums has been created with the values {10, 15, 20, 25, 30}. Count how m...
easy○ Not Started
Arrays
Solve
82
Average of ArrayAn array nums has been created with the values {10, 20, 30, 40, 50}. Compute the...
easy○ Not Started
Arrays
Solve
83
Print Array in ReverseAn array nums has been created with the values {10, 20, 30, 40, 50}. Print the e...
easy○ Not Started
Arrays
Solve
84
Change an Array ElementAn array nums has been created with the values {10, 20, 30, 40, 50}. Change the ...
easy○ Not Started
Arrays
Solve
85
Print Elements Greater Than 25An array nums has been created with the values {10, 20, 30, 40, 50}. Print only ...
easy○ Not Started
Arrays
Solve
86
Double Each ElementAn array nums has been created with the values {10, 20, 30, 40, 50}. Print each ...
easy○ Not Started
Arrays
Solve
87
Count Occurrences in ArrayAn array nums has been created with the values {10, 20, 10, 30, 10} and target =...
easy○ Not Started
Arrays
Solve
88
Sum of Even ElementsAn array nums has been created with the values {10, 15, 20, 25, 30}. Add up only...
easy○ Not Started
Arrays
Solve
301
Product of All Array ElementsThe array `{1, 2, 3, 4, 5}` is given. Multiply all of its elements together and ...
easy○ Not Started
Arrays
Solve
302
Count Odd Numbers in ArrayThe array `{3, 8, 5, 12, 7, 4, 9}` is given. Count how many elements are odd and...
easy○ Not Started
Arrays
Solve
303
Sum of First and Last ElementThe array `{10, 20, 30, 40, 50}` is given. Print the sum of its first and last e...
easy○ Not Started
Arrays
Solve
304
Print Array Elements with IndexThe array `{5, 10, 15}` is given. Print every element next to its index, one per...
easy○ Not Started
Arrays
Solve
305
Find Index of Maximum ElementThe array `{4, 9, 2, 15, 7}` is given. Print the index (position) of the largest...
easy○ Not Started
Arrays
Solve
306
Swap First and Last ElementsThe array `{1, 2, 3, 4, 5}` is given. Swap its first and last elements, then pri...
easy○ Not Started
Arrays
Solve
307
Sum of SquaresThe array `{1, 2, 3, 4}` is given. Add up the square of each element and print t...
easy○ Not Started
Arrays
Solve
308
Count Negative NumbersThe array `{-3, 5, -1, 8, -7, 2, 0}` is given. Count how many elements are stric...
easy○ Not Started
Arrays
Solve
309
Print Elements at Even IndicesThe array `{10, 20, 30, 40, 50, 60}` is given. Print only the elements at even i...
easy○ Not Started
Arrays
Solve
310
Scale Array by ThreeThe array `{1, 2, 3, 4}` is given. Multiply every element by `3`, then print the...
easy○ Not Started
Arrays
Solve
311
Count Elements Divisible by ThreeThe array `{3, 7, 9, 10, 12, 5, 6}` is given. Count how many elements are evenly...
easy○ Not Started
Arrays
Solve
312
Sum of Absolute ValuesThe array `{-4, 3, -2, 5, -1}` is given. Add up the absolute value of each eleme...
easy○ Not Started
Arrays
Solve
313
Range of ArrayThe array `{7, 2, 9, 4, 11, 5}` is given. The range is the largest element minus...
easy○ Not Started
Arrays
Solve
89
Read N Values and SumRead an integer N, then read N more integers into an array. Print the sum of all...
medium○ Not Started
Arrays
Solve
90
Read N Values and Find MaxRead an integer N, then read N integers into an array. Print the largest value i...
medium○ Not Started
Arrays
Solve
91
Reverse Array In PlaceAn array nums has been created with the values {10, 20, 30, 40, 50}. Reverse it ...
medium○ Not Started
Arrays
Solve
92
Linear SearchRead an integer N, then N integers into an array, then one more integer target. ...
medium○ Not Started
Arrays
Solve
93
Count Above AverageRead an integer N, then N integers. Compute the average (use integer division), ...
medium○ Not Started
Arrays
Solve
94
Second Largest ElementAn array nums has been created with the values {10, 40, 20, 50, 30}. Find and pr...
medium○ Not Started
Arrays
Solve
95
Copy Array to AnotherAn array nums has been created with the values {10, 20, 30, 40, 50} and an empty...
medium○ Not Started
Arrays
Solve
314
Check if Array is Sorted AscendingAn array is sorted in non-decreasing order when every element is greater than or...
medium○ Not Started
Arrays
Solve
315
Cumulative SumThe array `{1, 2, 3, 4}` is given. Print the running (cumulative) sum: each outp...
medium○ Not Started
Arrays
Solve
316
Dot Product of Two ArraysTwo arrays of equal length are given: `a = {1, 2, 3}` and `b = {4, 5, 6}`. The d...
medium○ Not Started
Arrays
Solve
317
Merge Two ArraysTwo arrays are given: `a = {1, 2, 3}` and `b = {4, 5, 6}`. Build one combined ar...
medium○ Not Started
Arrays
Solve
318
Rotate Array Left by OneThe array `{1, 2, 3, 4, 5}` is given. Rotate it left by one position: every elem...
medium○ Not Started
Arrays
Solve
319
Count Elements in a RangeThe array `{5, 12, 8, 20, 3, 15, 10}` is given, along with bounds `low = 8` and ...
medium○ Not Started
Arrays
Solve
320
Running MaximumThe array `{3, 1, 4, 1, 5, 9, 2}` is given. Print, for each position, the maximu...
medium○ Not Started
Arrays
Solve
321
Replace Negatives with ZeroThe array `{3, -1, 4, -5, 2}` is given. Replace every negative element with `0`,...
medium○ Not Started
Arrays
Solve
96
Sort an Array AscendingRead an integer N, then N integers into an array. Sort the array in ascending or...
hard○ Not Started
Arrays
Solve
97
Remove DuplicatesAn array nums has been created with the values {10, 20, 10, 30, 20}. Print only ...
hard○ Not Started
Arrays
Solve
98
Pairs That Sum to TargetAn array nums has been created with the values {10, 20, 30, 40, 50} and target =...
hard○ Not Started
Arrays
Solve
322
Minimum and Maximum TogetherThe array `{4, 9, 2, 15, 7, 1, 8}` is given. In a single pass, find both the sma...
hard○ Not Started
Arrays
Solve
323
Move Zeros to EndThe array `{0, 1, 0, 3, 12}` is given. Move all the zeros to the end while keepi...
hard○ Not Started
Arrays
Solve
324
Most Frequent ElementThe array `{1, 3, 3, 2, 3, 1, 2}` is given. Find the element that appears the mo...
hard○ Not Started
Arrays
Solve
325
Longest Increasing RunThe array `{1, 2, 1, 2, 3, 4, 1}` is given. Find the length of the longest run o...
hard○ Not Started
Arrays
Solve