Title: Sum of the Digits (without using string)
Url: binarysearch.com
Level: Easy
Url: binarysearch.com
Level: Easy
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)