clubgamma / Sudoku

Participate in Club Gamma Hacktoberfest by contributing to any Club Gamma Project
https://clubgamma.vercel.app/
1 stars 6 forks source link

Optimized the classifyDifficulty function #30

Closed AntonioLacresta019 closed 2 weeks ago

AntonioLacresta019 commented 2 weeks ago

1.)Eliminate redundancy by structuring the checks to categorize difficulty in a single scan based on clueCount ranges. 2.)Use a nested conditional to quickly check backtrackingSteps within each clueCount range, ensuring fewer comparisons.