PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

DSA · Theory

Triply Linked list

← All stacks

Theory

543/810

Triply Linked list

Triply Linked list sits in a counter. Arun’s job is a ticket queue node. Write that first.

For Triply Linked list, time vs memory is in play. Don’t blame it until you have traced a ticket queue node.

Skip Triply Linked list and losing the next pointer on delete shows up in a counter.

Triply Linked list shows up in a counter. Name a ticket queue node, not “a real-world scenario”.

Don’t do this with Triply Linked list — losing the next pointer on delete. Interviewers spot it in ten seconds.

After Triply Linked list, Arun should still remember losing the next pointer on delete.

Close Triply Linked list with: “If I skip it, a ticket queue node goes wrong like this: losing the next pointer on delete.”

Diagram
  [10] → [20] → [30] → /
   head              tail
Exam tip

For Triply Linked list: definition + a counter + one failure.

Example

class Node:
    def __init__(self, val, next=None):
        self.val = val
        self.next = next

head = Node(1, Node(2, Node(3)))
cur = head
while cur:
    print(cur.val, end=" -> " if cur.next else "\n")
    cur = cur.next

Triply Linked list — a linked list chains nodes with next pointers instead of contiguous indexes.

Short notes

  • DefTriply Linked list — Arun uses it for a ticket queue node in a counter.
  • RuleTriply Linked list → head → next → ….
  • RememberTriply Linked list + time vs memory (a counter).
  • UseTriply Linked list in a counter (a ticket queue node).
  • TrapTriply Linked list — losing the next pointer on delete.
  • ExTriply Linked list → a ticket queue node.

Questions

1

Define Triply Linked list without jargon. Then point at a ticket queue node.

2

Name one DSA screen/job that needs Triply Linked list.

3

Which mistake makes a ticket queue node fail?

4

Show Triply Linked list in time vs memory terms — three lines max.

Previous← Tree of Space - Locking and Unlocking N-Ary TreeNextCOUNT OF ZEROES →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.