Skip to content

Commit 603908d

Browse files
committed
Greedy Algorithms - Activity Selection problem
1 parent d1ace44 commit 603908d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ActivitySelectionProblem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#include <stdio.h>
22
#include <stdlib.h>
33

4-
54
struct Activity
65
{
76
int start;
87
int finish;
98
};
109

10+
// Greedy Algorithms - Activity Selection problem
11+
1112
int compare(const void *s1, const void *s2)
1213
{
1314
if(((struct Activity*)s1)->finish >= ((struct Activity*)s2)->finish)

0 commit comments

Comments
 (0)