Title: Common-Words
Url: binarysearch.com
Level: Easy
! version2: use
! version 3: use builtins for set data type:
e.g
Url: binarysearch.com
Level: Easy
! version2: use
max(new_s, new_s2, key=len)can be used to identify the longest set. if so, the case when both sets are equal should be checked too.! version 3: use builtins for set data type:
e.g
return len(set(new_s).intersection(new_s2))Title: Largest Anagram Group
Url: binarysearch
Time complexity: O(n log n)
Url: binarysearch
Time complexity: O(n log n)
#linked_list
Title: Remove Duplicates in Linked List
URL: binarysearch
Level: Medium
! the code can be more simplified here
Title: Remove Duplicates in Linked List
URL: binarysearch
Level: Medium
! the code can be more simplified here