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

Автор ecnerwala, история, 6 лет назад, По-английски

Hi everyone!

code_warrior recently asked "How is ecnerwala?" I'm here to answer that question and others you may have! I'll check this regularly for the next couple of days and try to respond when I get a chance. Ask me anything!

To code_warrior: I'm doing good. Quarantine is still ongoing, so I'm spending most of my time at home with my family, coding both for work and for fun. How about you?

EDIT: There have been a lot of repeat questions, and I've tried to answer each question at least once. I've given a bunch of general advice about practicing and training, and I don't think I can say too much about how you specifically should practice, so I might not answer all of those questions. In general, practice things that you see in contest that are medium or hard but not impossible for you.

UPDATE: Thank you guys for all your questions! I think I'm done answering questions for now, hope to compete with you guys more!

UPDATE 2: I finally followed through and posted a bunch of screencasts to my YouTube channel, check them out if you're interested! I'll look into a way to post the code/key-captures, and I hope to publish some with commentary soon!

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

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +60 Проголосовать: не нравится

How tall is ecnerwala?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -678 Проголосовать: не нравится

Do you know who is "BINOD"?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +43 Проголосовать: не нравится

What is your favourite editor??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -13 Проголосовать: не нравится

Hey, the question hasn't been answered yet, so I'm asking it again.

How are you, Andrew?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +52 Проголосовать: не нравится

    I'm doing good, how about you?

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится -67 Проголосовать: не нравится

      Hello Sir, it's nice to be able to chat with you. Regarding the Code Jam Finals, I would like to know that don't u feel sad after losing to Tourist? Especially after working so hard for so many years? I ask this because I get disheartened too easily by failures. I also face a dilemma like how much time I should spend behind thinking about a problem..

      Next Question is, what should be my strategy to prepare as a team for ICPC?

      • »
        »
        »
        »
        6 лет назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        I would like to know from the community as to why this simple post has been downvoted so many times.Neither have I tried to insult anyone,nor am i asking anything irrelevant.Then why unncessarily are you downvoting me?

        I would really like to know the reason so that in future I keep certain things in kind before commenting here at Codeforces

        • »
          »
          »
          »
          »
          6 лет назад, скрыть # ^ |
          Rev. 2  
          Проголосовать: нравится +18 Проголосовать: не нравится

          Your first question is a rather sensitive, and a bit personal question.

          Well your second question can be answered with some searches on the internet. It's also a part of the strategy a team uses for the competitions. If you still want to ask such things, create a blog.

          "Ratism" has nothing to do here.

      • »
        »
        »
        »
        6 лет назад, скрыть # ^ |
         
        Проголосовать: нравится +3 Проголосовать: не нравится

        I personally down-voted you for this line `

        See it

        `

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +66 Проголосовать: не нравится

My ex-wife sent me the bill for the dog tax. I say hey this is your dog. She says, well, it's a breakup dog. What should I do?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

what kind of "work" do you do?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +119 Проголосовать: не нравится

What's your next big goal?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

What is your training routine to get better?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

What does "ecnerwala" mean? And how do you pronounce it?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится
»
6 лет назад, скрыть # |
 
Проголосовать: нравится -25 Проголосовать: не нравится
Time for some cliche questions
  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +63 Проголосовать: не нравится

    I think most of improving is practicing implementing and building familiarity with concepts. It's hard to say what difficulty level problem. I think to practice implementing, try to implement something that complicated enough that you'll make bugs, and then try to build muscle memory or other techniques to avoid those bugs. To learn concepts, probably try to solve problems that take you between 20 minutes and a few hours to solve.

    Also, reaching purple may not be the right goal; you'll probably want to set a short-term goals that are more incremental.

»
6 лет назад, скрыть # |
Rev. 4  
Проголосовать: нравится -43 Проголосовать: не нравится

you are a legendary coder ....i think you get many offer from Google/Facebook or many big tech company's share some interesting idea about that ....

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +9 Проголосовать: не нравится

    I don't have too much to say about that; there are a lot of resources online if you want to learn about these things. I will say that competitive programming problems are pretty similar to the programming problems I've seen in interviews, so it's definitely a helpful bit of experience to have.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Q1. can ecnerwala defeat tourist in google code jam finals ?

Q2. is ecnerwala belongs to china or any background history with china ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -9 Проголосовать: не нравится

where do you live Legendary Grandmaster?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

What do your cp practicing sessions look like? How do you work on problems (stuff like thinking for >30 mins, reading editorial afterwards, then implementing stuff)? Especially your practicing sessions at times when you were mostly active.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +46 Проголосовать: не нравится

    Yeah that's pretty much right. I'll think for a while, especially if I feel like I'm still making progress. At some point, if I'm stuck or I no longer want to work on the problem (or at the end of the contest), I'll read the editorial or discuss the problem. I think it's important to go back and make sure you actually understand the structures of the solution and how they do and don't generalize. (How things don't generalize is a great way to understand what underlying structure is being relied upon.)

    Then I usually try to implement it unless it's particularly uninteresting and annoying.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Which things you like and dislike most in your professional life?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -21 Проголосовать: не нравится

huge number of easy questions or few number of hard questions? Which is better for practice? And do you think solving math problems and normal puzzles help in any way?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

how old are you, from when you started coding?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +37 Проголосовать: не нравится

Do you eat pineapple on pizza?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to be a legend like you?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -34 Проголосовать: не нравится

I love you....Do you love me?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +70 Проголосовать: не нравится

Favorite moment in a programming contest?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What is your favorite programming competition?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +52 Проголосовать: не нравится

Apart from Competitive Programming , what are your areas of interest(hobbies)?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Likelihood of me featuring in a Lockout dual vs tourist?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

Do you have girlfriend if not any ex ?

And whats your age btw ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +68 Проголосовать: не нравится

Do you find software engineering to be interesting in general? Asking because the thinking involved is very different from algorithmic thinking.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    For sure. I actually really like the parts of competitive programming that are more like software engineering, like designing good interfaces and abstractions. I think that's one of the things that makes me pretty good at technical problems.

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

hi

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +28 Проголосовать: не нравится

How do you prepare your team for ACM ICPC?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

According to you what is your biggest achievement so far?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Any lockout planned for the near future? Have you watched Errichto's recent lockout? If you hold a lockout in the near future could you incorprate the problem explaining like Errichto did in his lockout?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You seem to be extremely proficient in C++. How long have you been using C++ and what are you favorite programming languages ?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I've been using C++ since 2013. My favorite programming languages are probably C/C++, Go, Python, and maybe Rust (I haven't actually used Rust much though). I think Typescript is pretty cool, but I haven't used it much (also npm scares me).

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +35 Проголосовать: не нравится

Do u have girlfriend?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

Can anyone become an LGM?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Q1. What is your thought process when you are not able to do good in contest?

Q2. What is the best way to learn new topic and practice and from where?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +6 Проголосовать: не нравится
    1. I think you just have to keep pushing to do better; it's good to reflect a little on what changes you could make to do better in the future and then just move on to the next contest.

    2. Depends on the topic, probably just read about it and make sure to practice on problems.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +107 Проголосовать: не нравится

Do you like monkeys?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Did you practice on some other site before starting off with codeforces? Also if you don't know a particular concept where do you read stuff about it ?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I started off mostly with Codeforces and USACO training (both the training pages and past USACO problems).

    To read about concepts, it depends on the concept; sometimes there are good resources on blogs like CF, other times you just have to read papers (which sucks). Asking peers for help is also good.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

How to I tackle the frustration in competitive programming .Thanks in advance.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +75 Проголосовать: не нравится

milk first or cereal first?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

which university in {USA / California} is best for {computer science/computer engineering} ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +48 Проголосовать: не нравится

Did you have the opportunity to stay in academia, and if so what made you want to go into industry?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

How soon after reading the problem would you recommend seeing the editorial ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +55 Проголосовать: не нравится

It was at this moment he knew, HE FUCKED UP!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What did you study in Uni? Did you do any research?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

have you ever thought of giving up cp or took a long break?out of frustration or maybe your contest performance was disappointing to you at some point or for any other reason.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Who killed Kennedy?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +44 Проголосовать: не нравится

Few of my questions:

  1. Do you workout?
  2. Do you watch animes?
  3. Tea or coffee?
»
6 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится

Would you tell us your programming experience from beginner to advanced and how to improve ourself

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

What one thing you would like to achieve regarding competitive programming?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

How do you manage time for both job and CP?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -6 Проголосовать: не нравится

What is your industrial skill . I mean , what you are, a Teacher ,a webdev ,software engineer, ML/AI engineer, etc. ??

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится +3 Проголосовать: не нравится

Where you see yourself after 5 years from now ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What are you doing for entertainment (without coding ) like tv/movie/song ??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Why should we hire you for this job?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do u love pizza??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Do u also struggled initially to solve Div2d,div2E??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Do you play any video games?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится
  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +8 Проголосовать: не нравится

    Let's Say we currently have $$$i$$$ stones, then $$$\forall\; p_k \in P$$$, if $$$i-p$$$ was a losing state, then $$$i$$$ is a winning state.

    For Example if $$$i = 0$$$ then, $$$p$$$ is a winning state since $$$0$$$ is a losing state. Hence the following recurrence holds,

    Spoiler

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

What competitive programming site do you love the most? Is it codeforces or something else?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

With whom do you enjoy solving in a team more scott_wu or ksun48 if you were to choose only one ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

What does it take to get 5.0 GPA in BS Math and computer science at MIT ( because you scored 5.0 )

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

I feel like, I'm stuck in cp in one point, can you suggest me, how can i reach cf 1900+? or what should i follow?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -18 Проголосовать: не нравится

ecnerwala i used to use vectors but because of some serious tle problems i stopped. And it’s really hard to use arrays instead of them. How do you use vectors and handle tle cases?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

My girlfriend left me. I called her. After an hour of argument, she agreed to come back only if I become an expert in a month. I am confused and sad. Bitch took my earphones too.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -55 Проголосовать: не нравится

Why is ecnerwala?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

what the hell?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Is coronavirus a hoax made up by flat earthers?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What are frogs?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

How hard did you work to maintain your perfect 5.0 GPA? Also, considering you didn't pursue academia, why did you go through so much effort to maintain a perfect GPA?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What brought CP to you?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

How transferrable is CP to real programming? Do you use a lot of skills that you learned in CP during work?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When you were at the beginning stage of learning CP, how did you spend time for different topics (DP, graph, math...) and what were your ways to maximize the productivity in the decided time spent?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +170 Проголосовать: не нравится

What happened between 2016 and 2018?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

your favourite sport other than competitive programming

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Your are a legendary grand-master. You spent a lot of time in cp. Do you think that you sould have been spent slightly less time in cp and do "something else" ? If so what is that "something else"?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

are you a coffee person? or tea?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Did you/do you do competitive math too? I vaguely recall seeing you in some of Evan Chen's streams.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

do you have an Android or IOS smartphone ? which OS do you have in your computer ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What do you do when you get bore with problem-solving? How do you refresh your mind!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
  • What was your usual routine at MIT?

  • How did you manage your time between competitive programming and college work?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What is the point of doing cp professionally?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Wish me good luck for my first appearance of Div 1 contest.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How did you start competitive programming? Do you have any tips for beginners?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You're just 22. Are you the youngest Legendary Grandmaster?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
  1. What does ecnerwala mean?
  2. How many girlfrineds?
  3. Other hobbies except CP?
  4. If ecnerwala didn't choose to be a competitive programmer, what would he have done?
  5. Atcoder vs Codeforces?
  6. How to improve? I am practicing but my rating decreases.
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

how did you think of the idea of putting your name in reverse? it looks so cool!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What is your favorite show?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

It seems like you really love lambda expressions, any particular reason why?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

From Where do you learn new algorithms?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What do you usually do when you are free ? Or you are always busy ? :D

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Challenge: Solve your next contest problems in python only

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +29 Проголосовать: не нравится

Why you don't have an avatar on Codeforces?

Also: if you could only solve problems from one of these platforms: Codeforces, Atcoder, or Topcoder, then which one would you choose and why?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Are you ecnerwala?

...it's ask me anything after all.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Is ecnerwala interested in starting a startup?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Are birds real?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can you be my mentor for competitive programming?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to be able to think CP questions in free time(like pooping or bathing). I don't have enough time for practicing. This semester's like hell. Not even a single hour to study. Sme tips on how to manage time for CP?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How do you feel having to get up in the morning at 730 and giving a contest? Does it get you all set for the day?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Have you thought of becoming one of the best when you were just starting?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do you think knowing algorithmic theory is important for CP, i.e proof of correctness of some of the famous algorithms...etc. Also, where did you learn C++, you look really skilled with the language.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do you have any advice on getting good at competitive programming quickly?

Also do you have any advice on what I should if I cannot solve a problem other than reading the editorial? (because just reading the solution feels kind of useless ad you don't really seem to be learning anything that you can apply on other problems)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How 2 nutella?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What problem paradigm (e.g. graph, dp) are you strongest/weakest in?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

As a Californian, is there any particular reason that you chose MIT over Stanford?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

ecnerwala have you ever participated in IMO?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

Are we in a simulation?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How did you choose to study CS at uni? Did you have any other interests in other subjects? If so, what made you choose CS?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -20 Проголосовать: не нравится

I was stuck in Round 664 Div2-C for more than half an hour. People say if you are stuck for more than half an hour, you shouldn't try more and just wait for the editorial. So, I gave up. Later when only 15 mins were left, the idea struck my mind. And I couldn't implement within those 15 mins. But after the contest, I submitted and it was correct. So, how should I decide whether I should give up or not?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +11 Проголосовать: не нравится

    You should never give up on a problem during a contest; that advice is for upsolving/practice, where you could potentially keep working indefinitely if you so chose.

    On the other hand, it can be good in contest to take a break or think about a different problem, so you can come back with a different mindset/different ideas.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Did you solve problems from UVa online judge?

There are very good problems and a vast number of hard problems but the problem is there are no editorials(idea, proof, etc.) for the problems. Codes of other participants don't help to properly understand most of the time.

Definitely it's true that many people somehow solved many problems from UVa in spite of this difficulty, I don't know how they did it. If anyone knows how they did it then reply, please.

What do you think ecnerwala, what should we do when we stuck for some problems in UVa?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +10 Проголосовать: не нравится

    No, I've never solved on UVa.

    Solving problems without editorials is definitely a tricky thing to do. I would recommend talking to peers about the problem, and if you still can't find a solution, it probably is actually slightly too hard for now; just set it aside and come back in a few months/years when you know more and then take another stab at it. Having problems open in the back of your mind could lead to you discovering something!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -24 Проголосовать: не нравится

Trump or Biden?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Your favorite video game?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

Hi, Do you believe in God?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey have you ever got mentally exhausted with a problem in a contest? like "I don't want to think anymore" kinda stuff

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

How much do you bench?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I have knowledge on DS, algos but have very less experience in c++ or any other language coding.

I find codeforces problem tough even after seeing codeforce solutions for each contest. what should i do? ecnerwala?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do you like Timus OJ? Are there any particular sites (apart from the discussions, which are often unreliable) where one can get editorials/solutions for Timus problems?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What is the cp achievement you are most proud of?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

when you do competitive programming as a by product do you fall in the eyes of big companies and if yes how do they attempt to approach you ? Do you just have to top the coding competitions or doing fairly good is enough ? ?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I don't think I've received too much attention from just coding competitions; it's usually been just CodeJam/HackerCup finals and other big onsites. On the other hand, I'm in a pretty privileged position to be able to reach out more directly to a lot of companies via MIT/SFBA, so coding competitions could potentially be helpful.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

On a scale of 1-10 how much would you rate your understanding of C++ as a language?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +30 Проголосовать: не нравится

Чей крым?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

Any ideas on whom I’d need to talk to about commentating for NAC next year? Or is the best way to get invited to that just being really really good?

Also, do you have any plans on live-VPing 2020 ICPC WF (with some of the LGM/IGM friends if they are interested) similarly to what tourist/Petr/endagorian usually do?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Is Machine Learning overhyped?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

Have you ever thought as a beginner that one day your cp journey will inspire thousands and will make you this much popular?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

When you're stuck / discouraged: what fuels you to keep pushing yourself?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -9 Проголосовать: не нравится

Why don't you have updated your profile picture?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do you have any plans for your Youtube channel, like uploading screencasts and stuff? Would love to see that.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

What's your opinion of the finance / fintech industry? Why did you decide on pure software instead of some type of mixture?

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

1.Do all computer science students in MIT do competitive programming?? having said that , are all good at it or you remember any of your friends struggling with it?

2.Do you have any plans of coming to India for a tour ? If yes, do ping me once, it will be an honor to do your hospitality!!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi How do you manage time between CP and Work? I assume you have min 8 hours of work. Do you give time to improve yourself in writing good quality of code maybe by reading some books? Like some people with java background read effective java etc.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

You have said that you had started CP at the age of 14. You had spent so much time in CP, then how did you manage time for academic study?

In universities, we spend a lot of time to do classes and when some exam comes up, we have to study for a long time to do better. For this difficulty, I can't spend so much time on CP. But I know some of the Competetive Programmers who are ACM ICPC world finalists and at the same time, they have very good results in their universities.

What have you done to avoid these difficulties? Advice me that what should I do to manage time?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится -7 Проголосовать: не нравится

    Do you really have to study so much for university that you can't take out 2 hours per day on average for CP (which is enough IMO), or are you just trying to find excuses for your own laziness and wasting time? I have friends who are really good at CP + CGPA. They don't study too much. They are attentive at classes / labs, finish large lab assignments swiftly (CP skills come handy here), really good at cramming so they just study 1-2 night for each quiz / class test and 1-2 week for each term final exam.

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится -15 Проголосовать: не нравится

What season do you like most winter or summer?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +4 Проголосовать: не нравится

    Don't you think it's selfish and inconsiderate of you to make such request (you didn't offer him anything for taking such a trouble of travelling to another country)? And unfortunately this is not the first time I am seeing such selfish inconsiderate requests from you (here). Please try to be more considerate of others and less selfish in your requests.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Why do most USA IOI team members have a Chinese family name?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What's the most useless talent you have?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

What if I gave you :
i- 1 million dollars but you'll never get first place in Codejam Finals?
ii- 10 million dollars but you'll never get first place in Codejam Finals?
iii- 100 million dollars but you'll never get first place in Codejam Finals?
iv- whatever amount of money you desire but you'll never get first place in Codejam Finals?

I mean , are you willing to trade that rank for huge money? Tell me honestly please. :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey encerwala! If you got a chance to go in past by time travel, what will you do first?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

When did you actually started competitive programming (like, in middle school or something)?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What to do if one feels like he is not improving in spite of practicing regularly?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

what is the silliest mistake that you have done?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +18 Проголосовать: не нравится

    The first time I attended the USACO training camp, there was a problem with a pretty simple greedy solution. I implemented the solution without proof, but I failed because of integer overflow. I didn't realize, so I spent a ton of time trying to optimize a brute force instead :(

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

What kind of music do you listen to?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How do you pronounce ecnerwala?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

ask me anything

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

1) How many hours a day do you usually practice? 2) Did you do math competitions in ms/hs? 3) What's your favorite area of CP?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -29 Проголосовать: не нравится
»
6 лет назад, скрыть # |
Rev. 4  
Проголосовать: нравится +2 Проголосовать: не нравится

Your favorite color?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Thanks for doing AMA! More people could take it as inspiration.

Questions: 1. What are the most interesting problems that you have encountered? 2. Why did you decide against doing a Ph.D.?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

Does having a great rank helps in making international friends for life and will you be my friend on facebook?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Where do you see yourself in 5 years both professionally and personally ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Do you have any advice regarding staying productive and not getting distracted?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -13 Проголосовать: не нравится

Thanx for having this session.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

How to become red on CF??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What differentiates LGMs from reds ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

Who do you think will win in Um_nik vs Thousand Cyans Contest ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

What's your favorite book?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -13 Проголосовать: не нравится
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

I love cows

do you?

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +28 Проголосовать: не нравится

You seem to write code which is more similar to how people code in the industry\readable oriented, than in CP imo. (lack of defines, no arrays outside in outer scope, reserve optimizations, using std::array instead of pair<int,int>, etc.)

So I went over your code for few answer in the last round, and I was wondering:

  1. Why do you cast size_t everywhere? i.e (for (int i = 0; i < int(vec.size()); i++))

  2. Do you use macros for int64_t \ for(auto& a: arr) \ vector<vector>, push_back, or do you type it down each time?

  3. Do you feel like emphasizing clean code and usage of stl functions, help you CP better?

  4. What does y_combinator means? I'm guessing it doesn't have anything to do with the y_combinator start-up hub.

  • »
    »
    6 лет назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится

    For the 4th point, you can refer https://usaco-guide.vercel.app/general/cpp-tips#recursive-lambdas. It's basically a way to write recursive lambdas without resorting to workarounds like std::function

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +63 Проголосовать: не нравится

    I tihnk this is one of the big things that makes me good at implementation. I think it's funny how you called it "readability-oriented", because I think being able to read your code pretty essential; how the hell can you debug if you can't follow your own code? To implement any longer, more technical problem, your can only keep a little bit of the code in your head at a time, so the rest of it must be clean/readable enough to go back to it.

    That said, some of the things I do are just because I'm a perfectionist and want to use "correct, modern C++", rather than have things like global arrays and stuff.

    (One particular point: I try to use std::array instead of std::pair<int, int> when the two elements are "symmetric" because it's easier to see/use the symmetry with array syntax than with first/second.)

    1. There are a lot of gotchas with comparing against an unsigned integer: you'll actually cast both sides to unsigned, so -1 < size_t(0) actually returns false. I've pretty much built the habit to always cast to int to avoid this. Also, there are compiler warnings to check this (-Wsigned-compare) which I use, and I want to silence them.
    2. I don't use macros; I think my typing speed is good enough to still be faster than my thought process.
    3. Clean code, yes; stl, maybe not as much.
    4. The y_combinator allows you to do recursive lambdas, because a lambda can't normally refer to itself in C++ without paying a runtime cost (that's pretty much a bug which they're just getting around to fix). I took the y-combinator code from this proposal. There's another proposal to allow you to give your lambdas names, but it looks like this is going to be solved in C++20/C++23 via a more general proposal.
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

Its easier to get a Girlfriend being LGM?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

what came first? The chicken or the Egg?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

What are your SAT scores?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Hi ecnerwala!

If you had to take an educated guess, what range do you think USACO (bronze,silver,gold,platinum) problems fall in terms of Codeforces problem rating?

And do you think doing Codeforces will make you better at USACO?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What do you listen to when you do a contest or practicing in general?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -12 Проголосовать: не нравится
»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Do u prove every answer mathematically??Like i want to ask most of problems u solve are by intution or by rigrous mathematical proofs.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -18 Проголосовать: не нравится

I want to do better than you ecnerwala!!! what i should do for this??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Do you agree that icpc requires a wider knowledge of algorithms/data structure? If so, how much wider and could you give a few examples?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +27 Проголосовать: не нравится

    For sure, ICPC-style contests (especially OpenCup) much more frequently requires some pretty advanced stuff like BBST, FFT, general graph matching, or generating function tricks. I think a lot of this is because ICPC is longer (15 man-hours per team of thinking time, 5 man-hours of keyboard time) and intended for an older audience (college, not high school), so people are more comfortable putting harder topics on it. I think OpenCup's place as a contest to explore more advanced topics is a very good thing to have.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Not really a question, but congratulations for being the first one to solve the whole problem set of FHC Round One.

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -25 Проголосовать: не нравится

;0

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

I enjoy coding in codeforces and wanna become programmist one day. Do you think it will help me achieve this?

»
6 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

How much time do you spend to keep a LGM-level performance?

How much time is needed (for you) to be an LGM(from a newbie)?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Do you play CTFs?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What computer do you use for programming and which operating system?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by ecnerwala (previous revision, new revision, compare).

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

Is ecnerwala Early bird or night owl ?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Ever happened that you stuck in A or B in Div2 after being red???

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

which Operating System do you use

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Do transformers have health insurance or car insurance?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

How to become as good as you.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Which Editor do you use to write your code?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Sir what is your age??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Are there any algorithms or data structures that you know about them, but can't implement without searching more information? I mean algorithms that can be used in competitive programming.

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -54 Проголосовать: не нравится

ecnerwala, what is lenght of your dick in millimeters? Ignore this comment if its less than 50 milimeters.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -28 Проголосовать: не нравится

What you think about it??
Sexism in Google Hiring

Have you ever faced anything like that??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can you please make a video on how to get an NVIM setup similar to you , in your youtube channel?

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

I think you'll soon be the next world champion as far as programming is concerned. Right now you're 2nd. I have a lot of expectations from you. All the best.

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +23 Проголосовать: не нравится

Hi i'm wondering how you choose proper CP problems for practice? I often find the problems I am doing either too hard or too simple and spend too much time struggling with thinking solutions and understanding editorials. I feel that my training is quite inefficient. Do you have any suggestion? :D

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

How is your family?

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +51 Проголосовать: не нравится

Is math invented or discovered?

  • »
    »
    5 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +27 Проголосовать: не нравится

    yes

  • »
    »
    5 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +32 Проголосовать: не нравится

    we invent a system of axioms, and then discover things about that system

    • »
      »
      »
      5 лет назад, скрыть # ^ |
       
      Проголосовать: нравится +33 Проголосовать: не нравится

      I was thinking about whether the axioms themselves are somehow fundamental in nature. For example: Are the natural numbers (which are based on The Peano axiom) just an invention of humans.

      • »
        »
        »
        »
        5 лет назад, скрыть # ^ |
         
        Проголосовать: нравится +20 Проголосовать: не нравится

        First of all I think that "invent" and "discover" are human terms that don't have an exact meaning: the definition of these words is approximate and unclear. Like most words, their meaning is generally agreed upon when we talk about typical usages (elecricity was discovered, lightbulb was invented) but the words themselves don't have a well-defined meaning when we get to edge cases (math). So in some sense, the question is meaningless.

        Some other philosophy: I would be careful when saying things like "we invent a system of axioms" (at least, for some definitions of "invent"). The axioms may be "invented", but the reasons why axioms are chosen are "discovered". Because axioms aren't constructed randomly. The ideas of groups, rings etc. precede the axiomatic systems that we are now used to. The terms used to refer to more specific terms until someone noticed a more general pattern and introduced the axioms to talk about that pattern. Using "invent" and "discover" according to my intuitive interpretation here: the more general patterns were discovered, and the axiom systems introduced to talk about those things. The concept of groups was there before the axiomatization, it might make sense to claim the axioms were invented but groups themselves were discovered.

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Probability / 50% confidence time interval til we get Dr. ecnerwala / Prof. ecnerwala? (does one capitalize handles?)

»
5 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

ecnerwala did you always initially believe in yourself? Have there been times when you completely hated competitive programming and then back you want to solve many, many problems? or this only happens to me?

»
3 года назад, скрыть # |
 
Проголосовать: нравится -18 Проголосовать: не нравится

Can you tell me how to improve coding skills ? Can you give me advices ? (Links, problems, videos) ?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

IN my eyes your my G.O.A.T

»
3 года назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

I don't think anyone has asked this yet, but will you be posting more screencasts in the future on YouTube? I enjoy watching them.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

why is your username ecnerwala?

»
21 месяц назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What's the secret of your transition from Pupil to GM I just 16 contests?

»
10 месяцев назад, скрыть # |
Rev. 4  
Проголосовать: нравится -13 Проголосовать: не нравится

What keyboard are you using? It sounds pretty good