This puzzle has been constructed as training for WPC 2022.
Rules: Divide the grid into regions of orthogonally connected cells. Each region must contain exactly two numbers and have a size that lies between the two numbers in the circles, exclusive. No region may contain a line of more than three consecutive cells horizontally or vertically.
Solution code: The number of cells per section in row 7 and column 7 (the sum of all numbers should be 18)