about | help | code help+videos | done | prefs |
Preconditions: Array 'nums' will contain at least two numbers. All numbers in 'nums' will be distinct (meaning no two numbers will be the same). Return the greatest product that can be made from any two numbers selected from the array 'nums'. quiz2022_03_23_APSLHL_greatestProduct([3, 7, 4, 1, 8, 6, 5]) → 56 quiz2022_03_23_APSLHL_greatestProduct([24, 2, 5, 7, 11, 20, 21, 8, 3]) → 504 quiz2022_03_23_APSLHL_greatestProduct([17, 23]) → 391 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 230
Copyright Nick Parlante 2017 - privacy