





"""simple docstring"""






from __future__ import annotations

from dataclasses import dataclass




@dataclass
class 			__lowercase     :







					'''simple docstring'''




					__lowerCAmelCase					=					42
					__lowerCAmelCase					=					None
					__lowerCAmelCase					=					None






def       __A (     a_  :TreeNode | None)						->						bool:

				# Validation
				def is_valid_tree(a_  :TreeNode | None) -> bool:
								if node is None:
												return True

								if not isinstance(a_				,    a_):
												return False

								try:
												float(node.data)
								except (TypeError, ValueError):
												return False

								return is_valid_tree(node.left) and is_valid_tree(node.right)

				if not is_valid_tree(a_):
								raise ValueError(
								    '''Each node should be type of TreeNode and data should be float.''')

				def is_binary_search_tree_recursive_check(
				    a_  :TreeNode | None				,    a_  :float				,    a_  :float) -> bool:

								if node is None:
												return True

								return (
								    left_bound < node.data < right_bound
								    and is_binary_search_tree_recursive_check(node.left				,    a_				,    node.data)
								    and is_binary_search_tree_recursive_check(
								        node.right				,    node.data				,    a_)
								)

				return is_binary_search_tree_recursive_check(a_				,    -float('''inf''')				,    float('''inf'''))


if __name__ == "__main__":
		import doctest

		doctest.testmod()






"""simple docstring"""






def       __A (     a_  :float)						->						float:

				if edge <= 0 or not isinstance(a_				,    a_):
								raise ValueError('''Length must be a positive.''')
				return 3 * ((25 + 10 * (5 ** (1 / 2))) ** (1 / 2)) * (edge**2)

def       __A (     a_  :float)						->						float:

				if edge <= 0 or not isinstance(a_				,    a_):
								raise ValueError('''Length must be a positive.''')
				return ((15 + (7 * (5 ** (1 / 2)))) / 4) * (edge**3)


if __name__ == "__main__":
		import doctest

		doctest.testmod()