No Description

Marina Barsky 742b842c8a Update '.drone.yml' 2 years ago
include bec3d974f5 exercise with tests 2 years ago
src bec3d974f5 exercise with tests 2 years ago
test ae87f1c09f Update 'test/palindrome_test.c' 2 years ago
.drone.yml 742b842c8a Update '.drone.yml' 2 years ago
.gitignore bec3d974f5 exercise with tests 2 years ago
LICENSE 79a94ebf12 Initial commit 2 years ago
Makefile bec3d974f5 exercise with tests 2 years ago
README.md b8771b2be0 Update 'README.md' 2 years ago

README.md

Array lab: palindrome

Exercise 5

Implement the body of the function create_palindrome (int *A, int size, int *B) in file src/palindrome.c, where A is an array of integers and has length size, and B is an integer array twice as long as A.

Set values in B such that every element of A appears twice in B: once in its original position, and a second time in the second half of B. The new occurrence should be the same distance from the end of B as the first occurrence was from the beginning.

For example, if A is the array {1, 2, 5, 7}, then B will be {1, 2, 5, 7, 7, 5, 2, 1}.