TORONTO KIDS COMPUTER CLUB | PMCA Sunday 12:00 Java Homework 20.08.23.
18217
post-template-default,single,single-post,postid-18217,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Sunday 12:00 Java Homework 20.08.23.

29 Aug PMCA Sunday 12:00 Java Homework 20.08.23.

Question:
Write code to find the nth smallest number in the array using the
algorithm we learnt for quick sort.

Input
7,8,9,12,15,19,2,1 (Array)
3 (N)

Output
7

Explanation: 
7 is the 3rd smallest number in the array
No Comments

Sorry, the comment form is closed at this time.