Skip to content

Files

Latest commit

c8d0509 · Feb 27, 2019

History

History
This branch is 4 commits ahead of, 6 commits behind CodeToExpress/dailycodebase:master.

day50

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 27, 2019
Feb 27, 2019
Feb 27, 2019
Feb 27, 2019

README.md

cover

Day 50 - Nth From End

Given a singly linked list, and a number "n", find the nth element from end in the Linked List

Note that this is a sinigly linked list and you cannot traverse in the backward direction.

Example

given linked list: 1 -> 2 -> 3 -> 4  |  nthFromEnd (2)
output: 3

given linked list: 1 -> 2 -> 3 -> 4  |  nthFromEnf (5)
output: undefined

ques

Solution

JavaScript Implementation

// To Be Added