#Advent of Code 2021 Day 5 part 1

1 messages · Page 1 of 1 (latest)

rigid nymph
#

Using Advent of Code to learn kotlin and stuck in day five.
Link to question: https://adventofcode.com/2021/day/5
I DON'T WANT IMMEDIATE ANSWERS I WANT A HINT IN THE CORRECT DIRECTION
Code will be Submitted in different message due to length

vague oceanBOT
#

<@&1008423204219531294> please have a look, thanks.

vague oceanBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

rigid nymph
vague oceanBOT
hidden narwhal
#

I DON'T WANT IMMEDIATE ANSWERS I WANT A HINT IN THE CORRECT DIRECTION
we dont do spoonfeeding anyways

rigid nymph
#

function explanations:
Main - gets the input and sort it
configureHighestValues - Finds the biggest X and Y values
mapLinesTo2DArray - takes the lines and adds 1 for each position if it's on the line
findNumberOfPoints - takes the mapped array and counts the point with one or more lines on it

radiant cobalt
#

and whats ur issue?

rigid nymph
#

output is wrong

#

I got 2001

#

says it's less than the real answer

#

i figured it might be in the function mapLinesTo2DArray but couldnt find anything wrong