Is there any way we can find all the values of x in O(log) or O(1) time complexity.
X + X%5 = 1000
The brute force approach is thinking and putting different values of X and checking with RHS. But the things is I can't think of any other approach other than this for finding the value of X. Is there any other way we can actually find the value of X?