Back

Baqer Ali

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

Reply
2

More like this

Recommendations from Medial

Image Description

Inactive

AprameyaAI • 1y

I Might be late but not missing to add VALUE! we all pitch Daily Sometime to the investors, clients, consumer and whatever in you b-mod it is Here's Steve Job's tips for it! ⤵️ liked it? Follow me on medial for more of such content PS: It's

See More
1 Reply
2
6
Image Description

Raja Kumar

..... • 1y

Dating App without Subscription Model And For Revenue We Will Use Ads . Will it Work??

1 Reply
5
Image Description
Image Description

SiA

Let's build a commun... • 3m

hello guys... posting after a while now ... can you all comment down the products that you really need in your life.... or like a problem that you face that needs a solution 😭.... ( it will be good if the problems are related to business like for a

See More
4 Replies
5
Image Description
Image Description

Sujay

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
12 Replies
1
12

Shivam Rishi

Entrepreneur • 6m

Launching my app soon Here’s my strategy: • Found 4 countries via @TryAstroApp where keywords are popular with average difficulty • Full localization (app + paywall + screenshots) • A/B testing paywalls from day 1 Will report back with Week 1 numbe

See More
Reply
1
Image Description
Image Description

Hiral Jain

CA inter • 1y

Hey there everyone! Day 1 of uncovering businesses that continue to operate even after being deemed illegal! The most illegal and common business is HAWALA its used by many big businesses(money laundering) and terrorist groups( to fund their groups

See More
19 Replies
1
18
Image Description

Bhavya jadam

 • 

YouTube • 2m

AI isn’t the future of marketing agencies. It’s already here. AI helps us: → Make better decisions → Automate routine work → Reach the right audience → Move faster → Reduce costs In 2025, AI is a core part of how modern agencies work. We use AI fo

See More
1 Reply
2
5

Download the medial app to read full posts, comements and news.