6 kyu

Sorted Arrays

409 of 736dnolan

Description:

Given any number of arrays each sorted in ascending order, find the nth smallest number of all their elements.

All the arguments except the last will be arrays, the last argument is n.

nthSmallest([1,5], [2], [4,8,9], 4) // returns 5 because it's the 4th smallest value

Be mindful of performance.

Arrays
Algorithms
Performance

Stats:

CreatedMar 23, 2016
PublishedMar 23, 2016
Warriors Trained1955
Total Skips107
Total Code Submissions4478
Total Times Completed736
JavaScript Completions409
C# Completions94
C++ Completions248
Total Stars49
% of votes with a positive feedback rating89% of 194
Total "Very Satisfied" Votes160
Total "Somewhat Satisfied" Votes24
Total "Not Satisfied" Votes10
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • dnolan Avatar
  • Dentzil Avatar
  • user5036852 Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • t3l3f00n Avatar
  • XoRMiAS Avatar
Ad