About 338,000 results
Open links in new tab
  1. How to find the Longest Snake in a Matrix - Stack Overflow

    Dec 30, 2023 · A valid snake would look like this: This snake is 19 cells long. The snake doesn't need to start on the corners. In some cases, it results in a longer snake: This snake is 20 cells …

  2. Longest Snake Sequence in a list of numbers - Stack Overflow

    Jun 9, 2015 · A snake sequence is made up of adjacent numbers such that for each number, the number on the right or left is +1 or -1 of it's value. If multiple snake sequences of maximum …

  3. python - Longest Snake Sequence in an Array - Stack Overflow

    Jun 8, 2015 · A snake sequence is made up of adjacent numbers such that for each number, the number on the right or left is +1 or -1 of it's value. If multiple snake sequences of maximum …

  4. Finding snake sequence in XY graph - Java - Stack Overflow

    Aug 2, 2014 · I am working on a problem to try to find what is called a Snake Sequence in a typical XY graph (aka grid). A Snake sequence is defined as a sequence of numbers where …

  5. java - Longest Snake Sequence - Stack Overflow

    Jun 12, 2015 · A snake sequence is made up of adjacent numbers such that for each number, the number on the right or left is +1 or -1 of it's value. If multiple snake sequences of maximum …

  6. Snake game in Python using Turtle graphics - Stack Overflow

    May 5, 2015 · So I've been working on a few games in Python (battleships, tic-tac-toe etc.) and this week's project is Snake. I've got a basic set-up going; the snake can move and eats the …

  7. Find The Longest Word Sequence in Word Snake Game Problems

    Aug 14, 2021 · A snake is an ordered list of phrases from S such that, except for the first phrase, the first word in the phrase matches the last word in the previous phrase. Also, the phrase i …

  8. Eugene Myers' Diff Algorithm: Finding the Longest Common …

    Apr 15, 2015 · First of all we need to find the middle snake. If you follow the algorithm to find the middle snake on page 11, you will see that the length of the shortest edit script is 2 and (x,y) = …

  9. Given a matrix of ints, find the longest consecutive snake of ...

    Mar 21, 2015 · Given a matrix of ints, find the longest consecutive snake of incrementing by 1 numbers [duplicate] Asked 9 years, 11 months ago Modified 9 years, 11 months ago Viewed …

  10. How to return the longest path in matrix using recursion in JAVA

    Jan 14, 2019 · I am trying to solve this problem with recursion. The problem is: for a two dimensional array of positive integers how can I return the longest path (steps), so that the …