Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2014-12-22. : 5:47 am] Jack -- oh lool nvm the msdn on it reveals it is a geometric vector not a data structure vector ecksdee[2014-12-22. : 5:44 am] Sacrieur -- RoyRoy shouted: I've never heard of vectors outside of C/C++. I've always heard ArrayList, but I come from an OOP background and not a procedural one. It's like methods vs functions. more like a superior background amirite[2014-12-22. : 5:44 am] jjf28 -- FaRTy1billionFaRTy1billion shouted: it seems silly to me to have vectors which are basically just an array with a fancy name and some methods thrown in it's tremendously useful to have automatic size handling and bounds checks[2014-12-22. : 5:43 am] Roy -- I've never heard of vectors outside of C/C++. I've always heard ArrayList, but I come from an OOP background and not a procedural one. It's like methods vs functions.[2014-12-22. : 5:42 am] Jack -- So it's better to say an arraylist is a java implementation of a vector, and a vector in C++ is a C++ implementation of a vector[2014-12-22. : 5:42 am] O)FaRTy1billion[MM] -- it seems silly to me to have vectors which are basically just an array with a fancy name and some methods thrown in[2014-12-22. : 5:42 am] Jack -- While we're arguing semantics, when talking about data structures theoretically and not language-specific, the main ones discussed are arrays, lists, and vectors. ArrayLists aren't discussed at all that I've ever seen[2014-12-22. : 5:40 am] Roy -- FaRTy1billionFaRTy1billion shouted: vector vector "We have clearance, Clarence." "Roger, Roger. What's our vector, Victor?"[2014-12-22. : 5:39 am] Jack -- The actual data structure is a vector, in terms of data structures in general.[2014-12-22. : 5:39 am] Jack -- yep but that just means an arraylist is a java implementation of a vector which is done a little differently[2014-12-22. : 5:37 am] jjf28 -- JackJack shouted: it's arrays, lists, and vectors my text references http://www.cplusplus.com/reference/vector/vector/ and http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html[2014-12-22. : 5:37 am] Roy -- That's an implementation detail, but typically an array list resize doubles its current size.[2014-12-22. : 5:37 am] MasterJohnny -- Congratulations, the answer you gave to problem 45 is correct. You are the 40376th person to have solved this problem.[2014-12-22. : 5:36 am] Roy -- You can also have lists of arrays or arrays of lists or lists of lists.[2014-12-22. : 5:35 am] Roy -- Nope, an array list is an array that gets doubled in size and copied over whenever it reaches the max content.[2014-12-22. : 5:35 am] Jack -- IIRC an array list is an array of arrays, a vector is an array that gets doubled in size and copied over whenever it reaches the max content[2014-12-22. : 5:34 am] Jack -- Mini Moose 2707Mini Moose 2707 shouted: It's a Java thing, don't worry about it they don't just exist in java, you can pretty much make them in C too[2014-12-22. : 5:34 am] Jack -- jjf28jjf28 shouted: in c++ it's an array list an array list isn't the same as a vector[2014-12-22. : 5:03 am] Moose -- Dem0nDem0n shouted: math fucking blows. fuck all this shit. mad cuz bad[2014-12-22. : 5:03 am] Moose -- I should mention my solution doesn't work by calculating all of the numbers of each type and checking the lists of them against each other. That's probably a lot slower than what I did.[2014-12-22. : 5:01 am] Moose -- If you write out a bunch of the triangular/pentagonal/hexagonal numbers, you may notice one or more useful pattern(s), by the way.[2014-12-22. : 5:01 am] Moose -- They're like functions but members of a class. Again, don't worry about it![2014-12-22. : 5:00 am] Dem0n -- array lists are dynamic and have methods, whereas arrays don't or some shit[2014-12-22. : 4:53 am] Moose -- MasterJohnnyMasterJohnny shouted: is t here an easy way to compare if two vectors have the same element... iterate through each element and compare is the best I can think of offhand. If the one searched is sorted, you can stop once an element exceeds what you're looking for, too. Other than that, maybe one of those CS types around here knows.[2014-12-22. : 4:52 am] MasterJohnny -- is t here an easy way to compare if two vectors have the same element...[2014-12-22. : 4:47 am] Moose -- My solution for #187 has been going for 4 hours. Should I run it overnight for shits and giggles?[2014-12-22. : 4:46 am] Moose -- I do have old code and notes for #45, though! These days I've learned my lesson on the impermanence of posts there and take notes on all problems I solve.[2014-12-22. : 4:44 am] Moose -- I don't even have my solution program for #44 anymore and my solution post is long gone because I did that one in 2013. Possibly I could have done it on pen and paper o_O[2014-12-22. : 4:41 am] Moose -- #45 has been solved by roughly a third more people, so that might be a hint[2014-12-22. : 4:40 am] Jack -- #45 looks easier. I think I have a bug in my code somewhere though T_T |