Home > SparkNotes > Computer Science Study Guides > 1D >

sparknotes

1D Arrays


Problems and Solutions 2

Problem : You are given a character array word of size n. Write C code that will reverse the order of the characters in this array.


Problem : Write a function that takes in an array of type card_t and length n and shuffles it. Assume that you have a function called RandomInteger(x, y) which returns an integer greater than or equal to x and less than y.


Problem : Write a function that is passed an array of integers sorted in ascending order and returns with all of the duplicate entries removed.