





def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase    ,       lowerCAmelCase					):

       if not (isinstance(lowerCAmelCase    ,       lowerCAmelCase					) and isinstance(lowerCAmelCase    ,       lowerCAmelCase					)):
              raise ValueError('''longest_common_substring() takes two strings for inputs'''					)

       _UpperCamelCase              =						len(lowerCAmelCase					)
       _UpperCamelCase              =						len(lowerCAmelCase					)

       _UpperCamelCase              =						[[0] * (texta_length + 1) for _ in range(texta_length + 1					)]
       _UpperCamelCase              =						0
       _UpperCamelCase              =						0

       for i in range(1    ,       texta_length + 1					):
              for j in range(1    ,       texta_length + 1					):
                     if texta[i - 1] == texta[j - 1]:
                            _UpperCamelCase              =						1 + dp[i - 1][j - 1]
                            if dp[i][j] > ans_length:
                                   _UpperCamelCase              =						i
                                   _UpperCamelCase              =						dp[i][j]

       return texta[ans_index - ans_length : ans_index]


if __name__ == "__main__":
   import doctest

   doctest.testmod()













def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase					):
       _UpperCamelCase              =						0
       for ch in input_str:
              _UpperCamelCase              =						ord(lowerCAmelCase					)
              _UpperCamelCase              =						pow(2    ,       lowerCAmelCase					)

              # If we already turned on bit for current character's unicode
              if bitmap >> ch_unicode & 1 == 1:
                     return False
              bitmap |= ch_bit_index_on
       return True


if __name__ == "__main__":
       import doctest

       doctest.testmod()






