UPD: the interviewer specifically wants you to test your code after you wrote the solution. How do you test your code when doing a phone interview (and the interviewer executes the code you wrote)? Are asserts enough (“I typically I’d use X, Y testing frameworks but since I can import them here I’ll stick with asserts)? What do you think about it as the interviewer? YOE: 1 TC: 120
Define the meaning of the word “test”.
I was once in similar phone interview once, can’t recall which tool but may have been coderpad and “code execution” was enabled. I just wrote a main() [code was in C/cpp] with some test cases input and validated my actual solution (a function) by repeated calling it for each teat cases and printing output on console. Fyi... I did clear the phone screen to move to onsites.
Maybe they just want you to list test cases you would use?
ask? “should we write a full unit test or just list some test cases”
2024 Presidential Election
1h
240
Who are you voting for in the 2024 Presidential Election?
Layoffs
Yesterday
28226
Google CFO confirms "large-scale" layoffs today (Apr 17)
Software Engineering Career
Yesterday
3622
28 terrorist worshipping idiots just got themselves fired and I've never been prouder to work at Google.
Tech Industry
9h
1776
Go woke, go broke: Google fires 28 employees involved in pro-Hamas protest
Cars
Yesterday
1191
Why are Americans obsessed with SUV?
Typically I don’t test when I do coderpad, hackerrank.
UPD: the interviewer specifically wants you to test your code after you wrote the solution.