Skip to content

Commit f934e11

Browse files
committed
Add definition for algorithm
1 parent 109349b commit f934e11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cpp/minTimetoMakeRope.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
// compare current and maxElement then keep maxElement
1313
// repeat process
1414

15+
// Greedy algorithm is any algorithm that follows the problem
16+
// solving heuristic of making the locally optimal choice at each
17+
// stage
18+
1519
// int maxElement = 0, result = 0;
1620
// for(int i=0; i<vec.size(); ++i)
1721
// {

0 commit comments

Comments
 (0)