what is the benefit of struct Solver?

Revision en1, by e3e, 2024-08-04 11:10:13

I see some very good coders such as snuke, Petr do this. struct Solver and writing their actual solution in the Solver's method void solve(). Is there any practical benefit of doing this?

Tags coding style, c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English e3e 2024-08-04 11:10:13 224 Initial revision (published)