Skip to content

Instantly share code, notes, and snippets.

@GiangHoGoVap
Created October 25, 2020 05:35
Show Gist options
  • Select an option

  • Save GiangHoGoVap/7352f8eab73841c30a2bc3b7f26bbf1d to your computer and use it in GitHub Desktop.

Select an option

Save GiangHoGoVap/7352f8eab73841c30a2bc3b7f26bbf1d to your computer and use it in GitHub Desktop.
int main(){
FragmentLinkedList<int> fList(20);
for(int i=0; i<200; i++){
fList.add(i);
}
for(auto it = fList.begin(); it != fList.end(); it++){
if(*it % 5 == 1 || *it % 4 == 0 || *it % 3 == 2 || *it % 7 == 2){
it.remove();
}
}
//cout << fList.size() << endl;
cout << fList.get(45) << '\n';
cout << fList.toString() << '\n';
return 0;
}
@GiangHoGoVap

Copy link
Copy Markdown
Author

Screenshot (667)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment