add initial configuration and update author information in header files
This commit is contained in:
parent
5beea32eee
commit
0178845516
20 changed files with 850 additions and 823 deletions
|
|
@ -1,25 +1,33 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding / Class: <your class>
|
||||
* ---------------------------------------------------------
|
||||
* Title: Reverse String
|
||||
* Author: */ your name /*
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Recursive and iterative implementation of an algorithm that
|
||||
* reverses a given string.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
Instructions:
|
||||
|
||||
Define a function reverse_string(s) that takes a string `s` as input.
|
||||
Take the last character of `s` and concatenate it with the result of reversing the rest of the string until the string has less than two characters.
|
||||
|
||||
Note that strings that are stored on heap or stack are provided - they can be directly manipulated.
|
||||
|
||||
*/
|
||||
|
||||
// TODO: the recursive implementation
|
||||
|
||||
// TODO: the iterative implementation
|
||||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding / Class: <your class>
|
||||
* ---------------------------------------------------------
|
||||
* Title: Reverse String
|
||||
* Author: Marc Tismonar
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Recursive and iterative implementation of an algorithm that
|
||||
* reverses a given string.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "reverse_string.h"
|
||||
|
||||
/*
|
||||
Instructions:
|
||||
|
||||
Define a function reverse_string(s) that takes a string `s` as input.
|
||||
Take the last character of `s` and concatenate it with the result of reversing the rest of the string until the string has less than two characters.
|
||||
|
||||
Note that strings that are stored on heap or stack are provided - they can be directly manipulated.
|
||||
|
||||
*/
|
||||
|
||||
// TODO: the recursive implementation
|
||||
void reverse_string_recursive(char* str, int start, int end) {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: the iterative implementation
|
||||
void reverse_string_iterative(char* str, int start, int end) {
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue