Histogram
-
Program Details:
(i) Date: 2nd April, 2020 (ii) Language: Scala
-
Problem Statement:
(i) Input: RGB color codes (might be repeated). Example: 12 123 243 - Where 12 is intensity of red, 123 is intensity of green, and 243 is intensity of blue.
(ii) Output: The colors with their corresponding intensity and the total number of times for which the color intensity is repeated. Example: 2 123 108548 - Here, 2 is green, 123 is intensity corresponding to the clor green, and the color green with intensity 123 is repeated 108540 times.
-
Code Execution: You can run this program over Apache Spark compatible server.
-
Note: I have included sample input and output .txt files.