Assume your folder is constructed as below:
-rw-r--r-- 1 admin staff 344 Jul 13 18:19 IANode.h
-rw-r--r-- 1 admin staff 1194 Jul 13 18:39 IANode.m
-rw-r--r-- 1 admin staff 533 Jul 13 17:52 RemoveDups.m
You want to run a main
function in RemoveDups.m
file:
gcc -c IANode.m
gcc -o RemoveDups.o IANode.o RemoveDups.m -framework Foundation
./RemoveDups
Name | Type |
---|---|
1102. Path With Maximum Minimum Value | UF, Priority Queue |
- leetcode.com
- atcoder.jp
- https://medium.com/leetcode-patterns