Write a program or a script that returns the last Fridays of each month of a given year. The year may be given through any simple input method in y
Continue ReadingC++: Calendar
Create a routine that will generate a text calendar for any year. Test the calendar by generating a calendar for the year 1969, on a device of the tim
Continue ReadingC++: Bounded Knapsack Problem
A tourist wants to make a good trip at the weekend with his friends. They will go to the mountains to see the wonders of nature. So he needs some item
Continue ReadingC++: Knuth Shuffle
Implement the Knuth shuffle (a.k.a. the Fisher-Yates shuffle) for an integer array (or, if possible, an array of any type). The Knuth shuffle is used
Continue ReadingC++: Longest Increasing Subsequence
Calculate and show here a longest increasing subsequence of the list: {3,2,6,4,5,1}And of the list: {0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15}Note
Continue Reading