Just giving the algorithm of the problem as it is very simple -
Given a singly linked list of integers, write a function in java that returns true if the given list is palindrome, else returns false
Design an algorithm to accept a string from the user. Count and print the number of times each character occurs in the given string. Example – input string = "malayalam" Output must be – m – 2 a – 4 l – 2 y - 1