Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway190504
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwaway190504
7y ago
I'd be tempted to treat it as a graph and approach it something like: node_colors = get_all_node_colors(G) for color in node_colors: H = prune_nodes_with_color(G, color) for subgraph in H: if node_count(subgra