Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Strange error in Atom. EDIT: Problem solved!
Post: Strange error in Atom. EDIT: Problem solved!
I apologize if this 3d is a little bit off topic but i can't solve this problem by myself...
I changed SSD and i reinstalled Atom on my computer.
When i try to run the python script, Atom shows me th... |
|
lupoalberto |
News and Discussions |
0 |
1,866 |
May-12-2018, 06:16 AM |
|
|
Thread: Bubble sort quiz: why the result is not the same?
Post: RE: Bubble sort quiz: why the result is not the sa...
here the math proof: (i continue not understand why our results are different from 1/14880).
https://www.cut-the-knot.org/Probability...orts.shtml |
|
lupoalberto |
General Coding Help |
11 |
5,926 |
Apr-27-2018, 12:45 AM |
|
|
Thread: Bubble sort quiz: why the result is not the same?
Post: RE: Bubble sort quiz: why the result is not the sa...
(Apr-25-2018, 01:44 PM)ljmetzger Wrote: Lewis
So do you believe like me that the answer 1/ 14880 is wrong, right? |
|
lupoalberto |
General Coding Help |
11 |
5,926 |
Apr-25-2018, 03:07 PM |
|
|
Thread: Bubble sort quiz: why the result is not the same?
Post: RE: Bubble sort quiz: why the result is not the sa...
(Apr-24-2018, 07:17 PM)ljmetzger Wrote: Lewis
This is the problem:
A given sequence r1, r2, . . . , rn of distinct real numbers can be put in ascending order by means
of one or more “bubble passes”.... |
|
lupoalberto |
General Coding Help |
11 |
5,926 |
Apr-24-2018, 07:51 PM |
|
|
Thread: Bubble sort quiz: why the result is not the same?
Post: RE: Bubble sort quiz: why the result is not the sa...
Quote:1- bubblesortOnePass()'s return value is never used, so you don't need to return l.
Yes, you're right, that function was the bubble sort recursive function.
Then i modified it and i transformed... |
|
lupoalberto |
General Coding Help |
11 |
5,926 |
Apr-24-2018, 06:54 PM |
|
|
Thread: Bubble sort quiz: why the result is not the same?
Post: Bubble sort quiz: why the result is not the same?
Here's a quiz of a Math professor on Twitter:
[Image: https://ibb.co/ewX81x]
He says the results are:
1) 1 / 930
2) 1 / 14880
I did this code (python3) and while the first result is the same, the s... |
|
lupoalberto |
General Coding Help |
11 |
5,926 |
Apr-24-2018, 12:45 PM |
|
|
Thread: Anaconda on Windows 10: problem with Jupyter Notebook
Post: RE: Anaconda on Windows 10: problem with Jupyter N...
(Apr-17-2018, 07:55 PM)snippsat Wrote: (Apr-17-2018, 05:34 PM)lupoalberto Wrote: yes i have...Then you most check the log to see if AV has removed those files.
Av will always remove those file it ... |
|
lupoalberto |
General Coding Help |
8 |
13,110 |
Apr-18-2018, 08:08 AM |
|
|
Thread: Anaconda on Windows 10: problem with Jupyter Notebook
Post: RE: Anaconda on Windows 10: problem with Jupyter N...
(Apr-17-2018, 10:07 AM)snippsat Wrote: (Apr-17-2018, 05:30 AM)lupoalberto Wrote: As i said, the strange thing is that i don't have any jupyter notebook file into the Scripts folder...neither conda... |
|
lupoalberto |
General Coding Help |
8 |
13,110 |
Apr-17-2018, 05:34 PM |
|
|
Thread: Anaconda on Windows 10: problem with Jupyter Notebook
Post: RE: Anaconda on Windows 10: problem with Jupyter N...
(Apr-16-2018, 07:54 PM)snippsat Wrote: (Apr-16-2018, 05:58 PM)lupoalberto Wrote: You write that conda is in Anaconda>cd Scripts> but as i said earlier....in that folder i don't find neither ... |
|
lupoalberto |
General Coding Help |
8 |
13,110 |
Apr-17-2018, 05:30 AM |
|
|
Thread: Anaconda on Windows 10: problem with Jupyter Notebook
Post: RE: Anaconda on Windows 10: problem with Jupyter N...
(Apr-16-2018, 01:02 PM)snippsat Wrote: Look at my Anaconda tutorial
You don's start from cmd, You download eg Python 3.6 version 64-Bit Graphical Installer (537 MB).
Follow the installer instructi... |
|
lupoalberto |
General Coding Help |
8 |
13,110 |
Apr-16-2018, 05:58 PM |
|
|
Thread: Anaconda on Windows 10: problem with Jupyter Notebook
Post: Anaconda on Windows 10: problem with Jupyter Noteb...
Hi, today i've installed Anaconda on Windows 10 but i have problems because Jupyter Notebook doesn't run.
I put some screenshots here but i've tried a lot of others combination.
The problem i guess is... |
|
lupoalberto |
General Coding Help |
8 |
13,110 |
Apr-16-2018, 12:12 PM |
|
|
Thread: Don't understand why this quicksort code works
Post: RE: Don't understand why this quicksort code works
(Mar-26-2018, 08:17 PM)nilamo Wrote: Because the data structure is a list, which is mutable. When you assign something to a variable (x = 42), the old value of the variable still exists, but there'... |
|
lupoalberto |
General Coding Help |
6 |
4,019 |
Mar-27-2018, 10:01 AM |
|
|
Thread: Don't understand why this quicksort code works
Post: RE: Don't understand why this quicksort code works
(Mar-26-2018, 06:33 PM)nilamo Wrote: Output:>python spam.py
Entering quickSort: alist=[4, 2, 11, 1, 5], first=0, last=4
Starting partition: pivotvalue=4
finding indices complete: leftmark=2, righ... |
|
lupoalberto |
General Coding Help |
6 |
4,019 |
Mar-26-2018, 07:45 PM |
|
|
Thread: Don't understand why this quicksort code works
Post: RE: Don't understand why this quicksort code works
(Mar-26-2018, 04:02 PM)nilamo Wrote: It doesn't need to return an element, because it's already moved the items (in place).
Yes, but i don't understand how the QuickSort function is able to move the... |
|
lupoalberto |
General Coding Help |
6 |
4,019 |
Mar-26-2018, 05:27 PM |
|
|
Thread: Don't understand why this quicksort code works
Post: Don't understand why this quicksort code works
Hi, here there's a quicksort code in Python 3.
It works but my problem is this: i understand what the partition function makes, but i don't understand how the quickSort function is able to change the ... |
|
lupoalberto |
General Coding Help |
6 |
4,019 |
Mar-26-2018, 03:42 PM |