Meta Interview Question

Simple comparison between numbers given constraints see how many comparisons are true.

Interview Answer

Anonymous

Nov 13, 2017

Sort the array basically answers the question, find where you start comparing and where you end, take the difference in the indexes.