CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
74
Print First Array ElementAn array nums has been created for you with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
75
Print Last Array ElementAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
76
Array Size with sizeofAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
77
Print All Array ElementsAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
78
Sum All Array ElementsAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
79
Find the Largest ElementAn array nums has been created with the values {10, 40, 20, 50, 30}.
easyNot startedSolve
80
Find the Smallest ElementAn array nums has been created with the values {30, 10, 50, 20, 40}.
easyNot startedSolve
81
Count Even Numbers in ArrayAn array nums has been created with the values {10, 15, 20, 25, 30}.
easyNot startedSolve
82
Average of ArrayAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
83
Print Array in ReverseAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
84
Change an Array ElementAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
85
Print Elements Greater Than 25An array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
86
Double Each ElementAn array nums has been created with the values {10, 20, 30, 40, 50}.
easyNot startedSolve
87
Count Occurrences in ArrayAn array nums has been created with the values {10, 20, 10, 30, 10} and target = 10.
easyNot startedSolve
88
Sum of Even ElementsAn array nums has been created with the values {10, 15, 20, 25, 30}.
easyNot startedSolve
216
Print Each Array ElementArrays let you store many values in one variable and reach each one by its position (its index).
easyNot startedSolve
217
Sum of Array ValuesA very common task is adding up every number stored in an array.
easyNot startedSolve
218
Largest Element in an ArrayTo find the biggest value in an array, assume the first element is the largest so far, then compare it against every other element.
easyNot startedSolve
219
Smallest Element in an ArrayFinding the smallest value works just like finding the largest, but you flip the comparison.
easyNot startedSolve
220
Print an Array in ReverseYou can walk an array backwards by starting your loop counter at the last index (size - 1) and counting down to 0.
easyNot startedSolve
221
Count the Even NumbersCounting is a classic array pattern: you keep a counter starting at 0 and increase it every time an element meets some condition.
easyNot startedSolve
222
Count Occurrences of a ValueSometimes you need to know how many times a specific value appears in an array.
easyNot startedSolve
371
Product of All Array ElementsThe array {1, 2, 3, 4, 5} is given.
easyNot startedSolve
372
Count Odd Numbers in ArrayThe array {3, 8, 5, 12, 7, 4, 9} is given.
easyNot startedSolve
373
Sum of First and Last ElementThe array {10, 20, 30, 40, 50} is given.
easyNot startedSolve
374
Print Array Elements with IndexThe array {5, 10, 15} is given.
easyNot startedSolve
375
Find Index of Maximum ElementThe array {4, 9, 2, 15, 7} is given.
easyNot startedSolve
376
Swap First and Last ElementsThe array {1, 2, 3, 4, 5} is given.
easyNot startedSolve
377
Sum of SquaresThe array {1, 2, 3, 4} is given.
easyNot startedSolve
378
Count Negative NumbersThe array {-3, 5, -1, 8, -7, 2, 0} is given.
easyNot startedSolve
379
Print Elements at Even IndicesThe array {10, 20, 30, 40, 50, 60} is given.
easyNot startedSolve
380
Scale Array by ThreeThe array {1, 2, 3, 4} is given.
easyNot startedSolve
381
Count Elements Divisible by ThreeThe array {3, 7, 9, 10, 12, 5, 6} is given.
easyNot startedSolve
382
Sum of Absolute ValuesThe array {-4, 3, -2, 5, -1} is given.
easyNot startedSolve
383
Range of ArrayThe array {7, 2, 9, 4, 11, 5} is given.
easyNot startedSolve
89
Read N Values and SumRead an integer N, then read N more integers into an array.
mediumNot startedSolve
90
Read N Values and Find MaxRead an integer N, then read N integers into an array.
mediumNot startedSolve
91
Reverse Array In PlaceAn array nums has been created with the values {10, 20, 30, 40, 50}.
mediumNot startedSolve
92
Linear SearchRead an integer N, then N integers into an array, then one more integer target.
mediumNot startedSolve
93
Count Above AverageRead an integer N, then N integers.
mediumNot startedSolve
94
Second Largest ElementAn array nums has been created with the values {10, 40, 20, 50, 30}.
mediumNot startedSolve
95
Copy Array to AnotherAn array nums has been created with the values {10, 20, 30, 40, 50} and an empty array copy of size 5.
mediumNot startedSolve
223
Average of Test ScoresThis task combines two ideas: summing an array and then dividing to get an average.
mediumNot startedSolve
224
Largest Value and Its IndexFinding the maximum is useful, but often you also want to know WHERE it is.
mediumNot startedSolve
225
Reverse an Array In PlaceInstead of just printing an array backwards, here you actually rearrange the array itself so its elements end up in reverse order.
mediumNot startedSolve
384
Check if Array is Sorted AscendingAn array is sorted in non-decreasing order when every element is greater than or equal to the one before it (equal neighbors are allowed).
mediumNot startedSolve
385
Cumulative SumThe array {1, 2, 3, 4} is given.
mediumNot startedSolve
386
Dot Product of Two ArraysTwo arrays of equal length are given: a = {1, 2, 3} and b = {4, 5, 6}.
mediumNot startedSolve
387
Merge Two ArraysTwo arrays are given: a = {1, 2, 3} and b = {4, 5, 6}.
mediumNot startedSolve
388
Rotate Array Left by OneThe array {1, 2, 3, 4, 5} is given.
mediumNot startedSolve
389
Count Elements in a RangeThe array {5, 12, 8, 20, 3, 15, 10} is given, along with bounds low = 8 and high = 15.
mediumNot startedSolve
390
Running MaximumThe array {3, 1, 4, 1, 5, 9, 2} is given.
mediumNot startedSolve
391
Replace Negatives with ZeroThe array {3, -1, 4, -5, 2} is given.
mediumNot startedSolve
96
Sort an Array AscendingRead an integer N, then N integers into an array.
hardNot startedSolve
97
Remove DuplicatesAn array nums has been created with the values {10, 20, 10, 30, 20}.
hardNot startedSolve
98
Pairs That Sum to TargetAn array nums has been created with the values {10, 20, 30, 40, 50} and target = 60.
hardNot startedSolve
392
Minimum and Maximum TogetherThe array {4, 9, 2, 15, 7, 1, 8} is given.
hardNot startedSolve
393
Move Zeros to EndThe array {0, 1, 0, 3, 12} is given.
hardNot startedSolve
394
Most Frequent ElementThe array {1, 3, 3, 2, 3, 1, 2} is given.
hardNot startedSolve
395
Longest Increasing RunThe array {1, 2, 1, 2, 3, 4, 1} is given.
hardNot startedSolve