The evolution of languages: FORTRAN is a non-typed language. C is a weakly typed language. Ada is a strongly typed language. C++ is a strongly hyped language. Ron Sercely

Find a triplet

Language Java | Level Intermediate | Category Data structure | September 5, 2015 11:55 pm

Data structure Description

Write a program to find the sum of the values of the nodes is equal to a given number in the singly linked list. Build three different linked lists. Iterate the linked list and find the sum of three node value equal to given number. If three linked list contains triplet, print true otherwise print false.



Print the list of items: 1->2->3->NULL
Print the list of items: 5->6->7->NULL
Print the list of items: 5->6->7->NULL
Does three linked list contain triplet: true



No comments available!

Please login to add comments.