somnamniac
 Name:

 School:
 About:
 Push the button, Frank.
188 helpers are online right now
75% of questions are answered within 5 minutes.
Most Active Subjects

 Questions Asked
 10
 Questions Answered
 0
 Medals Received
 8

 Questions Asked
 10
 Questions Answered
 66
 Medals Received
 10

 Questions Asked
 1
 Questions Answered
 0
 Medals Received
 0

 Questions Asked
 10
 Questions Answered
 0
 Medals Received
 8

 Questions Asked
 10
 Questions Answered
 66
 Medals Received
 10

 Questions Asked
 1
 Questions Answered
 0
 Medals Received
 0
Questions Answered

somnamniac:
Why is 2n^2 = O(n^3) ?
This is given as an example of big O notation in the MIT OCW Introduction to Algorithms (SMA 5503) course. It's in …
 updated 2 years ago
 16 replies
 1 Medal
Mathematics

somnamniac:
why do functions save variable definitions when using python from the command line?
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics

Brody38h:
Working on ps8 and having trouble with problem 4. Anybody have this one solved or able to discuss it?
 updated 3 years ago
 8 replies
 No Medals Yet
Mathematics

jaymorgangrice:
Can some1 tell me whats wrong with this answer for 1a? Cheers
pprime = 5…
 updated 3 years ago
 3 replies
 No Medals Yet
Mathematics

divanshu:
hi, i just wanted to know about the reference books related to the lectures on introduction to computer science and programming?
 updated 3 years ago
 3 replies
 No Medals Yet
Mathematics

dhatraditya:
Hi,
I just wanted to know how many lectures I have to view before I can start the problem set 1. I have finished the first 3 lectures. The…
 updated 3 years ago
 2 replies
 No Medals Yet
Mathematics

walistiky:

I think this works:
ps1.py…
 updated 3 years ago
 2 replies
 No Medals Yet
Mathematics

Bonabon:
"Solved" the first half of PS1, code works perfectly, but I have a question or two.
Sticking to the idea that:…
 updated 3 years ago
 11 replies
 No Medals Yet
Mathematics

Mongo:
is there anyone working on problem set 1
 updated 3 years ago
 7 replies
 No Medals Yet
Mathematics

fsl4faisal:
want help in string operation
…
 updated 3 years ago
 7 replies
 No Medals Yet
Mathematics

lennydykstra84:
In ps5, the display_hand function utilizes two for loops. Can someone explain the need for the second loop?
for j in range(hand[letter]):…
 updated 3 years ago
 4 replies
 No Medals Yet
Mathematics

somnamniac:
OT question for people who do this for a living: What is a 'database'?
 updated 3 years ago
 11 replies
 No Medals Yet
Mathematics

fsl4faisal:
what is answer of pset 2
Show that it is possible to buy exactly 50, 51, 52, 53, 54, and 55 McNuggets, by finding …
 updated 4 months ago
 3 replies
 No Medals Yet
Mathematics

lamba89:
Problem 1 of Problem set 3: for the recursive function, I got my code working by writing a function within a function, it's quite long comp…
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics

britt:
How do you return the value of a variable from a function?
For example, I want to use variable x. Say I start my program with "x=1".…
 updated 3 years ago
 4 replies
 No Medals Yet
Mathematics

dtrobson099:
I think my code for ps2a is correct, but I think my code is kind of ugly. I have a feeling I should be using tuples in some fashion, but I…
 updated 3 years ago
 9 replies
 No Medals Yet
Mathematics

iannet:
I just watched lecture 15 and wonder why p > q calls cPoint's __cmp__ function. I'd expect p > q check whether p's referent is greater than…
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics

rlp0903:
I'll throw this out there. I've been using a good Perl ebook that is available as a free Pdf  "Invent Your Own Computer Games with Python…
 updated 3 years ago
 1 reply
 No Medals Yet
Mathematics

nordungg:
PS0  is this piece of code correct. It seems to work as it should, but I would like to be sure:
"Enter your last name"…
 updated 3 years ago
 3 replies
 No Medals Yet
Mathematics

allnurote:
PSet 1, problem 1, the prime numbers thing.
I'd just like to see if I'm on the right track. Here's what I have so far:…
 updated 3 years ago
 9 replies
 No Medals Yet
Mathematics

iyasvami:
How is this course (6.00) compared to course 6.001?
 updated 3 years ago
 4 replies
 No Medals Yet
Mathematics

allnurote:
Python beginner...
I'm having trouble coding for simple programs in the psets. Is there some kind of howto guide I should look at to help…
 updated 3 years ago
 2 replies
 No Medals Yet
Mathematics

greenman:
Anyone want to check out my code for problem 1 (a)? It works, I am just looking for tips moving forwards.
print 'Currently Calculating Pri…
 updated 3 years ago
 3 replies
 No Medals Yet
Mathematics

dtrobson099:
I'm struggling with the sum of the logs problem in Problem Set 1. My ratio seems to approach 0, and very slowly. I'm not getting the outp…
 updated 3 years ago
 10 replies
 No Medals Yet
Mathematics

GearsofWar:
Can someone help me get started on problem 1 on the nuggets assignment?
 updated 3 years ago
 2 replies
 No Medals Yet
Mathematics

Aslander:
Prob.Set 4, problem 4. I think I am reading this problem incorrectly. Is it the max amount to withdraw during retirement only, or both reti…
 updated 3 years ago
 7 replies
 No Medals Yet
Mathematics

ewigej:
hey guys! I'm on problem set 0 and it says the instructions on installing Python are covered in handouts..
is there any way to obtain by do…
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics

Keen:
PS 3, problem 2 question: What should be returned if key string is empty?
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics

somnamniac:
What are good places to start looking to get involved in open source development?
 updated 3 years ago
 11 replies
 No Medals Yet
Mathematics

djm:
Video 2 comes up as being deleted. Can it be found elsewhere?
 updated 3 years ago
 5 replies
 No Medals Yet
Mathematics
 > Older questions