Skip to content

Latest commit

 

History

History
88 lines (70 loc) · 2.12 KB

CONTRIBUTING.md

File metadata and controls

88 lines (70 loc) · 2.12 KB

How to contribute?

  • Have a look at the table in README.md. It contain the list of codes solved by people in CodeChef's rated contests.
  • Find a code for which an entry which is not yet added create an issue for it.
  • Make sure you are assigned for the issue before sending the PR.
  • Code added should follow the standard guidelines of that language, untidy codes will not be accepted.
  • Send a PR.
  • Make sure that you only send the source code not the binaries and executables in PR.
  • While sending a PR make sure you follow one issue per PR rule.
  • Link to your solution on CodeChef is mandatory.

Code Styleguide

  • Code submitted should be modular.
  • Add the code in their respective directory only.
  • Filename should be same as that of the problem code.
  • Currently we are accepting contributions in C, C++, Java and Python but other languages may be considered after a discussion.
  • Meaningful comments to explain your code better are welcomed.
  • No profanity.
  • We have defined skeleton codes for some popular languages below. Please follow them whenever possible.
  • Sample skeleton codes are for showing guidelines and indentations only.

Improving a Dish

  • If you feel you can improve upon any added code, feel free to open an issue discussing the improvements.
  • The points to be considered for improvement will be the time required by code to pass testcases, easy explanation, etc.

Samples

C

int main() {
    int tc;
    scanf("%d", &tc);
    while (tc--) {
        /*
        your code here;
        */
    }
}

C++

int main() {
    int tc;
    cin >> tc;
    while (tc--) {
        /*
        your code here;
        */
    }
}

Python

def main():
    tc = int(input())
    while tc > 0:
        Your Dish here...
        tc -= 1
    
if __name__ == '__main__':
    main()

Java

    public static void main(String[] args) {
        Scanner inp = new Scanner(System.in);
        int tc = inp.nextInt();
        while (tc-- != 0) {
            Your code goes here...
        }
    }
}