We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7320ee1 + a0ee92a commit 6fd83afCopy full SHA for 6fd83af
Arrays-Implementation/arrays/main.cpp
@@ -83,7 +83,7 @@
83
84
int get(int index) {
85
// get the data of the particular index.
86
- if(index > -1 && index < capacity) {
+ if(index > -1 && index < totalNumbers) {
87
return arr[index];
88
}
89
0 commit comments