This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // You will be given a 2-dimensional grid of letters. Write a method to find the length of the longest path of consecutive | |
| // letters, starting at 'A'. Paths can step from one letter in the grid to any adjacent letter (horizontally, vertically, | |
| // or diagonally). | |
| // For example, in the following grid, there are several paths from 'A' to 'D', but none from 'A' to 'E': | |
| function abcLongestPath(matrix) { | |
| let maxPath = 0; | |
| const initPos = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "json": { | |
| "indent_size": 2, | |
| "brace_style": "collapse", | |
| "keep_array_indentation": true | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: '{AWS_KEY}', | |
| secretAccessKey: '{AWS_SECRET}', | |
| region: '{SNS_REGION}' | |
| }); | |
| var sns = new AWS.SNS(); |