365 Days of code: Day 6 -> Week 0

Introduction

Smart data structures and dumb code works a lot better than the other way around.

Eric S. Raymond

Kata

I have a separate project for practicing data structures and algorithms. I have named it ‘CodeKata’.

Kata is a term used in Karate. It means practicing certain movements until it becomes a part of your muscle memory. With enough practice, you don’t need to consciously recall the movements anymore, you can execute them almost automatically.

Code Kata is a term coined by Dave Thomas in the seminal book The Pragmatic Programmer. It aims to bring the same practice into perfecting programming skills.

As you might have guessed by now, I’m going to use this project to practice short ‘katas’ of code to sharpen data structures and algorithm skills.

Linked List

Today I’m going to implement one of the simplest data structures: linked list, in Java. Without going into concepts, I’ll just put the code below for reference. For concepts, you can always search on Google or refer to any good book. For beginners, I would recommend the book Data Structures and Algorithms Made Easy by Narasimha Karumanchi. This author makes the concepts really easy to understand. You can always graduate to another book which covers more theoretical details, but

Code

Output

Leave Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll Up