News for hackers. Stuff that matters.
Re:I got asked LeetCode questions for a dev-ops systems engi... by dbancajas on Friday June 14, 2019 @02:42PM (#20185515)
what was wrong with this code? I don't deal with exceptions a lot so not familiar with the idioms here. Is it because the catch is not doing anything at i<3? And then at i==3 it just breaks from the for? So rendering the whole thing useless ?
Re:I got asked LeetCode questions for a dev-ops systems engi... by pault on Friday June 14, 2019 @02:46PM (#20185566)
`if i<3: continue; if i==3: break;` is what a for loop does. You don't have to manually control it.