Well, I can somewhat relate with your situation (at least as my younger self). Allow me to share how problematic is the above quote of your answer in my humble point of view:
So, doing nothing implies you have to do something and in your case that implies doing something you are not "good at"...
I didn't and I guess I would be pretty happy if I did.
When I think about why, it was because:
(1) I did not have a suitable environment for studying (I discovered this when I started living alone and made one)
(2) I felt more challenged playing online games
(3) Didn't have clear...
If you are into challenges, do a project, something that you want or need, less useful but good nonetheless: copy something.
Some ideas:
If you are into movies:
- A movie suggestion engine: Get data from IMDB, then input your favorite movies and movies you watched, fetch related movies...
Suggest learning and why? Here's my biased view, about some common programming languages.
Different languages that will teach you different things. It's a really really long journey:
1. Python/Ruby
2. Java / C#
3. Clojure / Haskell / OCaml
4. C
5. Assembly
Easiest to be useful and...
As a tool python is quite flexible. Depends on your goal.
If you wanna learn syntax I recommend doing a simple web-project or some programming challenges to get comfortable with its types and built-in libraries.
For problem solving:
I recommend CodeForces and CS academy you'll learn to use...
If I understood the problem correctly, it's quite disappointing since the pictures are pretty much irrelevant. (I wanted something visual / geometric!)
Simplest solution is: brute-force all 10! (less than 4m) permutations. Which is easy for a modern computer (not surprising since the problem...
I choose computer programming instead of medicine, so I could be free (got money fast enough to leave comfortably by myself). Dropped out of college tho, courses were mostly interesting but not really my thing going to class and working at the same time.
Been working professionally for about...
Problem 459 - https://projecteuler.net/problem=459
Looks really interesting too, since it's about "perfect playing" a game with simple rules. I like this type of problem.
I thought about problem 67: https://projecteuler.net/problem=67.
I lost a lot of time thinking (like 2 hours or so) I had to do something smart (dunno like a magic matrix multiplication or some closed-formula solution), but it was as simple as starting from bottom to top. My first solution...
Hmm, save the file and execute it, there's no problem (I am using Python 3). And the output answer is correct.
___
The "i" is "moving ahead" and there's no need use a range or a for-loop or anything like that. because path_sum is a recursive function. The "i" is one of the function...
It's no bother, but explain in detail what? The used python built-ins? How to read input?
Or the whole solution?
If it's about the solution, you can forget about reading input. And hard-code the input values:
Oh, I guess the input reading was quite weird. I apologize for that
from sys import stdin
tokens = map(int, stdin.read().split())
last_row = next(tokens)
numbers = list(tokens)
The above code reads from STDIN until end-of-file, it also ignores newline characters and...
This site uses cookies to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies. We have no personalisation nor analytics --- especially no Google.