Linear Search
Generate and Search

Enter the number of numbers you want to generate

It is recommended to generate no more than 20 numbers for linear search for didactic purposes.

Enter the number you are searching for

Output

Find Minimum/Maximum
Generate and Find

Enter the number of numbers you want to generate

It is recommended to generate no more than 20 numbers for didactic purposes.

Select what you whant to find

Output

Check If An Array Contains Duplicates
Generate and Check

Enter the number of numbers you want to generate

It is recommended to generate no more than 100 numbers for didactic purposes.

Choose a method to check for duplicate elements in your array.

Compare each element with all other elements in the array.

Iterate through the array, adding each element to a HashSet. If an element is already present, it indicates a duplicate.

Iterate through the array, using a HashMap to count occurrences of each element. If any element's count exceeds one, a duplicate exists.

Sort the array and then check for matching adjacent elements.

Output