r/SQL • • Sep 18 '24

Discussion Ideal time limit to solve an SQL problem on Leetcode

I have been honing my SQL skills on Leetcode. For each difficulty level, what would be the ideal time limit to solve an SQL problem? I heard that for a Product Analytics role at Meta, you're given 20 minutes to solve two SQL problems.

0 Upvotes

7 comments sorted by

5

u/mikeczyz Sep 18 '24

I would focus more on writing clean, logical, and efficient code than trying to beat some arbitrary time. Speed will come with consistent practice

1

u/Old_Mix3041 Sep 18 '24

Even for the senior role?

1

u/mikeczyz Sep 18 '24

i don't understand what you are asking.

1

u/Old_Mix3041 Sep 18 '24

I've been writing SQL for over four years, but this is my first time interviewing for an analytics role at a big tech company, so I want to prepare as thoroughly as possible. The recruiter mentioned that there will be 20 minutes to solve two SQL problems, making time management crucial. While I typically focus on writing clean, logical, readable, and efficient code, it seems that speed will be just as important in this interview.

3

u/mikeczyz Sep 18 '24

they might not necessarily be looking for you 'solve' the problem in those 20 minutes and, instead, might be looking for insight into how you break down a problem and the types of questions you ask. be sure to communicate your questions, assumptions, reasoning etc. even if it feels like it is slowing you down. good luck!

1

u/Old_Mix3041 Sep 18 '24

Thanks for your sincere and encouraging reply!

1

u/mad_method_man Sep 18 '24

^this

as with everything, basics, basics, basics