# Sharechat Hackerearth Intern

**URL:** <https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167>\
**Category:** help\
**Created:** [July 26, 2020, 8:53am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167 "2020-07-26T08:53:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 8:53am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/1 "2020-07-26T08:53:44Z")

</div>

Hello Please help me in solving this question.

The contest is over.

I am not able to figure out the approach as L,R is very large

 ![20200726_142300](https://s3.amazonaws.com/discourseproduction/original/3X/a/e/aec4d159aa67ef391698b6a39b4525e87f4d4e20.jpeg)

---

<div class="post-metadata">

**Author:** ![angad11121](https://discuss.codechef.com/user_avatar/discuss.codechef.com/angad11121/32/4710_2.png) [@angad11121](https://discuss.codechef.com/u/angad11121)\
**Post date:** [July 26, 2020, 8:55am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/2 "2020-07-26T08:55:59Z")

</div>

What are the constraints?  
PS: I would recommend you to check this problem [link](https://www.codechef.com/MAY20B/problems/CHANDF)  
along with the [editorial](https://discuss.codechef.com/t/chandf-editorial/63302)  
PPS: Here’s a [video](https://www.youtube.com/watch?v=Gl_TaxBlE7A) for visualization as well 😂

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:00am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/3 "2020-07-26T09:00:27Z")

</div>

Constraints:  
1\<=T\<=200.  
1\<=L\<=R\<=10^18.  
1\<=K\<=10^18

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:01am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/4 "2020-07-26T09:01:01Z")

</div>

10^18 L,R,K  
and also 200 test cases.

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:12am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/5 "2020-07-26T09:12:36Z")

</div>

Has anybody given sharechat hackerearth contest for internship

---

<div class="post-metadata">

**Author:** ![ashish\_kaur](https://discuss.codechef.com/user_avatar/discuss.codechef.com/ashish_kaur/32/24644_2.png) [@ashish\_kaur](https://discuss.codechef.com/u/ashish_kaur)\
**Post date:** [July 26, 2020, 9:20am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/6 "2020-07-26T09:20:24Z")

</div>

Can you please tell where do you get the info about the hirings?

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:21am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/7 "2020-07-26T09:21:45Z")

</div>

I have applied to their career site and mailed them.  
Then they provided me the contest link which took place today.

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:29am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/8 "2020-07-26T09:29:22Z")

</div>

This is not helping out.

---

<div class="post-metadata">

**Author:** ![chauhan176](https://discuss.codechef.com/user_avatar/discuss.codechef.com/chauhan176/32/3653_2.png) [@chauhan176](https://discuss.codechef.com/u/chauhan176)\
**Post date:** [July 26, 2020, 9:46am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/9 "2020-07-26T09:46:42Z")

</div>

what is the duration of the intern?  
and how you got to know about the openings at their career website?

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 26, 2020, 9:55am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/10 "2020-07-26T09:55:14Z")

</div>

Duration of internship is from 2 months to 6 months and I am not aware of the opening I just mailed to their careers.

---

<div class="post-metadata">

**Author:** ![ram\_kumar14](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@ram\_kumar14](https://discuss.codechef.com/u/ram_kumar14)\
**Post date:** [July 26, 2020, 10:13pm UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/11 "2020-07-26T22:13:48Z")

</div>

Yes bro, it was very tough ques of digit dp. How much did you score?

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 27, 2020, 1:34am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/13 "2020-07-27T01:34:39Z")

</div>

And this time the digit dp question seemed to be difficult to solve with in time frame.

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 27, 2020, 1:35am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/14 "2020-07-27T01:35:20Z")

</div>

I scored 70 only.

---

<div class="post-metadata">

**Author:** ![codeislove](https://discuss.codechef.com/user_avatar/discuss.codechef.com/codeislove/32/3653_2.png) [@codeislove](https://discuss.codechef.com/u/codeislove)\
**Post date:** [July 27, 2020, 5:40am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/15 "2020-07-27T05:40:17Z")

</div>

I scored 91 only in this test out of 170 . Last time i cleared the test and also my interview went really well . They must consider those applications too .

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 27, 2020, 5:51am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/16 "2020-07-27T05:51:49Z")

</div>

Bro what have you done in 50 points question.  
Please tell.

---

<div class="post-metadata">

**Author:** ![codeislove](https://discuss.codechef.com/user_avatar/discuss.codechef.com/codeislove/32/3653_2.png) [@codeislove](https://discuss.codechef.com/u/codeislove)\
**Post date:** [July 27, 2020, 5:59am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/17 "2020-07-27T05:59:31Z")

</div>

50 marks ques is available on web . Codeforces 349B . I checked it later . In the last question I used standard digit dp with binary search . But don’t know why it was giving wrong answer . I know some people who scored 170 using the same approach .

---

<div class="post-metadata">

**Author:** ![ram\_kumar14](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@ram\_kumar14](https://discuss.codechef.com/u/ram_kumar14)\
**Post date:** [July 27, 2020, 10:36am UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/18 "2020-07-27T10:36:49Z")

</div>

Can u share ur code for digit dp problem. I couldn’t solve it.

---

<div class="post-metadata">

**Author:** ![codeislove](https://discuss.codechef.com/user_avatar/discuss.codechef.com/codeislove/32/3653_2.png) [@codeislove](https://discuss.codechef.com/u/codeislove)\
**Post date:** [July 27, 2020, 1:33pm UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/20 "2020-07-27T13:33:15Z")

</div>

I contacted the HR and she told me that if you have any other offer please continue with that , company is not sure about taking interns seeing the threat of Covid19 . But atleast they should have made the final result transparent by throwing out an official mail

---

<div class="post-metadata">

**Author:** ![mkitkat](https://discuss.codechef.com/user_avatar/discuss.codechef.com/mkitkat/32/23077_2.png) [@mkitkat](https://discuss.codechef.com/u/mkitkat)\
**Post date:** [July 27, 2020, 4:22pm UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/21 "2020-07-27T16:22:55Z")

</div>

What did you mailed, can you show us here. This will be a great help Thanks

---

<div class="post-metadata">

**Author:** ![anon28985693](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@anon28985693](https://discuss.codechef.com/u/anon28985693)\
**Post date:** [July 27, 2020, 4:37pm UTC](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167/22 "2020-07-27T16:37:48Z")

</div>

Hello dude,  
You can mail to this guy and he will refer you.  
Connect with him linkedin.  
You will get the test link.  
Can do same with other companies also.  
I have attached the screenshot here.

 ![Screenshot_20200727-220542_Gmail](https://s3.amazonaws.com/discourseproduction/original/3X/0/6/06ddf89436059c5a346991bc047d1e51815c2688.jpeg)

[Next page](https://discuss.codechef.com/t/sharechat-hackerearth-intern/73167.md?page=2)
