This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create realisation of the function that will search for the target in the array | |
| # with the complexity of O(n^3) | |
| # function return index of the target in the array | |
| def search_on3(array: list[int], target: int) -> int: | |
| for i in range(len(array)): | |
| if array[i] != target: | |
| continue | |
| for j in range(len(array)): | |
| if array[j] != target: | |
| continue |