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 ?



