This repo contains the implementation of binary search in dart. Fork and test if you are Interested too!! Hey everyone, I have implemented the binary search in here using dart. You can download the dart sdk from here. This repo is solely for the purpose of learning dart(without touching Flutter anywhere). There is deficiency of comments in the files so you can add that. XD
You can run the main file by running the command dart main.dart
in the linux terminal(if you use linux or wsl)and see the output.
- Try making the
locate_card_new
function without theif
statement before thewhile
loop. - Try changing the
locate_card_new
tolocate_card
in themain
function in themain.dart
file. Can use explain why it is giving null in edge case number 4 (try spotting the logical error)? On changing it tolocate_card_again
, it reacts right on edge case 4. - Edit
locate_card
to pass all the edge cases and try adding and testing it on any new edge case (if you could think of any new).
- You can find the python code of the same(from where I implemented it) from here.