I watched calin golen guide on it and i already know the fundamentals of modulars , primes and etc
but it seems to me that approaching these kinda problems arent like constructive greedy sortings or strings at all , i feel like im just throwing numbers and test cases like an idiot and i have no idea on how to begin the question , never solved a question by my own on this topic , any tips ?








why so many downvotes?
some people feel bad because others are actually putting in the work to get better unlike them so they downvote , thats my 2 cents , appreciate commenting , one of the most toxic communities i found is codeforces