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

EXPTREE (JULY 17) [CPP] #197

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

Conversation

NishantTanwar
Copy link

@NishantTanwar NishantTanwar commented Oct 3, 2017

Fixes #194

  • Pull Request Title is of form EXPTREE (JULY 17) [CPP].
  • This problem already had an entry in this repository.
    • This solution is better than the one already in this repository.
  • This solution is prepared by me and not copied from anywhere else on the web.
  • I have added a copyright comment in my solution.
  • I have updated README.md file (in appropriate order).
  • I have read and followed Code Samples.
  • I understand that pull request will be closed if I failed to update it even once in a week.

@aashutoshrathi
Copy link
Member

Hi! Thanks for contributing to this repository.
Make sure you have checked points in PR correctly.

@NishantTanwar
Copy link
Author

@Monal5031 pls check PR #197 let me know if there is still some error

@NishantTanwar
Copy link
Author

NishantTanwar commented Oct 3, 2017

@aashutoshrathi @Monal5031 pls justify what is the exact error in my PR

@Monal5031 Monal5031 self-assigned this Oct 3, 2017
@Monal5031
Copy link
Member

@NishantTanwar The problem is that you have use space indentations while in this repo we follow tabspaces for c and cpp files. Use tab indentation to pass all the tests.
Also don't get frightened over such long messages they are auto-generated issues raised gitmate bot.

Copy link
Member

@Monal5031 Monal5031 left a comment

Choose a reason for hiding this comment

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

Please remove the .idea files.

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

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

Please remove these .idea files

Copy link
Author

Choose a reason for hiding this comment

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

Okay .. I am updating it

@aashutoshrathi aashutoshrathi changed the title Added EXPTREE in CPP EXPTREE (JULY 17) [CPP] Oct 5, 2017
@aashutoshrathi
Copy link
Member

@NishantTanwar Please make changes.

@NishantTanwar
Copy link
Author

Yeah. I am updating it.

@NishantTanwar
Copy link
Author

Please review @Monal5031 I have updated.

@aashutoshrathi
Copy link
Member

Remove all unwanted files, make your indentation to tabs and add a new line to the end of the file, as soon as Travis Checks become successful, we will merge it.

@NishantTanwar
Copy link
Author

But I guess I have given proper indentation to tabs and also removed the unwanted files

@aashutoshrathi
Copy link
Member

No, your PR edits 6 files, while it should edit only 3 (including .gitignote).
And you file has space indentation, instead of Tabs (size 4).
Make necessary changes.

@@ -6,6 +6,7 @@ using namespace std;

int main() {


Copy link
Member

Choose a reason for hiding this comment

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

Please undo this change, as it is not part of your PR.


ll modinverse(ll val) {
return exponent(val, MOD - 2);
}
Copy link
Member

Choose a reason for hiding this comment

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

Add a new line at end.

Copy link
Author

@NishantTanwar NishantTanwar Oct 10, 2017

Choose a reason for hiding this comment

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

After which line number?

Copy link
Member

Choose a reason for hiding this comment

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

at the end of file.

@@ -17,5 +17,6 @@
*.class
*.pyc
*.html
.idea/
Copy link
Member

Choose a reason for hiding this comment

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

Rather simply delete the .idea files for now and in another PR you can do this 😉

@Monal5031
Copy link
Member

ping @NishantTanwar Its been 5 days since this PR was last updated, please update it before time.

@NishantTanwar
Copy link
Author

NishantTanwar commented Oct 10, 2017

@Monal5031 I am not able to get those identation errors hence was not able to update it. I have reviewed my code many times and it seems that I have given tab indentation and not space identation

@Monal5031
Copy link
Member

@NishantTanwar If you want some help in indenting the code properly you can use coala locally, the command to run it locally on algos directory as

coala --apply-patches -n

but first you need to install coala using

pip3 install coala-bears

This will tab indent the code itself.

@NishantTanwar
Copy link
Author

@Monal5031 I added a new line at the end but still didn't work.

@Monal5031
Copy link
Member

@NishantTanwar Did you try indenting the code using coala, because the space indentation error still persists.

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

Successfully merging this pull request may close these issues.

EXPTREE (JULY17) [CPP]
3 participants