hello does anyone know how to check if a number is already on an array?

Dec 22, 2018, 2:32 PM
Google binary search on solidity
Dec 22, 2018, 3:14 PM
Ok thank a lot
Dec 22, 2018, 3:19 PM
Binary search works only on sorted arrays
Dec 22, 2018, 3:35 PM
Yep, forgot to mention
Dec 22, 2018, 3:46 PM
Ok i will keep it mind ty again
Dec 22, 2018, 4:31 PM
You can find some code example of keeping array sorted with binary search algorithm on Solidity in my example repo
https://github.com/Norfolks/farm-dag
Dec 22, 2018, 4:50 PM
Thank you a lot this is exactly what i was looking for and could find the solutiion maybe i was missing the "word" binary also 👌👌
Dec 22, 2018, 5:01 PM

© 2024 Draquery.com All rights reserved.