Second update on iterators - DEQUE
This commit is contained in:
1 parent
444f597a98
commit
221c55cf2a
6 files changed
+327
-52
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user