Please read the new rule regarding the restriction on the use of AI tools. ×

kakashi77's blog

By kakashi77, history, 4 years ago, In English

Hi codeforces, I am realative beginner in the world of algorithms and recently I have come across the pigeon-hole principle and I am slightly overwhelmed as even though I understand the principle, I am not able to develop a thinking strategy for solving problems like this, can someone please share a tutorial so that I can develop more on thinking or a list of beginner problems for me to get started on. Thank you, any help is greatly appreciated!

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Here take a puzzle for fun: You are in your room with no lights and you must pick a pair of socks to wear. Your closet contains only black and white socks. How many socks you must pick without seeing, in order to be sure that you have a valid pair of socks.