Uh oh!
There was an error while loading. Please reload this page.
Problem 234 project Euler - #883
Conversation
cclauss
left a comment
There was a problem hiding this comment.
Please change the filename so that it ends in .py.
Also, please add a comment at the top of the file that links to the problem statement:
# https://projecteuler.net/problem=234
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cclauss
commented
Jun 8, 2019
Or automate the process by running python/black. |
eamanu
commented
Jun 8, 2019
+1 |
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
Co-Authored-By: Emmanuel Arias <emmanuelarias30@gmail.com>
eamanu
left a comment
There was a problem hiding this comment.
I left a comments. But I think this could be merge :-)
| return b | ||
| elif n==3: | ||
| return str(a)+str(b) | ||
| else: |
There was a problem hiding this comment.
I think this else could be ignore. Because never will be go to else if return occur before. (Just a comment)
and temp=0 could be defined after the ifs. This way we could avoid use memory when is not necessary.
archithadge
commented
Jun 11, 2019
via email
Okay. Thank u for suggestions.
Regards
Archit H. …On Tue, 11 Jun 2019, 4:47 am Emmanuel Arias, ***@***.***> wrote:
***@***.**** approved this pull request.
I left a comments. But I think this could be merge :-)
------------------------------
In project_euler/problem_234.py
<#883 (comment)>:
> @@ -0,0 +1,31 @@
+# https://projecteuler.net/problem=234
+def fib(a, b, n):
+ temp = 0
+ if n==1:
+ return a
+ elif n==2:
+ return b
+ elif n==3:
+ return str(a)+str(b)
+ else:
I think this else could be ignore. Because never will be go to else if
return occur before. (Just a comment)
and temp=0 could be defined after the ifs. This way we could avoid use
memory when is not necessary.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#883?email_source=notifications&email_token=AK6GTHFCH7Q2SQ23HD73N53PZ3OHZA5CNFSM4HVRSQSKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB3DHVBY#pullrequestreview-247888519>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK6GTHE6VWF4JG6AKWQ6XO3PZ3OHZANCNFSM4HVRSQSA>
.
|
else was not required temp declared afterwards suggested changes are correct.Thank u!
archithadge
commented
Jun 12, 2019
Are you going to merge it? |
eamanu
commented
Jun 12, 2019
You should wait for the commiters to merge it. I CC @poyea |
poyea
left a comment
There was a problem hiding this comment.
Thank you for your pull request!🤩
No description provided.