HackerRank Insert a node at a specific position in a linked list Solution Explained - Java

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

For others watching, in Java it's preferred that the variables are declared via camelCase. I know Nick is aware of this but for others that don't watch his other videos.

NavrajNat
Автор

if the position = 0, should add the new node into the head

JB-evog
Автор

What happen if the given index is out of range of the linkedList?

imnikhil
Автор

When I see java code that written without cameCase it feels awkward. Even though it compiles, it seems like something is wrong.

arinmis
Автор

superb code bro . you actually done it very well

ingaleshubhamgovindrao
Автор

How can I do that without returning something?

emilioalvaradoarcos
Автор

thanks sir, can i have the algorithm?

rickyroxas