Given a Calendar class (there are three fields, year, month, day) and a number of N, Implement a function that returns the calendar after N days.
Example: Input: {2017, 3,20} and 12, Output: {2017,4, 1}
1st Example : 18 prime factors are 2*3*3 and it returns count =2 as prime factors includes 2 and 3 only or 2nd example: 27 =3*3*3 and return count =1.
Given a singly linked list of integers, write a function in java that returns true if the given list is palindrome, else returns false
Given a set of random strings, write a function that returns a set that groups all the anagrams together.
Ex: star, dog, car, rats, arc - > {(star, rats), (arc,car), dog}