Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning JavaScript Data Structures and Algorithms

You're reading from   Learning JavaScript Data Structures and Algorithms Enhance your problem-solving skills in JavaScript and TypeScript

Arrow left icon
Product type Paperback
Published in Jul 2026
Last Updated in Sep 2025
Publisher Packt
ISBN-13 9781836205395
Length 615 pages
Edition 4th Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Loiane Groner Loiane Groner
Author Profile Icon Loiane Groner
Loiane Groner
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Learning JavaScript Data Structures and Algorithms, Fourth Edition: Enhance your problem-solving skills in JavaScript and TypeScript
1 Introducing Data Structures and Algorithms in JavaScript FREE CHAPTER 2 Big O notation 3 Arrays 4 Stacks 5 Queues and Deques 6 Linked Lists 7 Sets 8 Dictionaries and Hashes

Exercises

We will resolve one exercise from LeetCode so we can learn another concept we have not covered in this chapter so far.

However, there are many fun linked list exercises available in LeetCode that we should be able to resolve with the concepts we learned in this chapter. Below are some additional suggestions you can try to resolve, and you can also find the solution along with the explanation within the source code from this book:

  • 2. Add Two Numbers: traverse two linked list and sum each number.
  • 62. Rotate List: remove nodes from the tail and prepend them in the list.
  • 203. Remove Linked List Elements: traverse the list and check for the value that needs to be removed. Tip: keep a previous reference to make the removal easier.
  • 234. Palindrome Linked List: check if the elements of the list are a palindrome.
  • 642. Design Circular Deque: implement the deque data structure.
  • 622. Design Circular Queue implement the queue data structure.

Reverse Linked List

The exercise we will resolve...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning JavaScript Data Structures and Algorithms
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon