Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Search ¶
Search attempts to find the target integer within the provided array. If the target is found, Search returns the original index of the target within arr and true; If the target is not found (i.e., arr becomes empty through reduction), it returns 0 and false.
Parameters: - arr: The array of integers to be searched. - target: The integer value to search for within arr.
Returns: - int: The original index of the target in the array if found; otherwise, returns 0. - bool: True if the target is found within the array; false if the target is not found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.