You are viewing a single comment's thread. Return to all comments →
Hey I am using this solution, Two test cases is getting failed. Can you explain y its failing?.
function main() { var n = parseInt(readLine()); var unsorted = []; for(var unsorted_i = 0; unsorted_i < n; unsorted_i++){ unsorted[unsorted_i] = readLine(); } // your code goes here //console.log(unsorted); unsorted.sort(function(a, b) { return a - b; }); //console.log(unsorted); //var sorted = unsorted.sort(); unsorted.forEach(function(element){ console.log(element); }) }
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Hey I am using this solution, Two test cases is getting failed. Can you explain y its failing?.