Given a singly linked list, the task is to replace every node with its closest bell number. Bell numbers are a sequence of numbers that… Read More
Tag Archives: Linked Lists
Given a singly linked list, the task is to replace every node with its closest Catalan number. Note: Catalan numbers are defined as mathematical sequence… Read More
Given a singly linked list of integers, the task is to replace every node with its closest Tribonacci number and return the modified linked list.… Read More
Given a linked list of integers, the task is to determine if there exists a subsequence of prime numbers whose sum is a perfect square.… Read More
Given a linked list with weights, the task is to find the product of nodes whose weights are all triangular numbers where a triangular number… Read More
Given two linked lists head1 and head2, the task is to remove all occurrences of head2 in head1 and return the head1. Examples: Input: head1… Read More
Given a singly linked list with weights, the task is to find the product of nodes with minimum and maximum weights in the list. Examples:… Read More
Given a singly linked list, the task is to replace every node with its closest triangular number. Examples: Input: 3 -> 9 -> 21 ->… Read More
Given a linked list, the task is to find the maximum sum of a sublist with composite number nodes. A composite number is any positive… Read More
Given a singly linked list of integers, the task is to replace every node with its closest Fibonacci number and return the modified linked list.… Read More
Given a Linked list, the task is to check if the most frequently occurring element in the linked list is divisible by the smallest element… Read More
Given a linked list of integers and a number K, find the maximum product of a sublist of length K in a linked list. Examples:… Read More
ArrayList: Array List is an implemented class of List interface which is present in package java.util. Array List is created on the basis of the… Read More
I recently applied to Cisco Internship for the role: Software Engineer – Network/Embedded/Application Development. It consisted of the following rounds: Round 1 (Online Assessment): This… Read More