Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Solving algorithms: beyond cramming for job interviews

Solving algorithms: beyond cramming for job interviews

Nina Torgunakova

April 01, 2023
Tweet

More Decks by Nina Torgunakova

Other Decks in Programming

Transcript

  1. 5

  2. Can you presume the probability that the last person will

    get his own sit? There are 100 seats and 100 passengers. 16 @ninoid_ Fact №1: Problems could be fun and tricky
  3. 0,5 Either you meet or either you don't meet 17

    @ninoid_ Fact №1: Problems could be fun and tricky
  4. 19 What is the minimum amount of cuts needed to

    divide a circle into 3 equal slices? Answer: 3 @ninoid_ Fact №1: Problems could be fun and tricky
  5. 20 But what if we need to divide a circle

    into 99 equal slices? You can solve it programmatically in 2 lines! @ninoid_ Fact №1: Problems could be fun and tricky
  6. ? Can you presume the minimum total cost to move

    three chips into one column? 22 @ninoid_ Fact №1: Problems could be fun and tricky
  7. When you decide to stay in the office for ten

    minutes to sort out a bug 32 @ninoid_ Myth №3: Problems are time-consuming
  8. How I see myself solving a problem for two hours

    without Google 34 @ninoid_ Fact №3: You can limit your time
  9. It is all about the marathon. Not the sprint. 35

    @ninoid_ Fact №3: You can limit your time
  10. Problems are not connected with real work and needed only

    for job interviews. 36 Myth №4: @ninoid_
  11. What will happen in one year? Imagine that from today

    you start to solve algorithmic problems wisely. 40 @ninoid_ Fact №4: It is useful not only for job interviews
  12. 43 @ninoid_ What I can write now in 5 minutes:

    Result №1: You will write code faster
  13. 44 @ninoid_ What I wrote in 5 minutes a year

    ago: Result №1: You will write code faster
  14. 48 @ninoid_ Use the discussion sections to practice explaining Result

    №3: You will explain your decisions better.
  15. 56 Tip №2: Always consider constraints 1 2 3 4

    5 Task: Traverse the tree with N amount of nodes What if the amount of nodes equals 0? Could it be? @ninoid_
  16. "Don't compare your chapter 1 with someone else's chapter 20."

    59 @ninoid_ Tip №3: Try to learn from others