@Zacharee1 found it. youtube.com/watch?v=EeQ8pwjQxTM That's the video that helped me understand how it works. Both lists in order to be merged must be already sorted , so you're essentially taking tops of stack and comparing them
By definition questions that are on topic are these:
Using and administering official Ubuntu flavors including: Edubuntu,
Ubuntu GNOME, Kubuntu, Ubuntu Kylin, Lubuntu, Mythbuntu, Ubuntu
Studio, Xubuntu, Ubuntu MATE, Ubuntu Touch, and Ubuntu "Snappy" Core.
Running third-party applica...
I don't know why, but I've been having a ton of trouble visualizing what's meant to happen
I think I've lost some sort of thought process I had last year
because I just have no idea how to proceed, no idea what the code I'm writing is meant to do, and I still don't understand how to adapt the concept of merge sort
so excuse me while I cry myself to sleep out of frustration
@Zacharee1 Merge sort is a recursive sort algorithm, first you will divide the original list of elements in equal-sized lists. Then you will merge sort each of those lists, which will then divide them again and so on, until you have a list of 1 element, which is sorted by definition. After you have got to that point, you will start merging the lists, where you will always compare the first element of a list with the first element of another one
@Zacharee1 the gif on wikipedia helps visualizing a bit, I've the code here, but I think if you're having a hard time visualizing the algorithm pseudocode, it might not help a lot, but I can send it to you
@NathanOsman now that Yakety is out, can you please make the PPAs work for that too ? Got reminded of this just now by fossy's github . . . somebody opened issue that his ppa isn't working for yakety
Every time I turn on my computer, I see a message saying something like:
Your battery may be old or broken.
I am already aware that my battery is bad. How do I suppress this message?
@NathanOsman is there a way i can clone repository at "specific commit" ? I wanna test a small script that supposed to recursively do git pull origin master, but i can't . . .because everything is updated
The headlines maybe... we have a similar paper over here with very little text around photoshopped imagery... it is called "Bild" which means "picture".
@ByteCommander one of my brothers said "I don't understand this person's motivation... surely it is less fun to get random insults if you know them all already"
I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?
Before release Java 7, I followed this way to install Java 6.
But it doesn't work for Java 7. There is no package s...
import sys
import time
index = 0
string = str()
while True:
line = sys.stdin.readline()
index = index + 1
print(index,line)
if index % 10 == 0:
time.sleep(3)
import sys
import time
with open(sys.argv[1]) as f:
for index,line in enumerate(f,1):
print(index,line)
if index % 10 == 0:
print('get more?[y/n]')
string = raw_input().strip()
print('"'+string + '"')
if string == 'n' or string == 'N':
break
While there are couple of questions on this matter none of them has helped with my problem which I have had for the last 24 hours. Out of desperation I need help from more experienced users. Basically I downloaded and extracted apacheGui on my web server machine but when I run ./start.sh I get th...