Sorry but the part 2 answer is wrong :) I know because I solved it correctly :) Great tips with the zip and unzip, the substring functions ! Thanks ! (But maybe they generate different sets of input per user, in order to avoid copies ? that's interesting....and they have they own code to verify the answer for each user....)
There is a split function to break the string apart. It's pretty simple instead of substrings
I used sumOf for doing the sums on the lists, quite concise!
wish the audio quality was better
Would be great if the IDE more actively suggested Kotlin idiomatic way of rewriting something, if you are writing more Java-ish code.
Can you livestream the attempt live, presenting a prepared solution is not useful, I want to see an expert solve it blind.
Great ❤❤❤
Sorry but the part 2 answer is wrong :) I know because I solved it correctly :)
Great tips with the zip and unzip, the substring functions ! Thanks !
(But maybe they generate different sets of input per user, in order to avoid copies ? that's interesting....and they have they own code to verify the answer for each user....)
Every user has a unique input and answer, so you would need to run their code with your input file to get your personal answer.