Count the node of linked list in Java

In this post we will be Count the node of linked list in Java. Given a singly linked list. The task is to find the length of the linked list, where length is defined as the number of nodes in the linked list.

HackerRank 30 Days code Question 2 Solution

This is hackerrank question (30 day code) in which we have to find the total meal cost For this we have given meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal, we have to find the total meal cost in integer