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
| import { useEffect, useState } from 'react'; | |
| import { useLazyQuery, useMutation, useQuery } from '@apollo/client'; | |
| import { useParams } from 'react-router-dom'; | |
| import { | |
| Alert, | |
| Card, | |
| Button, | |
| Flex, | |
| Form, | |
| Select, |
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
| let findVisibleTrees = (treeHeights) => { | |
| let inputRows = treeHeights | |
| .trim() | |
| .split('\n') | |
| .map(row => row.split('')); | |
| let grid = inputRows.map(row => { | |
| return row.map(height => parseInt(height)); | |
| }); |
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
| SHOW_ONLY_MODELS="ps5 console" | |
| SHOW_ONLY_SERIES="sonyps5c" | |
| STORES="amazon, bestbuy, newegg, gamestop, target, walmart, playstation" |