Fundamentals
/
Reading and Updating Elements
⏸
00:00
↻
← Prev
Next →
▶
Question
Given an array, an index, and a new value, set the element at that index to the new value and return the modified array. Return the array unchanged if the index is out of bounds.
▶
My Code
▶
Reference Solution