Блог пользователя Surfer1999

Автор Surfer1999, 23 месяца назад, По-английски

Given a string s, return the length of longest substring such that every character in the substring has equal number of occurance.

I tried to find solution better that O(n*n) but didn't succeed. Can it be solved in better than O(n*n) ? source of the problem: https://leetcode.com/discuss/interview-question/2116387/google-oa/1424270

Полный текст и комментарии »

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

Автор Surfer1999, история, 23 месяца назад, По-английски

Problem: https://leetcode.com/problems/race-car/

From intuition, I think that we should ignore all points after 2*target and less than 0. Could someone provide proof or counter example for it ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор Surfer1999, история, 23 месяца назад, По-английски

If we take lot of problem of say 1700 level, we would observe that many of them have similar pattern or approach of solving.

Is there some list of problems which will give me familiarity with pattern and approaches for most problems up to 1800 level ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

Автор Surfer1999, 3 года назад, По-английски

I am currently in final year and have job offers. I still like to do competitive programming but it takes away lot of time. I try to give sometime to development but still can't take focus away from competitive programming. Currently I am targeting for master on codeforces. Do you think it's worth spending time provided I have enough skill now to crack any job DSA interview (ofcourse sometime it can be bad luck)? I enjoy doing it. Cracking jobs was not main purpose for starting it.

I sometime think that if I spend that much time doing things like full stack development, I can earn lot of money through freelancing. But still I like CP over any dev work.

From my internship experience, it hardly helped me. Infact it made me lazy since I always switched to do CP during work hours :/.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится