
Hands-On Data Structures and Algorithms with Kotlin
Level up your programming skills by understanding how Kotlin's data structure works
- 220 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Hands-On Data Structures and Algorithms with Kotlin
Level up your programming skills by understanding how Kotlin's data structure works
About this book
Understand and solve complex computational problems and write efficient code with Kotlin
Key Features
- Learn about important data structures such as lists, arrays, queues, and stacks
- Design custom algorithms for real-life implementations
- Identify suitable tools for different scenarios and deliver immediate results
Book Description
Data structures and algorithms are more than just theoretical concepts. They help you become familiar with computational methods for solving problems and writing logical code. Equipped with this knowledge, you can write efficient programs that run faster and use less memory.
Hands-On Data Structures and Algorithms with Kotlin book starts with the basics of algorithms and data structures, helping you get to grips with the fundamentals and measure complexity. You'll then move on to exploring the basics of functional programming while getting used to thinking recursively. Packed with plenty of examples along the way, this book will help you grasp each concept easily. In addition to this, you'll get a clear understanding of how the data structures in Kotlin's collection framework work internally.
By the end of this book, you will be able to apply the theory of data structures and algorithms to work out real-world problems.
What you will learn
- Understand the basic principles of algorithms and data structures
- Explore general-purpose data structures with arrays and linked lists
- Get to grips with the basics of stacks, queues, and double-ended queues
- Understand functional programming and related data structures
- Use performant searching and efficient sorting
- Uncover how Kotlin's collection framework functions
- Become adept at implementing different types of maps
Who this book is for
If you're a Kotlin developer who wants to learn the intricacies of implementing data structures and algorithms for scalable application development, this book is for you.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Section 1: Getting Started with Data Structures
- Chapter 1, A Walk-through – Data Structures and Algorithms
- Chapter 2, Arrays – The First Step to Grouping Data
A Walk Through - Data Structures and Algorithms
- Algorithms and their importance
- The efficiency of an algorithm
- Data structures
- Complexity and notations, including Big O notation
Technical requirements
Working with the command-line compiler
kotlinc <filename>.kt -include-runtime -d <filename>.jar
java -jar <filename>.jar
Working with IntelliJ IDEA
Working with Eclipse
Learning about algorithms
- Count the number of candies you have.
- Count the number of students present in your class.
- Calculate how many candies should be given to each student.
- Ask all of the students form a queue so that no student can take the required candies twice.
- Start distributing the candies to each student.
- Maintain a separate group for students who already took candies.
A few examples of algorithms
private fun add(x: Int, y: Int) = x + y
val hourInMillis = 24 * 60 * 60 * 1000
Introduction to data structures
- Extend existing data structures
- Customize data structures
class UpperCasedList : ArrayList<S...
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Section 1: Getting Started with Data Structures
- A Walk Through - Data Structures and Algorithms
- Arrays - First Step to Grouping Data
- Section 2: Efficient Grouping of Data with Various Data Structures
- Introducing Linked Lists
- Understanding Stacks and Queues
- Maps - Working with Key-Value Pairs
- Section 3: Algorithms and Efficiency
- Deep-Dive into Searching Algorithms
- Understanding Sorting Algorithms
- Section 4: Modern and Advanced Data Structures
- Collections and Data Operations in Kotlin
- Introduction to Functional Programming
- Other Books You May Enjoy
- Assessments