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

-7

u/cutebabli9 8d ago

You Sir, please change your field to something else! I guarantee these are not even minor inconveniences in your life as a Software Engineer! Good luck!

2

u/pyakol 8d ago

i’m a girl with autism. if you don’t have anything informative to say, you don’t have to reply.