Hi , I want to find the most frequently occurring value in a 2D matrix. i was trying to use std::max_element but it didn't work because it is only works with a one dimension vector .. could anybody help me please ?
1 | initial version |
Hi , I want to find the most frequently occurring value in a 2D matrix. i was trying to use std::max_element but it didn't work because it is only works with a one dimension vector .. could anybody help me please ?