Hackerrank Day 24: Linked List Deletion

screen-shot-2017-01-01-at-10-32-05-pm

Solution in Ruby:  

This is a recursion problem, based on the solution I found.  However, I’m still pretty confused by the terminologies being used in linked lists, such as head, next, etc.

screen-shot-2017-01-01-at-10-31-15-pm

Advertisements
Hackerrank Day 24: Linked List Deletion

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s