Bin given limits: Difference between revisions

m
Formatting.
(New draft task with Python solution)
 
m (Formatting.)
Line 12:
bin[n] counts how many inputs are > limit[n-1]
 
;Task:
 
The task is to create a function that given the ascending limits and a stream/
list of numbers, will return the bins; together with another function that
given the same list of limits and the binning will ''print the limit of each bin
together with the count of items that fell in the range''.
 
Assume the numbers to bin are too large to practically sort.
 
;Task examples:
Part 1: Bin using the following limits the given input data
 
Anonymous user