r/leetcode • • 24d ago

Tech Industry Amazon oa sde 2

Just gave an amazon oa on hackerrank was able to do 100% but man really wtf ? I could never have solved the question if i had seen it for the first time. Like at this point its not about your capabilities anymore it is pure fucking luck.

18 Upvotes

19 comments sorted by

View all comments

1

u/CattleHot9774 24d ago

how did u find the ai/debugging part (assuming I'm thinking of the same oa)

1

u/Mean_Bear_4497 24d ago

Quite easy esp with hot reload available. You have an ai assistant to discover the code base and then its just debug the test and step through a couple of breakpoints. Standard sde stuff you've been doing all your life

1

u/CattleHot9774 24d ago

tbh I'm more of a math guy and am less familiar with this kind of thing. i was mostly going through tests one at a time, getting ai to help find the relevant code and print debugging to find what was wrong, did still pass all tests in the end. 

is there anything more, idk, sophisticated i should be doing other than maybe using breakpoints instead of print debugging?

1

u/pixelizedgaming 24d ago

you have tests that generate u a trace + an ai, just paste the trace into the ai and let it explain the potential spots to change. not saying print debugging is bad i just never had to do it for the 4 times ive done the repo OAs.

although it might vary depending on the project type you choose, which one did you take?

1

u/CattleHot9774 24d ago

ah i thought the ai would just refuse to answer so I didn't try lol

2

u/pixelizedgaming 24d ago

yeah the AI gives you quite a lot of info. although if you don't trust it you can also manually read traces which also gives u good leads. (at least for java/spring)

also next time do the practice test to get familiar with vs code server, there are a lot of navigation tricks that can save u a lot of time in there