Source: https://habr.com/ru/post/1703127/More articles:Algorithm to find the optimal number of style sets in the style of a glass? - algorithmHow can I write a Java regular expression that receives the contents of the