Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxdiff #4836

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add maxdiff #4836

wants to merge 3 commits into from

Conversation

wokira
Copy link

@wokira wokira commented Mar 27, 2020

Fixes issue:

Added code to this problem and documented it according to style guide.

Changes:

@wokira wokira closed this Mar 27, 2020
@wokira wokira mentioned this pull request Mar 27, 2020
4 tasks
@wokira wokira reopened this Mar 27, 2020
@wokira
Copy link
Author

wokira commented Mar 27, 2020

I have added Java, Python and C implementations of the CodeChef: MAXDIFF problem here.

@@ -0,0 +1,37 @@
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reformat with 4 spaces and move to correct directory.

t=int(input())
for i in range(t):
n,k=map(int,input().split())
weights=list(map(int,input().split()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reformat with black.

@@ -0,0 +1,39 @@
/*MAXDIFF problem On CodeChef */
#include <stdio.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants