What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-17 14:08:24
linear suche algorithmus python programmieren
## searching function def search_element(arr, n, element): ## iterating through the array for i in range(n): ## checking the current element with required element if arr[i] == element: ## returning True on match return True ## element is n... Add solution -
Other 2021-09-23 11:55:02
how to send values to a selection sorting function
1 // Fig. 8.15: fig08_15.cpp 2 // This program puts values into an array, sorts the values into 3 // ascending order and prints the resulting array. 4 #include <iostream> 5 using std::cout; 6 using std::endl; 7 8 #include <iomanip&... Add solution -
Python 2021-09-18 02:16:03
binäre suche algorithmus python programmieren
## searching function def search_element(sorted_arr, n, element): ## array index for iteration i = 0 ## variables to track the search area ## initializing them with start and end indexes start = 0 end = n - 1 ## iterating over the array while i... Add solution