Startcode angepasst, sodass nur eine Version für alle Plattformen existiert.

This commit is contained in:
2025-11-17 11:52:26 +01:00
parent d0f2ee5760
commit 85cb9514b2
61 changed files with 47 additions and 10151 deletions
+12
View File
@@ -0,0 +1,12 @@
#ifndef NUMBERS_H
#define NUMBERS_H
// Returns len random numbers between 1 and 2x len in random order which are all different, except for two entries.
// Returns NULL on errors. Use your implementation of the binary search tree to check for possible duplicates while
// creating random numbers.
unsigned int *createNumbers(unsigned int len);
// Returns only the only number in numbers which is present twice. Returns zero on errors.
unsigned int getDuplicate(const unsigned int *numbers, unsigned int len);
#endif