AI agent developer |... • 2d
Sometimes we think it will work but it doesn't Today I was revising my lecture which covered Modular arithmetic If you are a competitive programmer then you know if we want to perform arithmetic operations In really large numbers Like a really really large number Numbers greater than 10**18 which will over flow int and long long data types To over some this we use MOD MOD works fine with addition multiplication and subtraction. But we have a problem with devision Assume we have two numbers A and B (A and B > 10**18) we can't divide these numbers directly If we use MOD on each number then the ans will change Initially it is possible like A and B are divisible but after MOD operation A and B are not divisible and this will give us the wrong answer To fix this issue we use the concept of inverse Still I don't understand it fully but I know this A / B % MOD == A * B^-1 % MOD Like it somehow works

Don't be the 9-5 thi... • 1y
hi I am studying my 10th grade and my exams are in March, I have a business idea where you can rent stuff like for example I have 5 phones and my friend needs a phone but he will get it on his birthday but till then he wants it we can create a platfo
See More

Hey I am on Medial • 8m
My company is legally incorporated under the name A. However, I want to use a different name, B, for branding my mobile app. The issue is: while B is not identical, it sounds very similar to names already used by other companies that have registered
See MoreDownload the medial app to read full posts, comements and news.