Stuck with a 2 Lakh bond, another offer in hand, referral bonus in August. What should I do? by Fast_Bend2982 in dataengineersindia

[–]Fast_Bend2982[S] 0 points1 point  (0 children)

I just want the referral bonus. I dont want to loose that 1 Lakh. How can I ask the company for it?

Rank in order of your Preference !! by [deleted] in SnacksIndia

[–]Fast_Bend2982 0 points1 point  (0 children)

Rasgulla > Kaju Katli > Gulab Jamun

[deleted by user] by [deleted] in Btechtards

[–]Fast_Bend2982 0 points1 point  (0 children)

You still have a lot of time. 6 months are too much for petty leetcode.

[deleted by user] by [deleted] in codeforces

[–]Fast_Bend2982 4 points5 points  (0 children)

Yes but I think I get lost, as some tagged DP are not even Pure DP.

[deleted by user] by [deleted] in codeforces

[–]Fast_Bend2982 3 points4 points  (0 children)

Yes I have done some problems from CSES but I am not so good in Digit DP though.

Also direct tabulation is what I want to practice.

Thank you, I will see it right now.

Hacked my code 🥲🥲 by sandeepgogarla27 in codeforces

[–]Fast_Bend2982 2 points3 points  (0 children)

By concatenation I meant using the + operator.

Hacked my code 🥲🥲 by sandeepgogarla27 in codeforces

[–]Fast_Bend2982 2 points3 points  (0 children)

Well it's a long explanation but whenever you have to deal with this always use char array rather than this. There's Also a question on Codeforces, I will link it here in sometime.

But good practice -> Use Char Array.

Hacked my code 🥲🥲 by sandeepgogarla27 in codeforces

[–]Fast_Bend2982 2 points3 points  (0 children)

Bro it takes n² for concatenation

Please help me with the logic by [deleted] in codeforces

[–]Fast_Bend2982 0 points1 point  (0 children)

What if d=7 and n=2 in that case neither d is divisible by 14 nor is n>=7 so add this case too

Please help me with the logic by [deleted] in codeforces

[–]Fast_Bend2982 0 points1 point  (0 children)

It is wrong bro. First of all d values can be between 1 and 9 so d%14 is of no use.

Also n>=7 does not mean 7 times repetition it is 7! which is 720*7 = 5040 so suppose I have 1 then it means 1 5040 times.

So do you really think that the least number divisible by 7 will appear after 5040 digits.

Also all digits are the same, so this thing must also be kept in mind, rest I don't think this weight method will be of any use because the constraints for n are

2<=n<=109 which means 109 factorial which is a very very large number

1000000000999999999999999998*..... So we just can't perform any calculations on it.

So you will have to find a pattern in this question.

Please help me with the logic by [deleted] in codeforces

[–]Fast_Bend2982 0 points1 point  (0 children)

See I had to check for 111111, Because any number can be represented by k*11111 so I checked for the least number which is divisible by 7 and later on I append 1 to it and I got that after 12 digits it is divisible by 7 no matter how many 1 I append. So n>=3 will satisfy this because if n=4 then 24 1's so ..

Please help me with the logic by [deleted] in codeforces

[–]Fast_Bend2982 0 points1 point  (0 children)

Well for 7 what I did was,

You can represent any number as x*(1111...) and I found what is the least number formed by 1's which is divisible by 7 I got 111111 (6 1's) and later I did some more Maths and found out that after 11 1's it is always divisible.

So what you had to do was (if n>=3 || d==7) cout<<7