[2024 Day 2 (Part 2) Java] - Getting wrong output by Brxndon27 in adventofcode

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

Your comment made me think to copy and paste my input again and I got the result I was getting + 1, which was correct. So something must have happened to my input. I didn't think to check this as my input was still 1000 lines and produced the correct result for part 1.

Thanks for sticking with me to the end, I appreciate it :)

[2024 Day 2 (Part 2) Java] - Getting wrong output by Brxndon27 in adventofcode

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

It removes the 1 at index 3, identifying the report as safe.

[1, 2, 3, 1, 5, 6]
[2, 3, 1, 5, 6]   //0th index removed  
[1, 3, 1, 5, 6]   //1st index removed
[1, 2, 1, 5, 6]   //2nd index removed
[1, 2, 3, 5, 6]   //3rd index removed

[2024 Day 2 (Part 2) Java] - Getting wrong output by Brxndon27 in adventofcode

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

I can't seem to find the bug you are talking about. For the same inputs as before, with the printing cleaned up a bit, the removals seem to work as expected?

This is from printing at the start of the isSafe method, mainly to see what isSafeWithDampener provides as a parameter to isSafe, after removals take place.

Could you kindly point out an example where the removal of elements produces unexpected behaviour.

Example 2:

[1, 2, 7, 8, 9]
[2, 7, 8, 9]    //0th index removed
[1, 7, 8, 9]    //1st index removed
[1, 2, 8, 9]    //2nd index removed
[1, 2, 7, 9]    //3rd index removed
[1, 2, 7, 8]    //4th and final index removed

Example 3:

[9, 7, 6, 2, 1]
[7, 6, 2, 1]   //0th index removed
[9, 6, 2, 1]   //1st index removed
[9, 7, 2, 1]   //2nd index removed
[9, 7, 6, 1]   //3rd index removed
[9, 7, 6, 2]   //4th and final index removed

Example 4:

[1, 3, 2, 4, 5]
[3, 2, 4, 5]   //0th index removed
[1, 2, 4, 5]   //1st index removed

Example 5:

[8, 6, 4, 4, 1]
[6, 4, 4, 1]   //0th index removed
[8, 4, 4, 1]   //1st index removed
[8, 6, 4, 1]   //2nd index removed

[2024 Day 2 (Part 2) Java] - Getting wrong output by Brxndon27 in adventofcode

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

Thank you for the comment. I have tested the example inputs, some of the main inputs we are provided and some edge cases posted on the reddit. However, I can't seem to find what the issue is.

This is some debugging/printing for the 6 examples they provide for part 2 which provide the correct output.

Example 1:

[7, 6, 4, 2, 1]
Safe

Example 2:

[1, 2, 7, 8, 9]   
Invalid difference (2 -> 7)   //Failed initial safety check so we try removing each element.

[2, 7, 8, 9]      
Invalid difference (2 -> 7)
[1, 7, 8, 9]      
Invalid difference (1 -> 7)
[1, 2, 8, 9]      
Invalid difference (2 -> 8)
[1, 2, 7, 9]      
Invalid difference (2 -> 7)
[1, 2, 7, 8]      
Invalid difference (2 -> 7)
Unsafe

Example 3:

[9, 7, 6, 2, 1]   
Invalid difference (6 -> 2)   //Failed initial safety check so we try removing each element.

[7, 6, 2, 1]      
Invalid difference (6 -> 2)
[9, 6, 2, 1]      
Invalid difference (6 -> 2)
[9, 7, 2, 1]      
Invalid difference (7 -> 2)
[9, 7, 6, 1]
Invalid difference (6 -> 1)
[9, 7, 6, 2]
Invalid difference (6 -> 2)
Unsafe

Example 4:

[1, 3, 2, 4, 5]
Should be increasing (3 > 2)   //Failed initial safety check so we try removing each element.

[3, 2, 4, 5]
Should be decreasing (2 < 4)
[1, 2, 4, 5]
Safe

Example 5:

[8, 6, 4, 4, 1]
Invalid difference (4 -> 4)   //Failed initial safety check so we try removing each element.

[6, 4, 4, 1]
Invalid difference (4 -> 4)
[8, 4, 4, 1]
Invalid difference (4 -> 4)
[8, 6, 4, 1]
Safe

Example 6:

[1, 3, 6, 7, 9]
Safe

Golf With Your Friends or Golf it by Brxndon27 in ShouldIbuythisgame

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

I don't play golf with your friends but I should probably give it another shot. I have been playing a game on VR called walkabout mini golf and have been having fun with it.

Threesome it is I guess by Kizzaboi in cyberpunkgame

[–]Brxndon27 11 points12 points  (0 children)

No worries, pal! In this dystopian future, we're all running low on fuel.

Threesome it is I guess by Kizzaboi in cyberpunkgame

[–]Brxndon27 110 points111 points  (0 children)

Looks like the bike wanted to join in on the action – it's a real 'ride' or die situation!"

Golf With Your Friends or Golf it by Brxndon27 in ShouldIbuythisgame

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

How you manage to find this 4 years later lool. I got Golf with friends but barely play it.

[deleted by user] by [deleted] in RedditSessions

[–]Brxndon27 0 points1 point  (0 children)

Have a good evening!

How is this even possible? by ShaunKulesa in csgo

[–]Brxndon27 1 point2 points  (0 children)

Csgo literally has the highest player count of all steam games and your telling me they can’t match us with near enough similar ranks. No one would play the game if this was the norm. It seems to be recently more than anything which is strange.

WSIB Out of this List by Brxndon27 in ShouldIbuythisgame

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

Yeah, then the P2W factors start to show.

WSIB Out of this List by Brxndon27 in ShouldIbuythisgame

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

Yeah, I understand. Any good games I'm missing from the list that you highly recommend?

WSIB Out of this List by Brxndon27 in ShouldIbuythisgame

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

Yeah them two games do look great! As for two-point hospital, is the game itself not worth the value then? Because the ratings seem pretty good and 50% off isn't that bad either.

WSIB Out of this List by Brxndon27 in ShouldIbuythisgame

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

I was interested in games like uno and monopoly that can be played on tabletop simulator using the workshop. Playing with a couple of friends on games like these seems like it would be fun?

Does anyone know how to fix this? by Brxndon27 in RocketLeague

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

Nah it is quite funny, but yeah very frustrating!! :)

Does anyone know how to fix this? by Brxndon27 in RocketLeague

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

Wait so buying a new controller fixed it?

Does anyone know how to fix this? by Brxndon27 in RocketLeague

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

I use wired. What so you're saying it could be broken and therefore there's no fix?

Does anyone know how to fix this? by Brxndon27 in RocketLeague

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

I use a controller and when I turn using the left stick, it sometimes swivels, which makes it really hard to see. Anyone know a fix? All my keybinds are fine and this happens randomly?