Skip to content
0:00 / 0:00

#kotlin#tailrec#recursion

Kotlin Deep Dive: Tail Call Optimisation in Recursion

Coding Blocks

253K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Intermediate. Assumes working knowledge.

1.1K views7 years ago1 recommendation

Programming languagesComputer scienceKotlinCompilers and interpretersAlgorithms

Learn how Kotlin's tailrec keyword optimizes recursive functions to reduce memory footprint and prevent stack overflow exceptions on the JVM.

Java and the JVM do not support tail call optimisation of recursive functions. But Kotlin's compiler can optimise tail call functions with the tailrec keyword. Check out how we can reduce memory footprint and prevent a StackOverflow Exception by using tailrec in Kotlin #DynamicProgramming #Kotlin #TaillCall #Recursion ------- About Coding Blocks ------ Check courses on - online.codingblocks.com [Free Trial Available] Coding Blocks India's best Programming and software training institute offers courses like C++ and Java, Data Structures and Algorithms, Web and Android Development(Java and Kotlin), Competitive Programming, Coding Interview Preparation and Machine Learning, AI and more. Registration open for Online and Offline Coding classes.Take advantage of the professionals who have worked with bigwigs like Sony, Cyanogen, Micromax. Like our FaceBook Page - facebook.com/codingblocksindia/ Follow us on Instagram - instagram.com/codingblocks/ Follow us on Twitter - twitter.com/CodingBlocksIn Source code available on - github.com/coding-blocks-archives LinkedIn Profile -linkedin.com/company/coding-blocks/ For more interesting tutorials - youtube.com/codingblocksindia

Why it's here

1 person recommends this

u/championswimmerin r/Kotlin • Recommends

Kotlin Deep Dive: Tail Call Optimisation in Recursion