Data
Structures
&
Algorithms
in Kotlin
By Irena Galata & Matei Suica
Data Structures & Algorithms in Kotlin
Irina Galata & Matei Suica
Copyright 2019 Razeware LLC.
Notice of Rights
All rights reserved. No part of this book or corresponding materials (such as text, images, or source code) may be reproduced or distributed by any means without prior written permission of the copyright owner.
Notice of Liability
This book and all corresponding materials (such as source code) are provided on an as is basis, without warranty of any kind, express of implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in action of contract, tort or otherwise, arising from, out of or in connection with the software or the use of other dealing in the software.
Trademarks
All trademarks and registered trademarks appearing in this book are the property of their own respective owners.
About the Authors
Irina Galata is an author of this book. She is a software engineer in Linz, Austria, working at Runtastic. She passionate about programming and exploring new technologies. You can follow her on twitter @igalata13.
Matei Suica is an author of this book. He is a software developer that dreams about changing the world with his work. From his small office in Romania, Matei is trying to create an App that will help millions. When the laptop lid closes, he likes to go to the gym and read. You can find him on Twitter or LinkedIn: @mateisuica.
About the Editors
Bruno Lemgruber is the technical editor of this book. He is an iOS and Android developer who enjoys being challenged and working on projects that requires him to work outside his comfort and knowledge set, as he continues to learn new languages and development techniques. Nowadays, he works in a bank from Brazil (@SICOOB_oficial) in the iOS team. He loves to drink craft beer when he has a free time! You can follow him on twitter @brunoteixeiralc.
Mrton Braun is a technical editor of this book. He is a Kotlin enthusiast since the 1.0 of the language, and an aspiring writer, speaker, educator. He's working as an Android developer and teaches Kotlin and Android in university courses. Creator of the MaterialDrawerKt and Krate libraries. He occasionally gets addicted to StackOverflow, where he's one of the top contributors under the Kotlin tag.
Tammy Coron is an editor of this book. Tammy is an independent creative professional and the host of Roundabout: Creative Chaos. Shes also a Development Editor at The Pragmatic Bookshelf, a Sr. Editor at Razeware, and a content contributor at Creative Bloq, Lynda.com, iMore, and raywenderlich.com.
Massimo Carli is the final pass editor of this book. Massimo has been working with Java since 1995 when he co-founded the first Italian magazine about this technology http://www.mokabyte.it. After many years creating Java desktop and enterprise application, he started to work in the mobile world. In 2001 he wrote his first book about J2ME. After many J2ME and Blackberry applications, Massimo then started to work with Android in 2008. The same year he wrote the first Italian book about Android, a best seller on Amazon.it. That was the first of a series of 10 books about Android and Kotlin. Massimo worked at Yahoo and Facebook and he's actually Senior Mobile Engineer at Spotify. He's a musical theatre lover and a supporter of the soccer team S.P.A.L.
About the Contributors
We'd like to acknowledge the work of the authors of Data Structures&Algorithms in Swift, the content of which served as the basis for this book.
Wed also like to acknowledge the efforts of the following contributors to the Swift Algorithm Club GitHub repo (https://github.com/raywenderlich/swift-algorithm-club), upon whose work portions of this book are based.
Wed also like to thank the following for their contributions to the repo:
Donald Pinckney, Graph https://github.com/donald-pinckney
Christian Encarnacion, Trie and Radix Sort https://github.com/Thukor
Kevin Randrup, Heap https://github.com/kevinrandrup
Paulo Tanaka, Depth First Search https://github.com/paulot
Nicolas Ameghino, BST https://github.com/nameghino
Mike Taghavi, AVL Tree
Chris Pilcher, Breadth First Search
About the Artist
Vicki Wenderlich is the designer and artist of the cover of this book. She is Rays wife and business partner. She is a digital artist who creates illustrations, game art and a lot of other art or design work for the tutorials and books on raywenderlich.com. When shes not making art, she loves hiking, a good glass of wine and attempting to create the perfect cheese plate.
Book License
By purchasing Data Structures&Algorithms in Kotlin, you have the following license:
You are allowed to use and/or modify the source code in Data Structures&Algorithms in Kotlin in as many apps as you want, with no attribution required.
You are allowed to use and/or modify all art, images and designs that are included in Data Structures&Algorithms in Kotlin in as many apps as you want, but must include this attribution line somewhere inside your app: Artwork/images/designs: from Data Structures&Algorithms in Kotlin, available at www.raywenderlich.com.
The source code included in Data Structures&Algorithms in Kotlin is for your personal use only. You are NOT allowed to distribute or sell the source code in Data Structures&Algorithms in Kotlin without prior authorization.
This book is for your personal use only. You are NOT allowed to sell this book without prior authorization, or distribute it to friends, coworkers or students; they would need to purchase their own copies.
Next page