You are on page 1of 1

1.

Write a function that extracts the date from a string with format ""dd/mm/yy"" and fills a
structure with 4 integer elements representing the day, month and year.
Any date can be given as a parameter from the interval: 1950 - 2014.
Define the structure and the function to fill it.
Input: A date in the format dd/mm/yy.

2. Reverse strings in a sentence: Write a program that reverses the strings in a sentence, not the
letters but the words: For example: Ana are mere galbene si pere rosii Result: Rosii pere si
galbene mere are Ana

3. Given a sorted array, find in the array 2 elements whose sum is a number x, x being given.
Please optimize the search as much as possible.

4. Implement a sorted linked list with integer values without using the standard library.
Possible operations:
 creation
 insert an element keeping the list sorted
 delete an element
 find an element
 reverse sorting.
 print all values from the list.

You might also like