Search results

  1. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    I totally agree. I have a lot of C# experience so I totally understand the concepts. But the other students in the class are new to programming so they are having to wrestle with the nuances of the C++ language which has nothing to do with data structures themselves. The professor keeps...
  2. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    You can't do that because you don't know when the user will access what was popped. It may not be immediately. My point is that the professor is wrong and from discussing it with him I could tell he himself doesn't have a firm grasp of what's going on. Anyway, thanks for your input...
  3. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    Sure, I could do that but that would mean that the Stack would forever store anything pushed into it. That's crazy and I seriously doubt real-world stacks work this way.
  4. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    But it's not because I am shifting the elements in the array upon pop(). The value of p + 1 is being moved to p + 0 (and so on depending upon number of elements in the array). If I returned a reference to p + 0 then the user of the Stack would actually being getting p + 1's data.
  5. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    I don't understand the question. The stack, internally, is using an array. If I return array[0] with pop() then shift the elements in the array to account for index 0's content removal (i.e. index 1's value is moved to 0), what am I returning a reference to?
  6. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    Sorry for the delayed response, was away yesterday and didn't feel like typing a response on a 8" Amazon tablet. So here's the deal: this Stack implementation is templated. So you don't know what what type it's being initialized as. In my example the user of the Stack could be instantiating...
  7. ShakyJake

    Playstation 5

    What the hell. It feels like the PS4 was released not too long ago. Is a PS5 really necessary this soon?
  8. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    So let's back up a step. From a simple main() method say you do this: int* myArr = new int[10]; int myInt = 100; myArr[0] = myInt; Is there now a reference to 'myInt' at myArr[0]?
  9. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    A copy of the element is created locally within the pop() method. The pointer to the element will be deleted. You cannot return a reference to a locally scoped variable.
  10. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    You pop because that's a Stack operation. One implementation of the Stack is a Linked-List. So the element in question is attached to a Node structure. In the pop() method I'm doing something like T element = currentNode->e; Node temp = currentNode // adjust pointers from previous and next...
  11. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    Any C++ experts here? I'm currently taking a course on Data Structures and Algorithms in C++. The professor has given us a header file for us to implement a Stack. However, I think the header file is slightly incorrect: template <typename E> class Stack { public: Stack()...
  12. ShakyJake

    The Haunting of Hill House

    Metacritic reviews are looking pretty good: The Haunting of Hill House
  13. ShakyJake

    Marvel's Daredevil

    Oh well! No plans to watch this shit now.
  14. ShakyJake

    Lucifer

    Lindsey Gort, man. AKA Candy.
  15. ShakyJake

    Doctor Who

    For those interested, here's a YouTube video with all the theme song variations. The new one is definitely like the 63-67 version.
  16. ShakyJake

    Doctor Who

    I skipped the Capaldi run but decided to tune in for this premiere. Not bad, honestly. Definitely a different feel -- wasn't goofy like a lot of the Moffat shit. I think the actress did a great job channeling The Doctor. Also, didn't detect any overt SJW or girl-power nonsense. Interesting...
  17. ShakyJake

    American Horror Story: Apocalypse

    Honestly, this was probably one of the best episodes of the series. Really enjoyed it and kept my attention. By the way, I don't recall how Madison and Queenie died back in Coven. Does anyone else recall? Also, backing up a couple episodes, when Madison said to Billie Lourd's character, "I...
  18. ShakyJake

    Halloween 2018

    Is anyone aware of any companies that will craft costumes by request? What I'm looking for is a high-quality replica of a particular super hero costume. Sure, there exists the usual crap you find at the various costume stores but I want something that is actually fitted for me and is...
  19. ShakyJake

    Computer Issues

    That's funny. I used to operate a computer repair/hobby store and a customer brought in a system he built with exactly the same 'problem'. Motherboard was fine once properly seated with stand-offs.
  20. ShakyJake

    Desktop Computers

    Yeah I'm not wanting to do anything crazy. I lucked out finding a 4K monitor at a thrift shop for 16 bucks. I just assumed there existed a sub $300 video card that could run WoW at 4K. Guess not!
  21. ShakyJake

    Desktop Computers

    Well that sucks. Scaling the game down to a lower resolution makes nameplates look rather crappy.
  22. ShakyJake

    Desktop Computers

    What's the recommendation for a video card that can run WoW @ 4K at reasonably high settings? I just upgraded to an i7-8700k. My existing card is a GTX 950 which runs WoW beautifully at 1080p, but at 4K it's kind of struggling at mid-range settings. I do NOT care about other games. WoW is...
  23. ShakyJake

    The Gifted

    She's hot for sure but my preference is for those triplets.
  24. ShakyJake

    Manifest

    Her face annoys me for some reason. I thought the pilot was decent but my bet is it'll be cancelled. It'll probably get a full season order, but won't make it to a 2nd.
  25. ShakyJake

    Linux OS stuff Thread

    So whatever happened with SteamOS and those machines?
  26. ShakyJake

    The First

    I'm guessing HGH. The dude's body doesn't match his face. I found the first episode horribly boring. Doubt I'll continue with it.
  27. ShakyJake

    Desktop Computers

    I wanted to get one of those spiffy NVMe SSDs. Any opinions on the Samsung 970 EVO 500GB vs WD Black 500GB? Or some other brand/model? The price point on these are just about right.
  28. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    We explored one testing method of comparing screenshots, which might work well for canvas controls? I don't have any framework names to suggest but apparently a few exist.
  29. ShakyJake

    IT/Software career thread: Invert binary trees for dollars.

    What is your application doing with these canvas objects? We're developing with Angular and our QA team is doing everything with Selenium. I know they're struggling, though, and I'm not sure how much progress they've made. Our dev team has been pretty much abandoned doing any unit testing in...
  30. ShakyJake

    Succession

    Just finished the season. Overall I greatly enjoyed it, but the finale was fucking stupid.
  31. ShakyJake

    The Dragon Prince

    Uhm, does this have some kind of weird-ass narration going on? It's like someone is reading the script.
  32. ShakyJake

    Pets

    I love animals, especially cats, but I have no desire to own any at this point. Knowing that they will eventually get sick, old, and die makes me nope out of that. I have some backyard squirrels I feed and I get enjoyment out of that. There's no real attachment since they all look alike so if...
  33. ShakyJake

    Disenchantment

    The King's son made me instantly think of Simpson's Ralph Wiggum. Sounds like the same voice actor. Don't care enough to look it up. I finished the series last night. Overall I enjoyed it, wasn't a huge commitment with 30 minute episodes. I won't be bummed if it doesn't return but will...
  34. ShakyJake

    Funny, Strange, Random Pics

    Holy shit, he forgot Larry, Daryl ,and Daryl:
  35. ShakyJake

    Upgrade (2018)

    I went ahead and bought this on Bluray. I had downloaded and watched a rip but since I enjoyed this so much I honestly felt guilty not supporting this great film.
  36. ShakyJake

    Preacher

    Yeah, SJW shit definitely slipped in with the MAGA-hat fellow standing with the Nazis. Other than that I enjoyed the finale.
  37. ShakyJake

    The Walking Dead

    He looks like Eugene with a beard.
  38. ShakyJake

    Kevin Smith Suffers Massive Heart Attack (Feb '18).

    Yeah, the challenge is keeping it off. He'll probably bounce back to some happy medium unless he goes full fatty again. It's really tough to keep starving yourself.
  39. ShakyJake

    Upgrade (2018)

    Probably, but would've been pointless to bother with it from a story standpoint. Anyway, I thought this was a pretty fun movie. I felt it was a combination of Six Million Dollar Man and Knight Rider. Loved the ending. If there is a sequel I'd rather just have it take place within this...
  40. ShakyJake

    Mission: Impossible - Fallout (2018)

    I was this close to yelling, "Fake news!". And then it actually turned out to be fake!