https://github.com/andy-y-li/leetcode-c
leetcode with C
https://github.com/andy-y-li/leetcode-c
leetcode-c
Last synced: 3 months ago
JSON representation
leetcode with C
- Host: GitHub
- URL: https://github.com/andy-y-li/leetcode-c
- Owner: andy-y-li
- License: gpl-2.0
- Created: 2018-04-17T07:55:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T09:30:29.000Z (almost 6 years ago)
- Last Synced: 2025-01-23T01:22:58.126Z (5 months ago)
- Topics: leetcode-c
- Language: Shell
- Size: 251 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leetcode-c
leetcode with C### Usage
- Build/Run the example:
```
./configure
make
```- Add a new Test:
For example, when we add a test **removeDuplicate**,open the file **Makefile.am** and edit.
add the bin file name to **bin_PROGRAMS** and the source code as **removeDuplicate_SOURCES**:
```
bin_PROGRAMS = two_sum removeDuplicatetwo_sum_SOURCES = src/sum.c
removeDuplicate_SOURCES = src/removeDuplicate.cINCLUDES = -I $(top_srcdir)/src
CFLAGS = -g -O2 -WallEXTRA_DIST = autogen.sh \
README.md
```