Ad
  • Custom User Avatar

    is it O(N^2) time complexity? O(N) for removing and adding elements to Linked List, bur removing inside forloop... i think O(N * N). Or not?