-
### Description
Write a Python program to implement ternary search
Ternary search is a divide and conquer algorithm that can be used to find an element in an array. It is similar to binary search wh…
-
### Description
Write a Python program to find the smallest three elements in an array
```txt
Input : arr[] = {10, 4, 3, 50, 23, 90}
Output : 3 4 10
Input : arr[] = {12, 13, 1, 10, 34, 1}
Ou…
-
### Description
Write a C program to implement selection sort
Selection sort is a sorting algorithm that selects the smallest element from an unsorted list in each iteration and places that element …
-
### Description
Write a JavaScript program to implement linear search
Linear search is a very simple search algorithm. In this type of search, a sequential search is made over all items one by one. …
-
### Description
Write a JavaScript program to find the smallest three elements in an array
```txt
Input : arr[] = {10, 4, 3, 50, 23, 90}
Output : 3 4 10
Input : arr[] = {12, 13, 1, 10, 34, 1}…
-
### Description
Write a program to merge two strings
```
Input : ABC DEF
Output : ABCDEF
```
### Tracking Issues
- [x] codinasion/codinasion#4074
- [x] codinasion/codinasion#4075
- [x] codina…
-
### Description
Write a Python program to implement selection sort
Selection sort is a sorting algorithm that selects the smallest element from an unsorted list in each iteration and places that ele…
-
### Description
Write a C program to find the smallest three elements in an array
```txt
Input : arr[] = {10, 4, 3, 50, 23, 90}
Output : 3 4 10
Input : arr[] = {12, 13, 1, 10, 34, 1}
Output …
-
### Description
Write a Python program to find the largest two elements in an array
```text
Input: arr[] = {12, 13, 1, 10, 34, 1}
Output: The largest two elements are 34 and 13
Input: arr[] = {…
-
### Description
Write a Python program to move all zeroes to end of array
```txt
Input : arr[] = {1, 2, 0, 4, 3, 0, 5, 0};
Output : arr[] = {1, 2, 4, 3, 5, 0, 0, 0};
Input : arr[] = {1, 2, 0,…