• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 1 pages
Exam (elaborations)

Data structure & algorithms (quiz singly link list)

Document preview thumbnail
Preview 1 out of 1 pages

Exam of 1 pages for the course cc213 at University Of Management & Technology, Lahore (jive your all best.)

Content preview

Name: ___________________ Registration Number: ______________


University of Management and Technology (UMT)
School of Systems and Technology (SST)
Department of Computer Science

Course: Data Structures and Algorithms (CC-2042)
Quiz Number 1
Date: November 18, 2024.
Semester: Fall-2024
Maximum Marks: 40
Time: 40 min
Instructor: Dr Bilal Ashfaq Ahmed
Advice to Student
1. Carefully read question and ensure you understand what is being asked
before starting your solution.
2. Include comments in your code to explain your logic and steps.


You are given two singly linked lists that may or may not intersect. Two linked lists
intersect if they share a common node, meaning they merge at some point and thereafter
share all their nodes. The shared node is the same physical node in memory for both lists.

Objective: Write a C++ function that determines if two singly linked lists intersect and, if they
do, finds the node at which the intersection occurs.



Function Requirements:

1. The function should return a pointer to the intersecting node or nullptr if there is no
intersection.




Best of Luck




1

Document information

Uploaded on
September 6, 2025
Number of pages
1
Written in
2024/2025
Type
Exam (elaborations)
Contains
Only questions
$4.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
1
Items
19
Last sold
-




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions