Skip to content

Instantly share code, notes, and snippets.

@abdorll
Last active August 12, 2023 22:10
Show Gist options
  • Save abdorll/5bb5e202a64af9996509fd52c61a8b77 to your computer and use it in GitHub Desktop.
Save abdorll/5bb5e202a64af9996509fd52c61a8b77 to your computer and use it in GitHub Desktop.
//=================COPY AND PASTE ONLY THIS BLOCK TO LEETCODE TO RUN=========
//=====================SELECT DART AS THE LANGUAGE BEFORE YOU RUN===========
class Solution {
int search(List<int> nums, int target) {
int value =nums.indexOf(target);
print(value);
return value;
}
}
//=================OTHERWISE, COPY ENTIRE CODE FROM BEGINNING...============
void main() {
Solution sol = Solution();
sol.search([4,5,6,7,0,1,2],0);
}
//=================...AND RUN AT: https://dartpad.dev/=====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment