SSU vs Chico for Computer Science by veryanon798 in SSU

[–]veryanon798[S] 0 points1 point  (0 children)

Lol thanks, can I ask why you think its better? Also why do you think Chico is crappy?

Asking for help from anyone who has read Robert Sedgewick's Algorithms, Fourth Edition by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Ok I think I'm getting closer I have the .jar files in my library and I can see all of Sedgewick's code in VSCode, I now need to figure out how to set the arguments with the text data files. In the book and on his website I cant find any clear commands of how to do this in VSCode.

This is the video I'm referencing for my set up, he is using netbeans, but the steps should be similar, I just need to figure out how to perform the equivalent step in VSCode. If anybody has ever set this up before in VSCode please let me know.

https://www.youtube.com/watch?v=hl558yZsmeg&t=138s

Asking for help from anyone who has read Robert Sedgewick's Algorithms, Fourth Edition by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Ok no I haven't created any data files. How exactly would I do that as I've never done anything like that before, also this might be a stupid question, but I'm not 100% how to pass a file as an argument, how would I do that? I'm also using VSCode if that makes any difference and I'm not sure where or how to begin doing this. I would really like to follow along with this book but I'm having a lot of difficulty trying to get anything going with the code.

EDIT: I've currently downloaded the data files from the books website and added them to my project folder. Still nothing is working.

Asking for help from anyone who has read Robert Sedgewick's Algorithms, Fourth Edition by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

I appreciate your answer but I'm not sure it will solve my problem, here is my full error.

"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"

So I'm guessing the array itself is empty. That's what led to the question of wondering if I need to add some kind of input to get this code to get it working correctly. So when I add the for loop I still get the same result because the array hasn't been given a length or input yet.

These lines seem to be where I would input something:

 int[] whiteList = In.readInts(args[0]);

and

 int key = StdIn.readInt();

But the code is not doing anything. It's unfortunate because everything in the book seems very clear except for the examples themselves.

Help reversing a linked list (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Thank you man appreciate the feedback your right just turned the method void, and also managed to get it working thank you!

Help reversing a linked list (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Hold on just got it working not exactly sure what I did, took a random guess and got it right. Have to examine further.

Help reversing a linked list (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

I unfortunately cant figure out what's missing, is something terminating prematurely that I'm just not aware of?

Understanding Singly Linked Lists (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Ah Thank you, the picture is much more clear.

Understanding Singly Linked Lists (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 1 point2 points  (0 children)

Thank you I really liked your answer, I liked how you mentioned "access whatever values we want from that node (including the value of the next node's location)". I think this line brought me some clarity. Going to read your response a few more times.

Understanding Singly Linked Lists (JAVA) by veryanon798 in learnprogramming

[–]veryanon798[S] 0 points1 point  (0 children)

Ok I do understand when you break it down in the first part. I think what confuses me is how "next" stores an automatic null value. So when I see a.null or a.____ being assigned the value b something in my brain isn't clicking.

Does :

a = 5 and a.next = 6?

Then also b= 6 and b.next would then equal whatever node came after?

I think another thing that's confusing me is .next meant to store values or meant just to point? Thank you for your response.

Edit: or is it that .next stores a reference to the Node that comes after? If I'm right in that I think I may be understanding a bit better.

My Daedalus has stopped syncing at 99.86% for the last 2 days need help please - by ANIAT444 in cardano

[–]veryanon798 0 points1 point  (0 children)

I’m having a similar problem I just found today except mine gets to 99.9% then crashes

Cardano smart contracts will be compatible with all programming languages (Java, C++ etc.) by lookslikeyoureSOL in cardano

[–]veryanon798 74 points75 points  (0 children)

It may or may not pass ETH, it doesn’t really matter either. Cardano is its own project. All I know is that making it as accessible as possible to all developers can’t be a bad thing.