Code Monkey home page Code Monkey logo

advent-of-code's Issues

day 3 code does not run 'string index out of range'

When I run it it gives the following errors:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<timed exec> in <module>

[<ipython-input-203-bb6385a68880>](https://localhost:8080/#) in solve(input_data)
     13 
     14     # get the locations of symbols, e.g. * ?, but not .
---> 15     symbol_locations = engine.get_symbol_locations()
     16     for point in symbol_locations:
     17         all_range_locations_for_symbol = set()

3 frames
[<ipython-input-199-e169fb26e460>](https://localhost:8080/#) in value_at_point(self, point)
    115     def value_at_point(self, point: Point):
    116         """ The value at this point """
--> 117         return self._array[point.y][point.x]
    118 
    119     def set_value_at_point(self, point: Point, value):

IndexError: string index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.