Hard level of brute force tactics.
So, here’s one of the hardest forms of brute force techniques that you may need to solve the challenge. But what’s interesting here is that you can take advantage of the previous challenges; experiences and knowledge. Let’s try in Kotlin!
Hi all,
It’s just been a little while since I last posted about Kotlin. But as you may know, if you’ve been following my blog, my this year’s resolution is to be an Android developer. And to achieve the dream, I at least have to master the platform’s official language: Kotlin.
It’s been more than five years since Google announced its Kotlin Fist policy all thanks to the endless battle with its nemesis, Oracle, over the license of Java, which was mainly used for Android app development.
As for myself, I guess I spent almost the whole 2022 building my own Java-powered Android app for my portfolio, and I wanted to finish the app ASAP so that I could start building another Kotlin-powered app that could attract my future Android-dev employer – but I failed to finish the Java app for its super complexity because of the year+ development that made the whole system almost only understood by myself.
I think almost 90% of the app is finished, but still, there are a lot of things I need to work on…
Anyways, since I’ve been working on my own personal projects in other languages, I think I need to keep my focus on Kotlin for at least the remainder of this month. So. probably Kotlin-related posts will dominate the blog for a while. Please bear with me, folks! Anyways, without further adieu, let’s get into the content!
Boolean in Kotlin:
So, we’ll go through boolean in Kotlin. But if you have some experience coding in Java or other languages, probably you can understand in a heartbeat, can’t you?
Here. is Trapping Rainwater‘s solution, which I posted its logic explanation in Java a few days back, written in Kotlin.
Executed result:
The answer the program retrieves from waterCalc() is 8, which is greater than 5, so the checkNum returns true.
Afterthoughts:
So, yeah… I’ll keep going on with Kotlin for a while! Hello Android, Hello Google!!