def remove_dups_wothout_set(head):
current = head<EOL>while current:<EOL><INDENT>runner = current<EOL>while runner.next:<EOL><INDENT>if runner.next.val == current.val:<EOL><INDENT>runner.next = runner.next.next<EOL><DEDENT>else:<EOL><INDENT>runner = runner.next<EOL><DEDENT><DEDENT>current = current.next<EOL><DEDENT>
Time Complexity: O(N^2)
Space Complexity: O(1)