sure: basically I am looking for clustering of non zero groups in that 2D list...so in the above array the first non zero cluster is 2,2 in row 0, 1,1 in row 1 and 1,1 in row 1 so if we think of this as one group we have the first element of the group is at (0,0) in the list and last is at (2,1) in the list so we have that group represented as (0,0,2,1) similarly the second non group...and finally we get the result list with the location of that group in the whole list as [(0,0,2,1),(0,4,2,5)...] hope I am clear.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4