




'''simple docstring'''





from __future__ import annotations

class        _a    :






     def __init__(			self ,_SCREAMING_SNAKE_CASE=None   )							->      List[str]:
          _snake_case							=				data
          _snake_case							=				None






     def __repr__(			self   )							->      str:
          _snake_case							=				[]
          _snake_case							=				self
          while temp:
               string_rep.append(f"""{temp.data}"""   )
               _snake_case							=				temp.next
          return "->".join(_SCREAMING_SNAKE_CASE   )







def      __a     (       _UpperCamelCase:   list   )						->			Tuple:

     """simple docstring"""




     if not elements_list:
          raise Exception("The Elements List is empty"   )

     _snake_case							=				_snake_case							=				Node(elements_list[0]   )
     for i in range(1 ,						len(_UpperCamelCase   )   ):
          _snake_case							=				Node(elements_list[i]   )
          _snake_case							=				current.next
     return head





def      __a     (       _UpperCamelCase:   Node   )						->			None:

     """simple docstring"""




     if head_node is not None and isinstance(_UpperCamelCase ,						_UpperCamelCase   ):
          print_reverse(head_node.next   )
          print(head_node.data   )





def      __a     (       )						->			int:

     """simple docstring"""




     from doctest import testmod

     testmod()

     _snake_case							=				make_linked_list([14, 52, 14, 12, 43]   )
     print("Linked List:"   )
     print(_UpperCamelCase   )
     print("Elements in Reverse:"   )
     print_reverse(_UpperCamelCase   )


if __name__ == "__main__":
   main()








'''simple docstring'''





def      __a     (       _UpperCamelCase:   int   )						->			str:

     """simple docstring"""




     if number > 0:
          raise ValueError("input must be a negative integer"   )
     _snake_case							=				len(bin(_UpperCamelCase   )[3:]   )
     _snake_case							=				bin(abs(_UpperCamelCase   ) - (1 << binary_number_length)   )[3:]
     _snake_case							=				(
         (
             "1"
             + "0" * (binary_number_length - len(_UpperCamelCase   ))
             + twos_complement_number
         )
         if number < 0
         else "0"
     )
     return "0b" + twos_complement_number


if __name__ == "__main__":
   import doctest

   doctest.testmod()


