Last active
August 12, 2023 22:10
-
-
Save abdorll/5bb5e202a64af9996509fd52c61a8b77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=================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