Second update on iterators - DEQUE

This commit is contained in:
Leonardo committed 2019-05-13 23:01:27 -03:00
1 parent 444f597a98
commit 221c55cf2a
6 files changed
+327 -52

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ int main(int argc, char const *argv[])
if (i == 0)
printf("[ %d, ", e);
// If it is the last element
else if (i == limit)
else if (i == limit - 1) // -1 because index is 0 based and we want half of the list
{
printf("%d ]\n", e);
break;