top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

C++: Given a Calendar class (year, month, day) and a number N, Implement a function that returns calendar after N days?

0 votes

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.

Input: {2017, 3,20} and 12,
Output: {2017,4, 1}

posted Jun 9, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+5 votes

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.

+1 vote

Given a singly linked list of integers, write a function in java that returns true if the given list is palindrome, else returns false

+2 votes

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}