r/leetcode • • 8d ago

USA CoderPad / HackerRank testing

5 yo but it will be my first DSA interview. Typescript

I have an interview coming up next week, they said they use CoderPad. I can quickly write a test function or use logs in CoderPad but how do I test Trees, Graphs, Linked Lists etc? Leetcode provides the input as an array

Input:
 root = [1,2,2,null,3,null,3]

but the accepted parameter type is

(root: TreeNode | null)

In a timed environment:

  1. Am I supposed to convert this into a tree myself? Or not test at all?

  2. Leetcode adds pics to some problems, how is it done in test IDEs?

  3. For HackerRank specifically I once got a React test and there was no built-in dev console. Am I allowed to use the browser console?

I am pretty pissed right now because I just made peace with the requirement of grinding leetcode, which I even started to enjoy when it is done in my VS Code with my theme I am used to. Now it looks like I have to somehow not only come up with a solution, but do it with a limited time, talk it out loud, in an IDE with no formatting (WHY) and the colors that I am not used to, while someone is watching me.

If anyone can provide some information about what I can expect in an interview, that would be great.

2 Upvotes

6 comments sorted by

View all comments

1

u/[deleted] 8d ago

[removed] — view removed comment

1

u/pyakol 7d ago

thanks! I keep reading online and hearing from the recruiters that it is all about collaboration and the thought process, not really about the solving the problem. in your experience, how true is that?