from collections import deque
class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
# Return 0 if the grid is empty.
if not grid:
return 0
This file has been truncated, but you can view the full file.
This file contains 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
{"!EXCLAMATION-POINT": [["EH", "K", "S", "K"], ["L", "AH"], ["M", "EY"], ["SH", "AH", "N"], ["P", "OY", "N", "T"]], "\"CLOSE-QUOTE": [["K", "L", "OW", "Z", "K"], ["W", "OW", "T"]], "\"DOUBLE-QUOTE": [["D", "AH"], ["B", "AH", "L", "K"], ["W", "OW", "T"]], "\"END-OF-QUOTE": [["EH", "N"], ["D", "AH", "V", "K"], ["W", "OW", "T"]], "\"END-QUOTE": [["EH", "N", "D", "K"], ["W", "OW", "T"]], "\"IN-QUOTES": [["IH", "N", "K"], ["W", "OW", "T", "S"]], "\"QUOTE": [["K", "W", "OW", "T"]], "\"UNQUOTE": [["AH", "N", "K"], ["W", "OW", "T"]], "#SHARP-SIGN": [["SH", "AA", "R", "P"], ["S", "AY", "N"]], "%PERCENT": [["P", "ER"], ["S", "EH", "N", "T"]], "&ERSAND": [["AE", "M"], ["P", "ER"], ["S", "AE", "N", "D"]], "'APOSTROPHE": [["AH"], ["P", "AA", "S", "T"], ["R", "AH"], ["F", "IY"]], "'BOUT": [["B", "AW", "T"]], "'CAUSE": [["K", "AH", "Z"]], "'COURSE": [["K", "AO", "R", "S"]], "'CUSE": [["K", "Y", "UW", "Z"]], "'EM": [["AH", "M"]], "'END-INNER-QUOTE": [["EH", "N"], ["D", "IH"], ["N", "ER", "K"], ["W", "OW", "T"]], "'END-QUO |
This file contains 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
const questions = [ | |
{ | |
type: 'text', | |
you: { | |
question: 'What is your name?', | |
id: 'name' | |
} | |
// autofill with name from google account | |
}, | |
{ |
A Pen by Hakan Alpay on CodePen.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
class Dropbox { | |
public void uploadFiles(files, credentials) { | |
UserAuth userAuth = new UserAuth(); | |
validity = userAuth.isValid(credentials); | |
if (validity) { | |
for file in files { | |
Filesystem filesystem = new Filesystem(); | |
cached = filesystem.uploadFile(file); |
This file contains 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
<script Language="JavaScript"> | |
count = 0; | |
numberCorrect = 0; | |
questin = 'What is the capital of Massachusetts?-Boston,What is the capital of California?-Sacramento,What is the capital of Oregon-Salem,What is the capital of Texas-Austin,What is the capital of Idaho?-Boise'; | |
quests = questin.split(","); | |
questionShuffle(quests); | |
answer = questin.split("-"); |
This file contains 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
#!/bin/sh | |
if [ "$1" = "-p" ]; then | |
# Hack to mimic GNU ldconfig s -p option, needed by ctypes, used by shapely | |
echo " libc.musl-x86_64.so.1 (libc6,x86-64) => /lib/libc.musl-x86_64.so.1" | |
exit 0 | |
fi | |
scan_dirs() { | |
scanelf -qS "$@" | while read SONAME FILE; do | |
TARGET="${FILE##*/}" | |
LINK="${FILE%/*}/$SONAME" |
This file contains 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
input,textarea,select,button,option,html,body{font-family:Georgia,serif;font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}input,textarea,select,button,option,html,body{font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}th{font-weight:600}td,th{border-bottom:1.08px solid #595959;overflow:auto;padding:14.85px 18px;text-align:left;vertical-align:top}thead th{border-bottom-width:2.16px;padding-bottom:6.3px}table{display:table;overflow-x:auto}input,textarea,select,button,option,html,body{font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}fieldset{display:flex;flex-direction:row;flex-wrap:wrap}fieldset legend{margin:18px 0}input,textarea,select,button{border-radius:3.6px;display:inline-block;padding:9.9px}input+label,input+input[type="checkbox"],input+input[type="radio"],textarea+label,textarea+input[type="checkbox"],textarea+input[type="radio"],select+label,select+input[type="checkbox"],select+input[type |
NewerOlder