Skip to main content
Airbnb logo

Welcome to Practice Coding Test

Test duration10000 mins
No. of questions4 questions
Platform Help|Execution Environment|FAQ

Instructions

Hey there! Thanks for stopping by.

We hope you can use these challenges for practice! You are not required to complete all or any - it is simply for practice to re-engage your usage of algorithms, data structures and CS fundamentals.

After you submit your solution with your writeup, you will be able to view your score.

Please refer to each question for individual details.

  1. This is a programming test
  2. You are free to choose any language from the list and code
  3. If the code area contains the function signature, just complete the function alone, we'll take care of the main function, headers, etc
  4. If you're expected to write the full code, it'd be mentioned in the code area. All inputs are from STDIN and output to STDOUT. If you're using Java, use the classname as 'Solution'
  5. You can print to console to debug your code using the appropriate print command for each language (Eg: count for C++, printf for C, etc.)
  6. It is okay to use reference language documentation or use an IDE that has code completion features. However it is not acceptable to consult/copy code from any source including a website, book, or friend/colleague to complete these tests.

 

These candidate materials are confidential and fully subject to the protections of the Candidate Non-Disclosure Agreement (“Agreement”) you have entered into with Airbnb, Inc. in conjunction with your interview process. Per the Agreement, you may not share or disclose these materials with anyone outside of Airbnb and you agree to not use, disclose or incorporate any third party inventions, intellectual property, confidential information or trade secrets, unless that third party has expressly consented to such use or disclosure in writing. The information, data and/or facts contained in these candidate materials are purely hypothetical and intended only for assessment purposes. All data included has been simulated for this exercise. Notwithstanding, to the extent you create code or other developments in the course of this exercise, you hereby fully assign to Airbnb all right, title, and interest therein.

Try Sample Test

Questions

Feel free to choose your preferred programming language from the list of languages supported for each question.There are 4 questions that are part of this test.
Question IndexesQuestion Types
Q1
Q4
Coding Questions33 languages allowed: c, clojure, cpp, cpp14, cpp20, cpp23, csharp, dart, erlang, go, haskell, java, java15, java17, java21, java8, javascript, julia, kotlin, lua, objectivec, perl, php, pypy, pypy3, python, python3, r, ruby, rust, scala, swift, typescript
Q2
Coding Question16 languages allowed: c, cpp, cpp14, csharp, java, kotlin, java8, java15, java17, java21, javascript, objectivec, php, python, python3, ruby
Q3
Coding Question24 languages allowed: c, clojure, cpp, cpp14, csharp, erlang, go, haskell, java, java8, javascript, kotlin, lua, objectivec, perl, php, python, python3, ruby, scala, swift, java15, java17, java21
Try Sample Test