How to compare two arrays?
#7

Quote:
Originally Posted by JustNothing
Посмотреть сообщение
Same
1.Check if the arrays have same size
2.Sort them
3.Check if the elements are same one by one.

Putting it in a function would be better. If the step 1 and step3 fails return 0 (at the end of function return 1 )
Reply


Messages In This Thread
How to compare two arrays? - by JustNothing - 29.10.2018, 07:28
Re: How to compare two arrays? - by TheToretto - 29.10.2018, 07:50
Re: How to compare two arrays? - by TheToretto - 29.10.2018, 08:40
Re: How to compare two arrays? - by TheToretto - 29.10.2018, 08:56
Re: How to compare two arrays? - by BigETI - 29.10.2018, 09:44
Re: How to compare two arrays? - by JustNothing - 29.10.2018, 12:22
Re: How to compare two arrays? - by SyS - 29.10.2018, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)