Skip to content

Instantly share code, notes, and snippets.

@brianspiering
Last active April 23, 2021 22:01
Show Gist options
  • Save brianspiering/bdb5cadebc1cce24f658585c7bff4e22 to your computer and use it in GitHub Desktop.
Save brianspiering/bdb5cadebc1cce24f658585c7bff4e22 to your computer and use it in GitHub Desktop.
Interview instructions

The goals is to write working Python code in coderpad. Additionally, you must answer the following questions: What the time and space complexity of your solution? What is optimal time and space complexity?

Decide who is interviewer and who is interviewee. The interviewee can look at the problem statement. Only the interviewer can look at the solution.

Problem #1 Statement - https://gist.github.com/brianspiering/ee99f83c02321d0eb7bf47c45aec0f31
Problem #1 Solution - https://gist.github.com/brianspiering/dcb8cdcf1c45d23731d684d2e8326f28

Time box for trying for 7 minutes. Cover solution in 3 minutes. Switch roles for Problems #2.

Problem #2 Statement - https://gist.github.com/brianspiering/9562bf3dc63501e8194b5ef35d429608
Problem #2 Solution - https://gist.github.com/brianspiering/6e411af7b6b78f5fa24765586a2e95ae

If there is extra time, discuss solutions using this coding rubric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment