about | help | code help+videos | done | prefs |
Return the position of first negative number. If the array is composed of Natural numbers, return -1. indexNeg([3, 4, -4]) → 2 indexNeg([8, 9, 8, 32]) → -1 indexNeg([-5, 2, 3, 3]) → 0 ...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: 200
Copyright Nick Parlante 2017 - privacy