Title: 1614. Maximum Nesting Depth of the Parentheses
Url: https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/
Url: https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/
Title: Implement strStr()
Url: https://leetcode.com/problems/implement-strstr/submissions/
Url: https://leetcode.com/problems/implement-strstr/submissions/
Title: Reverse Words in a String III
Url: https://leetcode.com/problems/reverse-words-in-a-string-iii/
Url: https://leetcode.com/problems/reverse-words-in-a-string-iii/
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))