Don't leave your software engineering career path to chance. Make sure you're interview-ready with Exponent's *software developer interview prep course.* Start free. bit.ly/3784Yas
@@qx-jd9mh Take home style or live coding? My main gripe with these interviews has always been that live coding in under an hour is such a poor way to measure/demonstrate knowledge or skills. I think the topics they try to touch on see valuable however.
Nope, for n=3 a 3x3 chess board will contain 9 squares. No matter how you place your 3 queens, they will end up attacking one of the other queens example 1) x o o o o x ? ? ? 2) o x o ? ? ? ? ? ? 3) mirror of 1) x marks a queen o marks empty space ? marks space that can't be filled with a queen Cheers :)
Don't leave your software engineering career path to chance. Make sure you're interview-ready with Exponent's *software developer interview prep course.* Start free. bit.ly/3784Yas
lol this guy memorized the question on leetcode.
Are there interviews on this channel where the person hasn’t simply memorized the question?
Wish there were more places like Jane Street who don't reward rote memorization of Leetcode problems.
@@qx-jd9mh What does Jane Street do?
@@jalbers3150 Design useful programs with computer science fundamentals.
@@qx-jd9mh Take home style or live coding? My main gripe with these interviews has always been that live coding in under an hour is such a poor way to measure/demonstrate knowledge or skills. I think the topics they try to touch on see valuable however.
@@jalbers3150 I mean, do you really know a subject if you can't utilize it on demand?
shouldnt n = 3 return 1 valid solution...?
You are right ! Just what I was wondering
Nope, for n=3 a 3x3 chess board will contain 9 squares.
No matter how you place your 3 queens, they will end up attacking one of the other queens
example
1)
x o o
o o x
? ? ?
2)
o x o
? ? ?
? ? ?
3)
mirror of 1)
x marks a queen
o marks empty space
? marks space that can't be filled with a queen
Cheers :)
Exactly what i thought