First interview with recruiter, then an intro call with a group leader and then a technical Python interview with another group leader. Next steps would have been a system design/going over the architecture of something I did and the last step would have been an HR interview with the recruiter.
First interview - Overall explanation about the company.
Second interview - They had a nice assignment to test your debugging skills in Python. The interview invite will be called "Rick and Morty" if it's the same drill.
You have a few methods in a Google Colab which fetches data from the Rick and Morty API (https://rickandmortyapi.com/documentation/)
The background story is: The code suddenly stopped working (nothing new has been pushed) and you need to figure out why.
The code fetches data about characters from Rick and Morty in 2 different ways, and compares if the result is the same. It was not, and the issue was that one of the methods used an API that uses paging, and the number of pages to query was a constant - so not all of the characters were fetched (the site had about 42 pages, while we only fetched data for 30 pages).
I'm assuming they can change the issue, so here are the key principles I suggest going over:
Talk about the API documentation - You'll need to view it in order to see which field contains the count of characters in the given request
Log method calls before and after execution using fstring (The interviewer thought I did not know Python because my go-to wasn't fstring)
The code is relatively short - I suggest you to go over the entire code before running it. I would have caught the fixed amount of pages right away
Do it FAST, as the feedback I got was that I wasn't fast enough.
Here's the code:
import requests
BASE_URL = f'https://rickandmortyapi.com/api/character/'
def get_page(number): str_number = str(number) return requests.get(BASE_URL + '?page=' + str_number).json()
def get_characters_total_number(): return get_page(1)['info']['count']
def get_all_characters(): pages_number = 30 characters = [] for page_index in range(1,pages_number+1): response = get_page(page_index)['results'] for character in response: characters.append(character['name']) return characters
def verify_number_of_characters(characters): if len(characters) == get_characters_total_number(): print('all good') else:
raise 'There are missing characters'
def verify_number_of_characters_with_bold(characters): # Please write properly print('') verify_number_of_characters(characters) print('')
def insert_to_db(data): #starting doing something # This is a wrapper method that replicate insertion to database # But for the exercise, we just print. print(data) #ended doing something___
def verify_number_of_characters_with_bold_and_timer(characters): verify_number_of_characters_with_bold(characters) print(f'the fetching took:{duration} sec')
if name == 'main':
duration = None
characters = get_all_characters()
for character in characters:
insert_to_db(character)
verify_number_of_characters_with_bold_and_timer(characters)
The following metrics were computed from 1 interview experience for the Axonius Engineering Team Leader role in Tel Aviv-Yafo, Israel.
Axonius's interview process for their Engineering Team Leader roles in Tel Aviv-Yafo, Israel is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for Axonius's Engineering Team Leader interview process in Tel Aviv-Yafo, Israel.