You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+75-3Lines changed: 75 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ You can add new algorithms or data structures that are **not present in the repo
33
33
- Make sure the file extensions are `*.hpp`, `*.h` or `*.cpp`.
34
34
- Don't use **`bits/stdc++.h`** because this is quite Linux-specific and slows down the compilation process.
35
35
- Organize your code using **`struct`**, **`class`**, and/or **`namespace`** keywords.
36
-
- If an implementation of the algorithm already exists, please refer to the [file-name section below](#new-file-name-guidelines).
36
+
- If an implementation of the algorithm already exists, please refer to the [file-name section below](#file-name-guidelines).
37
37
- You can suggest reasonable changes to existing algorithms.
38
38
- Strictly use snake_case (underscore_separated) in filenames.
39
39
- If you have added or modified code, please make sure the code compiles before submitting.
@@ -54,13 +54,85 @@ You can add new algorithms or data structures that are **not present in the repo
54
54
- Make sure to add examples and test cases in your `main()` function.
55
55
- If you find an algorithm or document without tests, please feel free to create a pull request or issue describing suggested changes.
56
56
- Please try to add one or more `test()` functions that will invoke the algorithm implementation on random test data with the expected output. Use the `assert()` function to confirm that the tests will pass. Requires including the `cassert` library.
57
+
- Test cases should fully verify that your program works as expected. Rather than asking the user for input, it's best to make sure the given output is the correct output.
0 commit comments