I'm currently working with a 2d Array which is 6 rows long.
Now I need to filter the longest rows to work with them. But I dont know how to filter the shortest the element.
For example:
0: (3) ['karo11', 'karo6', 'kreuz13']
1: (2) ['pik6', 'pik13']
2: ['karo13']
3: (2) ['herz11', 'kreuz6']
4: ['herz6']
5: (2) ['kreuz11', 'pik11']
This is my array. Now I need to filter out row 2 and 4. But how should I do this?
Note. The Array is not static so the length of the rows are variable and change everytime I run the code