Created
October 25, 2020 05:35
-
-
Save GiangHoGoVap/7352f8eab73841c30a2bc3b7f26bbf1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
commented
Oct 27, 2020
Author

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