from __future__ import annotations





def 		__lowerCamelCase							(UpperCAmelCase__       :							int ,	UpperCAmelCase__       :							int					):
					if partitions <= 0:
										raise ValueError("partitions must be a positive number!"					)
					if partitions > number_of_bytes:
										raise ValueError("partitions can not > number_of_bytes!"					)
					SCREAMING_SNAKE_CASE           =    number_of_bytes // partitions
					SCREAMING_SNAKE_CASE           =    []
					for i in range(UpperCAmelCase__					):
										SCREAMING_SNAKE_CASE           =    i * bytes_per_partition + 1
										SCREAMING_SNAKE_CASE           =    (
										    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
										)
										allocation_list.append(F"{start_bytes}-{end_bytes}"					)
					return allocation_list


if __name__ == "__main__":
							import doctest

							doctest.testmod()





from __future__ import annotations

from collections.abc import Iterator


class   lowercase      :




							def __init__(  self				:   str		,							_UpperCamelCase				:   int )   ->			None:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE           =    value
												SCREAMING_SNAKE_CASE           =    None
												SCREAMING_SNAKE_CASE           =    None



class   lowercase      :




							def __init__(  self				:   str		,							_UpperCamelCase				:   Node )   ->			None:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE           =    tree




							def 		__snake_case(  self				:   int		,							_UpperCamelCase				:   Node | None )   ->			int:



												'''simple docstring'''

												if node is None:
																	return 0
												return node.value + (
												    self.depth_first_search(node.left ) + self.depth_first_search(node.right )
												)





							def __iter__(  self				:   List[Any] )   ->			Iterator[int]:



												'''simple docstring'''

												yield self.depth_first_search(self.tree )


if __name__ == "__main__":
							import doctest

							doctest.testmod()




