Computer Science, asked by Rushi271, 4 months ago

We wish to train a machine learning algorithm on an array of floating-point numbers in the interval [0.0,

1.0). The data is not evenly distributed, and we wish to filter the dataset to obtain a subset containing an

equal number of values from each interval [0, 0.2), [0.2, 0.4), ... [0.8, 1.0), throwing away as little data as

possible.

Write a program which reads comma-separated floating-point numbers in a single line from stdin and prints

the filtered data to stdout in the same format

Note: Solve this in linear time.

Examples:

Example 1

Input: 0.1,0.3,0.5,0.7,0.9

Output: 0.1,0.3,0.5,0.7,0.9​

Answers

Answered by nikhilapawar29
2

Answer:

l am not getting your question

Explanation:

sorryyyyyyyyyyyyyyyyyyyy but please mark it as brain list

Similar questions