[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>have to learn how to use arrays and methods in python by

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 115
Thread images: 19

File: 1477369782915.jpg (37KB, 601x601px) Image search: [Google]
1477369782915.jpg
37KB, 601x601px
>have to learn how to use arrays and methods in python by next month,
Who else /failing college/?
>>
>>>/r9k/
>>
Good luck learning how to use an array in python

kek
>>
Kill yourself, you fucking retard.
>>
>>59738281
Only brainlets fail college
>>
File: 1490871075639.jpg (10KB, 225x225px) Image search: [Google]
1490871075639.jpg
10KB, 225x225px
>>59738281
>have to write 100 word essay on bitwise operators in lisp for next week
>>
>>59738281
You kidding?
This is bait.
REEEEEE
>>
>tfw have to learn how to declare variables in javascript by next year

HOW do you DO it programmerbros???
>>
File: I like hot peppers.jpg (64KB, 320x320px) Image search: [Google]
I like hot peppers.jpg
64KB, 320x320px
>have to submit the numerical value of the sum of all primes under 2 million by the end of the month or mommy is revoking my GBP
>literally can't stop playing video games and masturbating to anime
what's the easiest way to commit suicide?
>>
File: 1454029662629.jpg (67KB, 633x758px) Image search: [Google]
1454029662629.jpg
67KB, 633x758px
>>59738374
I WISH I AM IN THE MOOD TO KID
>>
File: 255.png (562KB, 680x453px) Image search: [Google]
255.png
562KB, 680x453px
>>59738281
>have to read data directly from memory addresses using Scratch
>>
I'll bite.

When it comes to methods, what exactly are you struggling with?
When you say "arrays", do you mean the built in sequence types (lists, tuples etc.) or numpy arrays?
>>
>>59738485
like how to use methods what they do and i don't know about the last part that you said but arrays
>>
>>59738485
coding is more a philosophy to me. a way of life.
>>
>>59738281
you sound like too much of a brainlet to be in college anyway

make my coffee you pleb
>>
>>59738711
A method is a function that does not return a value. Im not going to write python code because I fucking hate the syntax.

void doSomething( String text )
{
text.concat("Add shit to text");
print(text);
}

A function is the same shit but it returns a value. When you use the function in your code, its treated as a value.


String doSomething( String text )
{
text.concat("Add shit to text");
return text;
}


Arrays are used to store shitloads of the same data types inside a single variable

Instead of doing


int number0 = 0;
int number1 = 10;
int number2 = 200;
int number3 = 3000;


you can do


int[] numbers = new int[4];

numbers[0] = 0;
numbers[1] = 10;
numbers[2] = 200;
numbers[3] = 3000;


If you cannot grasp these concepts, you will never become a programmer.
>>
>>59738853
OP, ignore this entirely.
>>
>>59738853
thanks but I don't understand what language is that is that c++ or cHash?
>>
>>59739027
its almost C but the print function is made up and I dont remember if that's how one declares arrays, you shouldnt need to care about that.
>>
>>59738281
Are you literally retarded? I learned in an hour.
>>
>>59739131
yes well I am not a fucking cyber space wizard like you am I??
>>
>>59738281
Don't you mean lists?
>>
>>59739212
>Seriously
He must mean lists.
OP what don't you understand about lists?
>>
>>59739027
Don't thank him he's misled you
>>
File: Screenshot_2017-04-04_12-14-36.png (50KB, 1016x578px) Image search: [Google]
Screenshot_2017-04-04_12-14-36.png
50KB, 1016x578px
>>59738281
I know this feel. Pic related, spend literally all day trying to solve this yesterday, and failed.
>find the max path of a binary tree
Literally impossible as far as I'm concerned.
>>
>>59739309
>;o)
class dropped
>>
>>59739309
turn it into a binary search tree then take the rightmost path

gg ez
>>
>>59738711
A method is literally just a function in a class

class MyClass
def thisIsAMethod():
return "and it returns this"
>>
>>59739468
>gg ez
>no code, not even pseudocode
Don't lie, you can't do it.
>>
Currently learning about recursion in java and drawing it's stack trace. Pain in the ass for such a simple code.
>>
>>59738281
r u srs m8?
>>
>>59739548
DO I LOOK LIKE A FUCKING JOKE TO YOU?
>>
>>59739309
Can't you just use dijkstra's algorithm? Then you just have to find a way to structure the data
>>
>>59738281
Fucking brainlet retard.
>>
File: me.png (5KB, 218x160px) Image search: [Google]
me.png
5KB, 218x160px
>>59739309
Sort each row and add the first item of each row?
>i tried
>>
>>59738281
I just finished a program which adds 2 matrices using multidimensional arrays
>>
Are all of you people actually retarded? I'm not even getting a CS degree and I know all this stuff.
>>
>>59740236
haha retard they're called nested for loop 2d array
>>
>>59739432
The problem is from Project Euler, and:
>published on 31st May, 2002
It was a different time. Millennial twerps like you wouldn't understand the internet 15 years ago.
>>
>>59738281
>> Have to learn BRST currents and loop integrals with Fadeev-Popov ghosts by next month.

STFU.
>>
>>59739309
Use a dynamic algorithm.
>>
>>59739309
>check each row
>find largest number in row
>is it a valid path ?
>no, check again using second largest num
>repeat until a valid path is found
>>
>>59740500
literally this
>>
>>59738853
>A method ist a function that doesn't return a value
No. Thats a procedure.

Method is an OOP term
>>
>>59740500
Ah, but how would you check that it is a valid path? And does finding the largest number in the row save you any time algorithmically?
>>
>>59740500
>>59740571
What if you select a high number in the upper layers and start ascending a path that only has low numbers? What if selecting a low number near the top takes you to a route that includes really high numbers? Like this:

1
2 1
1 1 9
1 1 1 9

You would be better choosing the 1 on the second row to gain access to the 9's.

Try again lads :^)
>>
File: skinner_simpsons_01.jpg (14KB, 299x299px) Image search: [Google]
skinner_simpsons_01.jpg
14KB, 299x299px
>>59738281
>I have to ___ in Python
>a problem
>>
>>59739309
Post the exercise in text?
>>
>>59740500
>find largest number in row
How do you deal with duplicates? E.g. row 15 has 98 twice. So how do you deal with 98 twice, and find its multiple indexes?
My code here starts from bottom and finds 98, the index of which is 2, which leads it to veer to the left. If I write to to go from top down, it goes down middle, but the path isn't max. So it's clear the first few largest numbers of any given row are misleading in predicting the max path.
TRIANGLE = [
[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 4, 82, 47, 65],
[19, 1, 23, 75, 3, 34],
[88, 2, 77, 73, 7, 63, 67],
[99, 65, 4, 28, 6, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48, 72, 33, 47, 32, 37, 16, 94, 29],
[53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14],
[70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57],
[91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48],
[63, 66, 4, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31],
[ 4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23]]
x, x2 = 0, len(TRIANGLE[14])
MAX = 0
for i in TRIANGLE[::-1]:
j = 0
for ii in i[x:x2]:
j = ii if ii > j else j
MAX += j
index = i.index(j)
x2 = index + 1
x = index - 1 if index - 1 > 0 else 0
print(MAX)
>>
>>59741678
yes, see >>59741016
>>
>>59738281
>class was being taught the basics of C++ functions
>I was still stuck on how to do arrays

And that's how I learned I was more creative than logical.
>>
>>59741678
Don't the numbers have to be adjacent? I assumed you just had to compare 2 indexes equal to or equal + 1 of the next array to determine a path.
>>
>>59738281
a = []
a.append('OP')
a.append('IS')
a.append('A')
a.append('FAGGOT')
for x in a: print x
>>
>>59738853
Pretty sure a method is a function that belongs to a class.
>>
File: reee.png (168KB, 727x682px) Image search: [Google]
reee.png
168KB, 727x682px
>>59741016
> :^)
No bully
>>
>>59741719
>Try again
I'm trying.
>>59741771
>Don't the numbers have to be adjacent?
Yes, that's what [x:x2] slices control. So it first finds the max of the last row, which is 98. list.index() returns the first index, so 98 is index 2, and next row is sliced [1:3], which is adjacent to 98 if it were represented as a binary tree/triangle. Then the next max is 66, then 91, at which point it's stuck on the left or [0:1]. This path isn't the max, so wrong. The problem is maybe the second index of 98 is the right path. I suppose I have to enumerate the rows.
>>
>>59741863
What does this do. I'm OP
>>
>>59741863
>>59741501
Python is so confusing gives me a headache lol
>>
File: 1462951361524.jpg (68KB, 658x662px) Image search: [Google]
1462951361524.jpg
68KB, 658x662px
>>59741998
>>59742126
FUCK OFF I AM NOT OP
>>
>>59742126
I heard self administered bullets work incredibly well in combating headaches
>>
File: Crying_Sreesanth-815226.jpg (8KB, 370x234px) Image search: [Google]
Crying_Sreesanth-815226.jpg
8KB, 370x234px
>>59738281
>Have to write equation to figure out all prime numbers from 0 to 20 by next year
>>
>>59742143
I MEAN YOU ARE NOT OP
>>
>>59738281

>tfw can't understand java object primitives

IT'S LIKE THEY WANT US TO FAIL
>>
>>59739309
I never did CS, but wouldn't you just have to make a triangle of the same size, made out of empty values, and fill that triangle with the maximum possible value that you can get at each point? Then, if you have another triangle made out of "L"s and "R"s, you could store the optimal path as well for the end? This way, you only have to deal with the original next row, plus the one you built where you already know the most best way to get to the next set?

In the example triangle at the top, you'd get:

3
10, 7
12, 14, 13
20, 19, 23, 16

L, R
LL, LR, RR
LLL, LRL, LRR, RRR

Then you'd pick the largest value from the bottom set and figure out how to get to it by looking at the other triangle you made with L's and R's, so in this case, 23 which is made by going left, right, right. I guess you could make it more memory efficient by only having two arrays of the maximum size, where each step increases the number of spots taken by 1, does the adding to the existing things in the array and adds a character to the other one, and each of the lines above is really the state of the array as you take the next line of the triangle in.
>>
>>59738281
This is how I learned what arrays are: reading about a cool application - pseudo random number generator tables. You create a table of random numbers (in this case Doom uses 256 numbers, sometimes they repeat) and have a function (P_Random) that advances the index by 1, then you slap that function in various parts of the code that runs in a constant loop.

http://mochadoom.cvs.sourceforge.net/viewvc/mochadoom/mochadoom/src/m/DoomRandom.java?view=markup

The random function provided by C compilers differs in behaviour, depending on which compiler and processor you use. That would cause a major desynch in multiplayer gaymes between computers of different specs.
>>
File: 1490995457287.jpg (56KB, 722x349px) Image search: [Google]
1490995457287.jpg
56KB, 722x349px
>>59738281
>600 word essay due on thursday
>haven't even started
>>
>>59738281
Get back to me when you have to learn C in under one month.....
>>
>>59742488
>Then, if you have another triangle made out of "L"s and "R"s
There are 13684 possible roots for the 15-row triangle in the example. How would you do this? If the triangle is even larger, all possible routes are non-computable on current consumer hardware.
>>
>>59739468
>>59739516
this wouldn't even work. Even if he wrote code it would be wrong.
>>
>>59742929
A 15 row triangle would have 15 items in the largest row. Why would you make all the paths? You only need to know the best way to get to each of the ones on the row you're working on, so when the 15th row is consumed, you'd have an array of strings that is 15 strings large, and each string would be 14 characters long. That seems entirely computable.

Look at the example I made again:

L, R
LL, LR, RR
LLL, LRL, LRR, RRR

which is really being made like this:

[NULL, NULL, NULL, NULL]
[L, R, NULL, NULL]
[LL, LR, RR, NULL]
[LLL, LRL, LRR, RRR}

The maximum value and path to get that value at any point in the triangle isn't going to change the next time you look at it, so keep the string and values you had calculated before.
>>
File: 1490336659494.png (537KB, 732x743px) Image search: [Google]
1490336659494.png
537KB, 732x743px
TRIANGLE = [
[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 4, 82, 47, 65],
[19, 1, 23, 75, 3, 34],
[88, 2, 77, 73, 7, 63, 67],
[99, 65, 4, 28, 6, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48, 72, 33, 47, 32, 37, 16, 94, 29],
[53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14],
[70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57],
[91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48],
[63, 66, 4, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31],
[ 4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23]]
lst = []
n = 0 # Initial index
for i in TRIANGLE[14]:
MAX = i
print(i, '<-- start')
index = n
for ii in TRIANGLE[-2::-1]:
x2 = index + 1
if index - 1 > 0:
x = index - 1
elif len(TRIANGLE[14]) == n:
x = index - 2
else:
x = 0
j = max(ii[x:x2])
MAX += j
print(j)
index = ii.index(j, x)
lst.append(MAX)
#print(MAX, '<-- sum')
n += 1

I get 1020 as maximum route trying all from bottom row and moving to the largest adjacent value. This appears to be wrong, and further inspection seems to show a pattern of veering to either the left or right and getting stuck. "Max adjacent" is not the largest route for any starting value, despite initially being largest.
>>
>>59739027
>cHash
>>>>cHash
If you mean C#, then just write C#. And it's pronounced C-sharp, you utter fucking moron.
>>
>>59739027
>>59739187
Ok, I changed my mind. This can't not be bait.
>>
>>59739309
Try A* search, a good heuristic is the sum of the largest numbers from each row starting with the one below the current one.
>>
>>59738281
http://www.i-programmer.info/programming/python/3942-arrays-in-python.html

You're welcome. It's not really that hard to be honest, you got it homie.
>>
>>59738418
Underrated
>>
File: 1490986999981.jpg (44KB, 650x487px) Image search: [Google]
1490986999981.jpg
44KB, 650x487px
>>59743114
>>59743146
>>59743169
>When your browser saves the name you were fagging with yesterday even though you were sure you had removed it

REEEEEEEEEEEEEEEEEEEEEEEEEÈEEEEEEEEEEEEEEEEEEEE
>>
>>59743146
>Can't not
>Grammarfag
Tripfag BTFOS himself
>>
>>59738418
>tfw have to learn how to change directory in linux by next year
Step it up
>>
File: 1460324753227.gif (1021KB, 479x354px) Image search: [Google]
1460324753227.gif
1021KB, 479x354px
>tfw know about as much java as a poo in loo codemonkey and only have a rudimentary understanding of python

still know more than three quarters of this board
>>
>>59743020
>>59743020
>Why would you make all the paths? You only need to know the best way to get to each of the ones
I don't understand: isn't finding out the path in your example finding all the paths? Thinking about this logically honestly hurts my head.
>>
>200 word HTML assignment
>due tomorrow
>haven't started yet
>>
>>59743266
What's wrong with the grammar? It cannot not be bait, i.e. it can only be bait.

Learn English before posting on an English website.
>>
>>59739309
>Start on the second to last row
>max between two numbers under it added to each iteration
>repeat till you get to the top
>>
>>59743374
Different anon, seriously, wouldn't an A* search work? Or literally any other proper graph search algorithm. It seems like a trivial planning/maximisation problem.
>>
>>59743374
Consider this part of the example:

Converting from: [L, R, "", ""]
to: [LL, LR, RR, ""]

We had to pick "LR" for the second item, instead of "RL", even though both would be paths to get to that point, only "LR" is acceptable, because LR is 3 + 7, whereas "RL" is only 3 + 4.

For any future calculation we do, it won't matter that we COULD go RL, that's not the best way to get to that point in the tree, and if the best path involves getting to that point, then we should be getting there by going LR. We don't know that it's the best way in general, but to get to that point, there is no better way. There could be something later on that makes a path that starts with "R" better, but we don't care about that right now.

When we take the next step, we only try out "LRL" and "LRR", because starting with "RL" isn't the best and there would be no point. That's how it's not calculating all the paths.
>>
>>59743463
Don't ask me, I don't know.
>>59743502
>There could be something later on that makes a path that starts with "R" better, but we don't care about that right now
But how do you figure this out? That's seem like the final answer would be probabilistic, but what's the use of that if you can't be certain? Because in your example, you find out all paths and determine LR is largest. But if you didn't know RR was smaller, you'd be wrong. And LR misses out on RRR, which could also be larger than anything on the LR path.
>>
>>59738281
Just drop out you fucking failure.
>>
>>59738281
Are you fucking kidding me? Use the console. It's not trivial if you have never used a programming language but, if you have used any programming language before that's like a twenty minute deal.
>>
>>59743879
>probabilistic
I don't think so.

That's why you still do RR. RR is unrelated to getting to the point that LR and RL get to. RR is a different point.

It works by calculating the best way to get to each point. In order for there to be a better path, you would have had to have made a mistake earlier. If the tree had gone:

3
7, 4
2, 4, 10000
8, 5, 9, 3

Then that point would still have an optimal value of 14, but RR would have a value of 10007. When you take the next step, the 10007 will clearly defeat 14. The value you're calculating is only the best for that very point in the triangle.
>>
>>59740115
Yeah that's how I was thinking about it. Each number is a node, each adjacency is a directed path, each value of the number is an edge weight. The only change from Dijkstras is you are looking for the "highest" weighted path not the least
>>
>>59738331
http://clhs.lisp.se/Body/f_bt_and.htm
http://clhs.lisp.se/Body/f_boole.htm
http://clhs.lisp.se/Body/f_logand.htm
>>
>>59743114
Bro, you are going to want to sit down. You've been trolled pretty hard.
>>
>>59738281
>have to learn how to draw a circle in GIMP by next 10 years
AAAA HELP MEEE
>>
>>59743879
triangle = [
[75],
[95, 64],
[17, 47, 82],
[18, 35, 87, 10],
[20, 4, 82, 47, 65],
[19, 1, 23, 75, 3, 34],
[88, 2, 77, 73, 7, 63, 67],
[99, 65, 4, 28, 6, 16, 70, 92],
[41, 41, 26, 56, 83, 40, 80, 70, 33],
[41, 48, 72, 33, 47, 32, 37, 16, 94, 29],
[53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14],
[70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57],
[91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48],
[63, 66, 4, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31],
[ 4, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 4, 23]]

directions = ["","","","","","","","","","","","","","",""]
values = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

triangle.each_with_index do |row_array, outer_index|
directions_clone = directions.dup
values_clone = values.dup

row_array.each_with_index do |inner_value, inner_index|
if inner_index == 0
if outer_index == 0
directions_clone[0] = '-'
else
directions_clone[0] = directions[0] + "L"
end
values_clone[0] += inner_value
next
end

previous_index = inner_index - 1

if values[previous_index] > values[inner_index]
values_clone[inner_index] = values[previous_index] + inner_value
directions_clone[inner_index] = directions[previous_index] + "R"
else
values_clone[inner_index] = values[inner_index] + inner_value
directions_clone[inner_index] = directions[inner_index] + "L"
end
end

directions = directions_clone
values = values_clone

p "#{values}"
end

p "The highest value is: #{values.max}"
p "To get there, go: #{directions[values.find_index(values.max)]}"
>>
>people actually having trouble with this problem

vector<vector<int>> pyramid = 
{{75},
{95, 64},
{17, 47, 82},
{18, 35, 87, 10},
{20, 04, 82, 47, 65},
{19, 01, 23, 75, 03, 34},
{88, 02, 77, 73, 07, 63, 67},
{99, 65, 04, 28, 06, 16, 70, 92},
{41, 41, 26, 56, 83, 40, 80, 70, 33},
{41, 48, 72, 33, 47, 32, 37, 16, 94, 29},
{53, 71, 44, 65, 25, 43, 91, 52, 97, 51, 14},
{70, 11, 33, 28, 77, 73, 17, 78, 39, 68, 17, 57},
{91, 71, 52, 38, 17, 14, 91, 43, 58, 50, 27, 29, 48},
{63, 66, 04, 68, 89, 53, 67, 30, 73, 16, 69, 87, 40, 31},
{04, 62, 98, 27, 23, 9, 70, 98, 73, 93, 38, 53, 60, 04, 23}};

main(int argc, char *argv[]) {
for(int level = pyramid.size() - 2; level >= 0; level--){
for(int index = 0; index < pyramid[level].size(); index++){
pyramid[level][index] = pyramid[level][index] + max(pyramid[level+1][index], pyramid[level+1][index+1]);
}
}
cout << pyramid[0][0] << endl;
}
>>
How long does it usually take to get good at a programming language, I already took 2 classes of pure JS, I still think I'm a beginner-intermediate programmer, am I fucked
>>
>>59738281
>class learning while loops in c++
>still stuck on cout and cin
>>
Holy shit. 1 weekend is enough for that shit, OP. If this isn't bait, do literally any Python intro program online.
>>
>>59744510
Won't this only find the greedy path through the triangle?

If I'm right, that doesn't even solve the optimal path for ending on the 8th item in the bottom row. Your answer gives 1064, but the best value for that position is 1068, by going 75->RRLLRLLRLRLRLR:
75+64+82+87+82+75+73+28+83+47+43+73+91+67+98 = 1068

vs. what I think yours does:
75+95+47+87+82+75+73+28+83+47+43+73+91+67+98 = 1064

I'm pretty sure the optimal is 1074 by going: 75->RRLLRLLRRRRRLR
>>
>>59744440
Is this Ruby?
>>
File: 1491329254238s.jpg (8KB, 250x250px) Image search: [Google]
1491329254238s.jpg
8KB, 250x250px
>don't know how to divide a decimal by a decimal in my head
>don't even mention dividing exponents or powers
>>
File: RUM_coverfront.png (170KB, 400x529px) Image search: [Google]
RUM_coverfront.png
170KB, 400x529px
>>59744867
Sure is. And before anybody says it's slow, read Ruby Under a Microscope - both arrays and strings are actually just wrappers around C structs, all floating point math is a wrapper around a double and non-decimal-point numbers are all longs when you use the default ruby implementation. All those wrappers are also written in C. So in this case, only one object gets created (for the program), and there's extremely limited use of the ruby interpreter. As long as you don't use objects in ruby, it's not going to be that terribly slow.
>>
>>59744942
>long division like there's no decimal, and then add a decimal where it seems like it makes sense
>find the n-th root where n is the denominator, and then take that to the power of the numerator. If it's negative, just flip them before doing that.
>>
>>59744761
Nope, not the greedy path. If you run it, it results in 1074 in 0.35ms
>>
>array
colleges nowadays no longer teach linked list with pointer?
>>
>>59738485
there's a built-in array module too, that's like a dime store version of the numpy arrays (it stores the data as a contiguous list of C data values instead of PyObject*s, but doesn't do any of the vectorized stuff or fancy shaping)
>>
>>59745075
Ah I see, it's going from the bottom to the top, which explains why it looks forwards instead of backwards, and squishes everything into the existing arrays instead of storing them outside. Interesting. I suppose I could have reused the arrays in >>59744440 as well instead of having to do all that duplicating.
>>
>>59744174
Just use the reciprocal for the weight, now it's literally dijkstras
>>
>>59745145
why wouldn't they just teach both???
>>
>>59745252
Students these days only have so much time to be logical koders between periods, and by the end of the semester when all the women have synced up with the dominant female, ho boy does it ever get bitchy in that classroom.
>>
>>59744440
>>59744510
Is it the same implementation for any size triangle? For example, the one here with 100 rows: https://projecteuler.net/problem=67
>>
>>59738299
fpbp
>>
>>59738853
>A method is a function that does not return a value

Stopped reading there, fucking retarded

A method is an object bound function. But it doesn't matter in practice and the terms are interchangeable.
>>
>Tfw have to learn and use the current hip javascript framework before it dies and the next one takes the spotlight
Thread posts: 115
Thread images: 19


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.