Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naive Approach - Program to check if two Arrays are Equal or not #30

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

kingrishabdugar
Copy link
Contributor

#26
Naive Approach: The basic way to solve the problem is as follows:

Apply [sorting](http://www.geeksforgeeks.org/sorting-algorithms/) on both the arrays and then match each element of one array with the element at same index of the other array.

Output

Equal

Time Complexity: O(N * logN)
Auxiliary Space: O(1)

@dorakit dorakit added hacktoberfest-accepted Accepted for hacktoberfest will be merged later hacktoberfest labels Oct 8, 2022
@dorakit dorakit changed the title Program to check if two Arrays are Equal or not Naive Approach - Program to check if two Arrays are Equal or not Oct 8, 2022
@dorakit dorakit merged commit dbf602a into dorakit:master Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest hacktoberfest-accepted Accepted for hacktoberfest will be merged later
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants