def get_distinct_values(values):
return list(set(filter(lambda x: x != 0, values)))
This code will get a distinct list where values are not equal to zero. I used this code in a Sudoku solver algorithm.
def get_distinct_values(values):
return list(set(filter(lambda x: x != 0, values)))
This code will get a distinct list where values are not equal to zero. I used this code in a Sudoku solver algorithm.
For further actions, you may consider blocking this person and/or reporting abuse
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Vishnu Sivan -
Vishnu Sivan -
Super Kai (Kazuya Ito) -
Markus Koppensteiner -
Top comments (0)