I once failed a leet code graph problem because I solved it with a genetic algorithm.
The problem wasn’t that I was incapable of solving the problem, it was the narrow view of possible solutions. The interviewer was looking for the CS101 solution.
My biggest gripe with leetcode is they tend to filter diversity of thought.