DEV Community

Cover image for Cracking a coding test interview - breakdown
Babacar Cisse DIA
Babacar Cisse DIA

Posted on

2

Cracking a coding test interview - breakdown

Cracking a coding test interview

Coding interviews are always for me an opportunity to learn and grow which is why I wanted to share you my thought process for this one I found this morning at letsrevolutionizetesting.com

What I saw when I visited the page
home page

I revisited the application form
application_form

I wanted to know what technology was used for this
server discovery

I was happy to find out it was ruby

And the hint was suggesting I should try json and I did. If you know ruby on rails then it comes to you naturally
request

But now I am in front of the page with this json payload. It says follow so I followed the link.
Once...
request id json

Twice...
request twice

Then I said wait...

but wait...

It was too good to be true. So you have two choices:

  • either you go follow one by one the id chain
  • or you can just write a bit of function like I did Alt Text

On the last page: The holy grale

result

You could have go for an iterative version with a loop

Wrap up

I guess at RainForest they will have to make a new test since you know the answer for this one.
Overall I think it way simple enough. We just needed to take each problem one at the time and yeah every beginner can do it too.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video