CJCoding With Joseph
TitleTopicsAction
154
Find Maximum in an ArrayAn int array is given. Find the largest value and print it. For { 12, 5, 19, 3,...
easy○ Not Started
Arrays
Solve
155
Sum of an ArrayAn int array is given. Add up all elements and print the total. For { 1, 2, 3, ...
easy○ Not Started
Arrays
Solve
156
Average of an ArrayAn int array is given. Print the integer average (sum divided by count). For { ...
easy○ Not Started
Arrays
Solve
157
Print Array ElementsAn int array is given. Print its elements on one line separated by single spaces...
easy○ Not Started
Arrays
Solve
158
Array LengthAn int array is given. Print how many elements it has using `.Length`. For { 3,...
easy○ Not Started
Arrays
Solve
159
First and Last ElementAn int array is given. Print its first and last elements separated by a space. ...
easy○ Not Started
Arrays
Solve
160
Count Even NumbersAn int array is given. Count how many elements are even and print the count. Fo...
easy○ Not Started
Arrays
Solve
161
Count Greater Than TenAn int array is given. Count how many elements are greater than 10 and print the...
easy○ Not Started
Arrays
Solve
162
Sum of Even NumbersAn int array is given. Add up only the even elements and print the total. For {...
easy○ Not Started
Arrays
Solve
163
Range of an ArrayAn int array is given. The range is the largest minus the smallest. Print the ra...
easy○ Not Started
Arrays
Solve
164
Does the Array Contain a ValueAn int array is given. Print 'Found' if the value 7 appears anywhere, otherwise ...
easy○ Not Started
Arrays
Solve
165
Count Occurrences of a ValueAn int array is given. Count how many times the value 2 appears and print the co...
easy○ Not Started
Arrays
Solve
166
Double Every ElementAn int array is given. Print each element multiplied by 2, on one line separated...
easy○ Not Started
Arrays
Solve
167
Index of the MaximumAn int array is given. Print the index (starting at 0) of the largest element. ...
easy○ Not Started
Arrays
Solve
168
Find Minimum in an ArrayAn int array is given. Find the smallest value and print it. For { 12, 5, 19, 3...
easy○ Not Started
Arrays
Solve
169
Sum With foreachAn int array is given. Use a `foreach` loop to add up its elements and print the...
easy○ Not Started
Arrays
Solve
377
Product of an ArrayGiven the array `{1, 2, 3, 4}`, multiply all of its elements together and print ...
easy○ Not Started
Arrays
Solve
378
Count Odd NumbersGiven the array `{1, 2, 3, 4, 5, 6, 7}`, count how many elements are odd and pri...
easy○ Not Started
Arrays
Solve
379
Sum of Odd NumbersGiven the array `{1, 2, 3, 4, 5}`, add up only the odd elements and print the to...
easy○ Not Started
Arrays
Solve
380
Count Negative NumbersGiven the array `{-3, 2, -1, 0, 5, -8}`, count how many elements are negative an...
easy○ Not Started
Arrays
Solve
381
Count Zeros in an ArrayGiven the array `{0, 1, 0, 2, 0, 3}`, count how many elements equal `0` and prin...
easy○ Not Started
Arrays
Solve
382
Print Array in Reverse OrderGiven the array `{1, 2, 3, 4, 5}`, print its elements from last to first on one ...
easy○ Not Started
Arrays
Solve
383
Swap First and Last ElementsGiven the array `{1, 2, 3, 4, 5}`, swap its first and last elements, then print ...
easy○ Not Started
Arrays
Solve
384
Copy an ArrayCopy the array `{10, 20, 30}` into a brand new array, then print the copy on one...
easy○ Not Started
Arrays
Solve
385
Sum of SquaresGiven the array `{1, 2, 3, 4}`, add up the square of each element and print the ...
easy○ Not Started
Arrays
Solve
386
Print Elements at Even IndicesGiven the array `{10, 11, 12, 13, 14, 15}`, print the elements at the even indic...
easy○ Not Started
Arrays
Solve
387
Print Each Element with Its IndexGiven the array `{5, 8, 3}`, print each element on its own line in the form `ind...
easy○ Not Started
Arrays
Solve
388
Increment Every ElementGiven the array `{1, 2, 3}`, add `1` to every element, then print the array on o...
easy○ Not Started
Arrays
Solve
389
Sum of First and Last ElementGiven the array `{4, 8, 15, 16, 23, 42}`, print the sum of its first and last el...
easy○ Not Started
Arrays
Solve
170
Second Largest ElementAn int array is given. Find and print the second largest value. For { 12, 5, 19...
medium○ Not Started
Arrays
Solve
171
Element-wise Sum of Two ArraysTwo int arrays of equal length are given. Print a line where each position holds...
medium○ Not Started
Arrays
Solve
172
Count Above the AverageAn int array is given. Compute its integer average, then count how many elements...
medium○ Not Started
Arrays
Solve
173
Is the Array SortedAn int array is given. Print 'Sorted' if every element is less than or equal to ...
medium○ Not Started
Arrays
Solve
174
Sum a List<int>Create a `List<int>`, add the values 5, 10, and 15 to it, then print the total o...
medium○ Not Started
Arrays
Solve
175
Reverse an Array In PlaceAn int array is given. Reverse it by swapping (no second array), then print it o...
medium○ Not Started
Arrays
Solve
390
Index of a ValueRead a line of space-separated integers, then read a target integer on the next ...
medium○ Not Started
Arrays
Solve
391
Concatenate Two ArraysGiven the arrays `{1, 2, 3}` and `{4, 5, 6}`, build one new array containing the...
medium○ Not Started
Arrays
Solve
392
Count Distinct ElementsGiven the array `{1, 2, 2, 3, 3, 3, 4}`, count how many different values it cont...
medium○ Not Started
Arrays
Solve
393
Check if All Elements Are PositiveRead a line of space-separated integers. Print `True` if every element is greate...
medium○ Not Started
Arrays
Solve
394
Replace Negatives with ZeroGiven the array `{3, -1, 4, -5, 9}`, change every negative element to `0`, then ...
medium○ Not Started
Arrays
Solve
395
Running SumGiven the array `{1, 2, 3, 4}`, build the running total where each position hold...
medium○ Not Started
Arrays
Solve
396
Index of the MinimumGiven the array `{7, 3, 9, 2, 8}`, print the index of its smallest element: 3...
medium○ Not Started
Arrays
Solve
397
Sum of Elements at Odd IndicesGiven the array `{10, 20, 30, 40, 50, 60}`, add up the elements at the odd indic...
medium○ Not Started
Arrays
Solve
176
Sort an Array AscendingAn int array is given. Sort it ascending WITHOUT using Array.Sort (write the sor...
hard○ Not Started
Arrays
Solve
177
Most Frequent ElementAn int array is given (all values 0-9). Print the value that appears most often....
hard○ Not Started
Arrays
Solve
178
Rotate an Array Left by OneAn int array is given. Rotate it one position left: each element moves down one ...
hard○ Not Started
Arrays
Solve
398
Move Zeros to EndGiven the array `{0, 1, 0, 3, 12}`, move every `0` to the end while keeping the ...
hard○ Not Started
Arrays
Solve
399
Two SumGiven the array `{2, 7, 11, 15}` and the target `9`, find the two elements that ...
hard○ Not Started
Arrays
Solve
400
Remove Duplicates from Sorted ArrayThe array `{1, 1, 2, 3, 3, 4}` is already sorted. Print each distinct value once...
hard○ Not Started
Arrays
Solve
401
Find the Missing NumberThe array `{1, 2, 4, 5, 6}` contains every number from `1` to `6` except one. Fi...
hard○ Not Started
Arrays
Solve