We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The input description is not clear at all! If you say it's an array of integers one would assume it's an array of numbers of type integer, something like [42, 66, -5, ...] I had to unlock the solution to find out there are 2 split() functions which operate on strings in JS. WTF! It's not an array of integers but array of strings. Come on! Give proper input description
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
The input description is not clear at all! If you say it's an array of integers one would assume it's an array of numbers of type integer, something like [42, 66, -5, ...] I had to unlock the solution to find out there are 2 split() functions which operate on strings in JS. WTF! It's not an array of integers but array of strings. Come on! Give proper input description