Member-only story
Julia
Binary search in Julia language
Recently I learnt about Julia programming language as an alternative to Python. So I would like to share what I was learning along the way.
Below is the binary search code in Julia
Running the code with
julia binary_search.jl
will print the results with their index, if not found return 0
2
0
9
Hope it helps
~~PEACE~~