A) About the first line, you are right I could simply remove that line.
B) In an interview, I would probably follow the problem asked without any modification. In that case, I choose to return every fixed point on the given array but you are right I should just respect the problem.
C) I will update the post with your proposition
Once again thank you I really appreciate your comment 😃
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First, thank you for your critique! 😃
A) About the first line, you are right I could simply remove that line.
B) In an interview, I would probably follow the problem asked without any modification. In that case, I choose to return every fixed point on the given array but you are right I should just respect the problem.
C) I will update the post with your proposition
Once again thank you I really appreciate your comment 😃