CJCoding With Joseph
15free / daySign inCreate account
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
287
Sum of an Integer ArrayYou are given an array of integers. Use a foreach loop to add up every number in...
easy○ Not Started
Arrays
Solve
288
Largest Value in an ArrayYou are given an array of test scores. Find the single largest value by starting...
easy○ Not Started
Arrays
Solve
289
How Many Items Are in the ArrayYou are given a string array of fruit names. Every array in C# knows its own siz...
easy○ Not Started
Arrays
Solve
290
Print Every ColorYou are given a string array of colors. Use a foreach loop to print each color o...
easy○ Not Started
Arrays
Solve
291
Read One Element by IndexYou are given an array of prime numbers. Array elements are numbered starting at...
easy○ Not Started
Arrays
Solve
292
Count the Even NumbersYou are given an array of integers. Count how many of them are even by looping t...
easy○ Not Started
Arrays
Solve
293
Smallest Value in an ArrayYou are given an array of daily temperatures. Find the single smallest value by ...
easy○ Not Started
Arrays
Solve
467
Product of an ArrayGiven the array `{1, 2, 3, 4}`, multiply all of its elements together and print ...
easy○ Not Started
Arrays
Solve
468
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
469
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
470
Count Negative NumbersGiven the array `{-3, 2, -1, 0, 5, -8}`, count how many elements are negative an...
easy○ Not Started
Arrays
Solve
471
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
472
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
473
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
474
Copy an ArrayCopy the array `{10, 20, 30}` into a brand new array, then print the copy on one...
easy○ Not Started
Arrays
Solve
475
Sum of SquaresGiven the array `{1, 2, 3, 4}`, add up the square of each element and print the ...
easy○ Not Started
Arrays
Solve
476
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
477
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
478
Increment Every ElementGiven the array `{1, 2, 3}`, add `1` to every element, then print the array on o...
easy○ Not Started
Arrays
Solve
479
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
294
Average of an Array (Practice)You are given an array of integers. Compute their average by first adding them a...
medium○ Not Started
Arrays
Solve
295
Sum of Even-Indexed ElementsYou are given an array of integers. Add up only the elements that sit at even in...
medium○ Not Started
Arrays
Solve
296
Count Long WordsYou are given a string array of words. Count how many of them are longer than th...
medium○ Not Started
Arrays
Solve
480
Index of a ValueRead a line of space-separated integers, then read a target integer on the next ...
medium○ Not Started
Arrays
Solve
481
Concatenate Two ArraysGiven the arrays `{1, 2, 3}` and `{4, 5, 6}`, build one new array containing the...
medium○ Not Started
Arrays
Solve
482
Count Distinct ElementsGiven the array `{1, 2, 2, 3, 3, 3, 4}`, count how many different values it cont...
medium○ Not Started
Arrays
Solve
483
Check if All Elements Are PositiveRead a line of space-separated integers. Print `True` if every element is greate...
medium○ Not Started
Arrays
Solve
484
Replace Negatives with ZeroGiven the array `{3, -1, 4, -5, 9}`, change every negative element to `0`, then ...
medium○ Not Started
Arrays
Solve
485
Running SumGiven the array `{1, 2, 3, 4}`, build the running total where each position hold...
medium○ Not Started
Arrays
Solve
486
Index of the MinimumGiven the array `{7, 3, 9, 2, 8}`, print the index of its smallest element (see ...
medium○ Not Started
Arrays
Solve
487
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
488
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
489
Two SumGiven the array `{2, 7, 11, 15}` and the target `9`, find the two elements that ...
hard○ Not Started
Arrays
Solve
490
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
491
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