Комментарии:
Синтаксический сахарок в каждый дом
ОтветитьThank you for that, that's a fun way to learn the language!
ОтветитьПрикольно!
ОтветитьAwesome video! Great way to get introduced to the std lib
ОтветитьGreat
ОтветитьYeeeeesssssss!!!!! This is hype!
ОтветитьGreat video ! However, may you activate the automatic subtitles next time ? Sometimes the strong accent is hard to process for non native english speakers ^^'
ОтветитьgroupBy, associateBy, mapNotNull, firstOrNull... all of those can make your code SO much more concise and readable. I use them all the time.
ОтветитьThank you for such nice explanations and idea of getting into several solutions for adventure of code with providing nice way of writing code in Kotlin! Btw good sound quality and perfect animations! 👍 Thank you!
ОтветитьThis video and exercise was very, very helpful in learning more idiomatic Kotlin. Please do more. Lots more.
ОтветитьVery well explained
1. Problem statement
2. Implementation
3. Adoption kotlin style
Thank You. Expecting more.
Super fun! Go on
ОтветитьWhat is the time complexity of the explained solution?
ОтветитьVery Nice! More more!
ОтветитьGreat stuff! Both Kotlin and AoC are the coolest! I've been solving my AoC puzzles using Kotlin since 2017! :-)
ОтветитьVery useful video to learn kotlin. Expecting lot more videos like this!!.
Thank You for the work you are doing to educate people.
This is an invaluable resource to help both new and experienced developers think critically about their code structured around concrete examples
ОтветитьGreat! Just would've liked to see how much efficient is each solution.
Ответитьeven being such a good content , she makes me feel sleepy. I would recommend to change the host to some enthusiastic person.
ОтветитьAmazing both content and host, she explained it concisely, pointed out improvements, and introduced me to these Associate methods to work with collections, I'm still amazed by this approach.
I would like to know how and why she or the team behind these series came to this solution!
Congrats and thank you for this friendly content!
Great video, please do more :)
ОтветитьExcellent video. Perfect length: just long enough to explain usage patterns. This was very helpful to me on my path from idiomatic Java (yuck!) to idomatic Kotlin (yeah!).
ОтветитьGreat way to teach the language.
ОтветитьThis code will check the sum for number with itself in the nested loop. Is this part of the problem statement ?
for(first in numbers){
for(second in numbers){
if(first +second == 2020)
}
}
val set = hashSetOf<Int>()
numbers.forEach {
if (set.contains(2020 - it)) {
println("${2020 - it}, $it")
return@forEach
}
set.add(it)
}
very useful! thanks :)
ОтветитьReally well explained!, I appreaciate the effort
one thing that would nice to add is: how the resulting code O(n) es better than the n2 and n3 from the first approach
Ребята, горжусь вами. Давайте побольше таких видео. Плейлист пока что маловат)
ОтветитьSorry but for me this video leaves the impression, that if I want to do something the most complicated way nobody will understand later, I use Idiomatic Kotlin. I agree that 3 for loops are bad etc... and even without proofing it in this video, I would believe that the solution is faster.. but what is the price? Completely unreadable code, using Map<Int, Pair<Int, Int>> stuff where you need to add a comment so later anyone has at least a small chance of understanding whats happening here? Using methods you need to explain in detail because its obviously not obvious what they are doing? Okay to some things you might get used to sooner or later, but even when I look at the code in the end it feels like I use the theory of relativity on a simple sum problem or in other words: If that is the solution, I want my problem back ;-) Joking aside, "Keep it simple" looks just different for me.
Ответитьit will only take 3 minutes... i feel like a moron
Ответить