Skip to content
Advertisement

Tag: nodes

How do you remove the first Node in a Linked List?

Sup guys so I’m going over a few of my methods in my Linked List class and I’m getting a logical error when removing a node from a linked list. I was working on my removeFirst() method when I then encountered a error in my removeLast() method as well. The problem is that both remove the last item in the

Java Maze shortest path 2d int array

I am currently stuck on a project. My aim is to use Dijkstra’s algorithm. I understand that I start at point (0,0) I look at the two nodes next to the start point and then I move to the smallest first and look at the surrounding nodes. My maze is random but to make it easy to start lets say

Advertisement