Posts

Showing posts from June, 2018

RECENT INTERVIEW QUESTION: Find Sum-Pairs in an Array that add up to X (JS/Ruby Solutions)

Recently got this question in a technical interview for a junior dev position. It's a pretty straightforward algorithm... still fumbled through it a lil bit to start (nerves). They also asked me to do it in Javascript specifically, which I'm still getting comfortable with (Ruby was language #1 for me). Anyway, check it out below. I'll talk through what I like/dislike about the solution, and I'll include a Ruby solution at the end too.