about | help | code help+videos | done | prefs |
listAddLargestValue
Given a List of Integers called lst, add a new element to the end, the value of which is the value of the largest element in the List. Return the List as output. listAddLargestValue([3, 4, 5]) → [3, 4, 5, 5] listAddLargestValue([1, 2, 4, 5, 6, 10]) → [1, 2, 4, 5, 6, 10, 10] listAddLargestValue([5, 0, 3]) → [5, 0, 3, 5] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy