Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (40 loc) · 1.83 KB

CONTRIBUTING.md

File metadata and controls

49 lines (40 loc) · 1.83 KB

Guidelines:

  • Go to Issues and mention what you want to solve and in which language.

  • Follow the Link: https://codingcompetitions.withgoogle.com/kickstart/archive/2020

  • Solve either in C or C++ or Java or Python.

  • Create a folder within the Question Folder with name FirstName-ProgrammingLanguage, for ex: Falguni-Python.

    In the folder:

    • Add Code File with name questionname.extension, for ex: Allocation.py.

    • Add Editor Screenshot as shown below:

    Check Example Repository: Falguni-Python

  • If you upload code that is inspired from somewhere, write the resource by commenting first line like this:

# Inspired or took help from xyz
T=int(input())
A=[]
for t in range(1,T+1):
    N,B=[int(s) for s in input().split(" ")]
    A=list(map(int, input().split()))
    count=0
    A.sort()
    for i in range(len(A)):
        if(B>=A[i]):
            B=B-A[i]
            count+=1
    print("Case #{}: {}".format(t,count))
    A.clear()
  • Plagirism is strongly discouraged.

Regarding PRs:

  • All the PRs will be marked as "INVALID" if you have not been assigned to any issues. To work on this repository, it's necessary to mention on what issue you want to work.

  • Layout of PR Description:

    Issue Number for which I'm assigned & worked: #
    (write the issue number after # symbol)
    

    Example:

    Issue Number for which I'm assigned & worked: #3
    

    image