Keep a shared nums holding 7, 2, 5, 10, and 8. Keep a shared limit of 0. Keep a shared need of 0. Keep a shared used of 0. Keep a shared parts of 0.
To weigh from spot (a whole number). If spot is more than 4, set need to parts, return. The value is item spot of nums. The filled is used plus value. If filled is at most limit, set used to filled. If filled is at most limit, weigh from spot plus 1, return. Add 1 to parts. Set used to value. Weigh from spot plus 1.
The last is the last position of nums. The allowed is 2. The low is 0. The total is 0.
For every spot from 0 to last.
The value is item spot of nums. Add value to total. If value is more than low, set low to value.
The high is total.
Repeat while low is less than high.
The middle is (low plus high) divided by 2. Set limit to middle. Set need to 0. Set used to 0. Set parts to 1. Weigh from 0. If need is at most allowed, set high to middle, otherwise set low to middle plus 1.
Show low.
The count is 15.
For every number from 1 to count.
If number modulo 15 is 0, show "FizzBuzz". If number modulo 15 is not 0 and number modulo 3 is 0, show "Fizz". If number modulo 15 is not 0 and number modulo 5 is 0, show "Buzz". If number modulo 15 is not 0 and number modulo 3 is not 0 and number modulo 5 is not 0, show format whole number number as text.
The nums is a list of 1, 2, 3, and 4. The last is the last position of nums. The run is 0. The total is 0.
For every spot from 2 to last.
The first is item (spot minus 1) of nums minus item (spot minus 2) of nums. The second is item spot of nums minus item (spot minus 1) of nums. If first is second, add 1 to run, otherwise set run to 0. Add run to total.
Show total.
The nums is a list of 3, 2, and 1. The first is -2000000000. The second is -2000000000. The third is -2000000000.
For each value in nums.
If value is more than first, set third to second, set second to first, set first to value. If value is less than first and value is more than second, set third to second, set second to value. If value is less than second and value is more than third, set third to value.
If third is -2000000000, show first, otherwise show third.
Keep a shared leftword as empty text. Place "11" into leftword. Keep a shared rightword as empty text. Place "123" into rightword. Keep a shared result as empty text. Keep a shared carry of 0.
To combine from first (a whole number) with second (a whole number). If first is less than 0 and second is less than 0 and carry is 0, return. The left is 0. The right is 0. If first is at least 0, set left to the digit value of character first of leftword. If second is at least 0, set right to the digit value of character second of rightword. The sum is left plus right plus carry. The digit is sum modulo 10. Set carry to sum divided by 10. Combine from first minus 1 with second minus 1. Place character digit of "0123456789" into result.
The firstlast is the last position of leftword. The secondlast is the last position of rightword. Combine from firstlast with secondlast. Show result.
Keep a shared dp as an empty list of whole numbers. Keep a shared goal of 0.
For every spot from 0 to 11.
Place 0 into dp.
Set item 0 of dp to 1.
To fill from spot (a whole number) with value (a whole number). If spot is less than value, return. The previous is item (spot minus value) of dp. If previous is 1, set item spot of dp to 1. Fill from spot minus 1 with value.
The nums is a list of 1, 5, 11, and 5. The total is 0. For each value in nums, add value to total. The half is total divided by 2. Set goal to half.
For each value in nums.
Fill from goal with value.
The parity is total modulo 2. The seat is goal. The found is item seat of dp. If parity is 1, set found to 0. If found is 1, show true, otherwise show false.
Keep a shared heights holding 1, 2, 2, 3, 5, 3, 2, 3, 4, 4, 2, 4, 5, 3, 1, 6, 7, 1, 4, 5, 5, 1, 1, 2, and 4. Keep a shared pacific as an empty list of whole numbers. Keep a shared atlantic as an empty list of whole numbers.
For every spot from 0 to 24.
Place 0 into pacific. Place 0 into atlantic.
To climb from node (a whole number). If item node of pacific is 1, return. Set item node of pacific to 1. The row is node divided by 5. The column is node modulo 5. The height is item node of heights. If row is more than 0 and item (node minus 5) of heights is at least height, climb from node minus 5. If row is less than 4 and item (node plus 5) of heights is at least height, climb from node plus 5. If column is more than 0 and item (node minus 1) of heights is at least height, climb from node minus 1. If column is less than 4 and item (node plus 1) of heights is at least height, climb from node plus 1.
To wave from node (a whole number). If item node of atlantic is 1, return. Set item node of atlantic to 1. The row is node divided by 5. The column is node modulo 5. The height is item node of heights. If row is more than 0 and item (node minus 5) of heights is at least height, wave from node minus 5. If row is less than 4 and item (node plus 5) of heights is at least height, wave from node plus 5. If column is more than 0 and item (node minus 1) of heights is at least height, wave from node minus 1. If column is less than 4 and item (node plus 1) of heights is at least height, wave from node plus 1.
For every spot from 0 to 4.
Climb from spot. Wave from 20 plus spot.
For every spot from 0 to 4.
Climb from spot times 5. Wave from spot times 5 plus 4.
For every spot from 0 to 24.
The row is spot divided by 5. The column is spot modulo 5.
If item spot of pacific is 1 and item spot of atlantic is 1.
The line is format whole number row as text. Place "," into line. Place format whole number column as text into line. Show line.
The board is a list of 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, and 1. The last is the last position of board. The ships is 0.
For every spot from 0 to last.
The row is spot divided by 4. The column is spot modulo 4. The top is 0. If row is 0, set top to 1. If row is more than 0 and item (spot minus 4) of board is 0, set top to 1. The left is 0. If column is 0, set left to 1. If column is more than 0 and item (spot minus 1) of board is 0, set left to 1. If item spot of board is 1 and top is 1 and left is 1, add 1 to ships.
Show ships.
Keep a shared password as empty text. Keep a shared last of 0. Keep a shared run of 0. Keep a shared runs as an empty list of whole numbers. Keep a shared deletes of 0. Keep a shared wanted of 0. Keep a shared budget of 1. Keep a shared replacements of 0.
To measure from start (a whole number) with spot (a whole number). If spot is more than last, set run to spot minus start, return. The firstsymbol is the slice of password from start to start plus 1. The nextsymbol is the slice of password from spot to spot plus 1. If firstsymbol is nextsymbol, measure from start with spot plus 1, return. Set run to spot minus start.
To filter from spot (a whole number). The final is the last position of runs. If spot is more than final, return. The length is item spot of runs. The rest is length modulo 3. The triple is length divided by 3. The batch is deletes divided by budget. If triple is less than batch, set batch to triple. If rest is not wanted, set batch to 0. If batch is more than 0, subtract batch times budget from deletes, Set item spot of runs to length minus batch times budget. Filter from spot plus 1.
To score. Set replacements to 0.
For each part in runs.
The triples is part divided by 3. Add triples to replacements.
Place "a" into password. Set last to the last position of password. The size is last plus 1. The index is 0.
Repeat while index is at most last.
Set run to 0. Measure from index with index. Place run into runs. Add run to index.
The haslower is 0. The hasupper is 0. The hasdigit is 0.
For every spot from 0 to last.
The symbol is the slice of password from spot to spot plus 1. The code is character 0 of symbol. The lowlower is character 0 of "a". The highlower is character 0 of "z". The lowupper is character 0 of "A". The highupper is character 0 of "Z". The lowdigit is character 0 of "0". The highdigit is character 0 of "9". If code is at least lowlower and code is at most highlower, set haslower to 1. If code is at least lowupper and code is at most highupper, set hasupper to 1. If code is at least lowdigit and code is at most highdigit, set hasdigit to 1.
The missing is 3 minus haslower minus hasupper minus hasdigit. The answer is 0.
If size is less than 6.
Set answer to 6 minus size. If missing is more than answer, set answer to missing.
If size is at least 6 and size is at most 20.
Score. The extra is missing. If replacements is more than extra, set extra to replacements. Set answer to extra.
If size is more than 20.
Set deletes to size minus 20. Set wanted to 0. Set budget to 1. Filter from 0. Set wanted to 1. Set budget to 2. Filter from 0. Set wanted to 2. Set budget to 3. Filter from 0. Score. The extra is missing. If replacements is more than extra, set extra to replacements. Set answer to size minus 20 plus extra.
Show answer.
The nums is a list of 3, 10, 5, 25, 2, and 8. The last is the last position of nums. The best is 0.
For every left from 0 to last.
For every right from left plus 1 to last.
The mixed is exclusive or of item left of nums and item right of nums. If mixed is more than best, set best to mixed.
Show best.
Keep a shared alphabet as empty text. Place "abcdefghijklmnopqrstuvwxyz" into alphabet. Keep a shared target as empty text. Keep a shared found of 0. Keep a shared result as empty text.
To search from spot (a whole number). If spot is more than 25, return. The piece is the slice of alphabet from spot to spot plus 1. If piece is target, set found to spot, return. Search from spot plus 1.
To emit from digit (a whole number) with times (a whole number). If times is 0, return. Place format whole number digit as text into result. Emit from digit with times minus 1.
The source is "owoztneoer". The counts is a list of 26 zeros. The last is the last position of source.
For every spot from 0 to last.
The symbol is the slice of source from spot to spot plus 1. Set target to symbol. Set found to -1. Search from 0. The letter is found. Increase item letter of counts by 1.
The zcount is item 25 of counts. The wcount is item 22 of counts. The ucount is item 20 of counts. The xcount is item 23 of counts. The gcount is item 6 of counts. The ocount is item 14 of counts. The hcount is item 7 of counts. The fcount is item 5 of counts. The scount is item 18 of counts. The icount is item 8 of counts.
The countzero is zcount. The counttwo is wcount. The countfour is ucount. The countsix is xcount. The counteight is gcount. The countone is ocount minus countzero minus counttwo minus countfour. The countthree is hcount minus counteight. The countfive is fcount minus countfour. The countseven is scount minus countsix. The countnine is icount minus countfive minus countsix minus counteight.
Emit from 0 with countzero. Emit from 1 with countone. Emit from 2 with counttwo. Emit from 3 with countthree. Emit from 4 with countfour. Emit from 5 with countfive. Emit from 6 with countsix. Emit from 7 with countseven. Emit from 8 with counteight. Emit from 9 with countnine. Show result.
The word is "ABAB". The limit is 2. Keep a shared ordered as empty text. Keep a shared streak of 0. Keep a shared bestrun of 0.
To score from spot (a whole number) with last (a whole number). If spot is more than last, return. If character spot of ordered is character (spot minus 1) of ordered, add 1 to streak. If character spot of ordered is not character (spot minus 1) of ordered, set streak to 1. If streak is more than bestrun, set bestrun to streak. Score from spot plus 1 with last.
The last is the last position of word. The best is 1.
For every start from 0 to last.
For every finish from start to last.
The endpoint is finish plus 1. The piece is the slice of word from start to endpoint. Set ordered to sort characters of piece. The lastletter is the last position of ordered. Set streak to 1. Set bestrun to 1. Score from 1 with lastletter. The span is finish minus start plus 1. If span minus bestrun is at most limit and span is more than best, set best to span.
Show best.
Keep a shared grid holding 0, 1, 1, and 0. Keep a shared width of 2. Keep a shared buildsize of 0. Keep a shared uniform of 0. Keep a shared probevalue of 0.
To probe from row (a whole number) at column (a whole number) with spot (a whole number). The limit is buildsize times buildsize. If spot is at least limit, return. If uniform is 0, return. The down is spot divided by buildsize. The across is spot modulo buildsize. The actualrow is row plus down. The actualcolumn is column plus across. The cell is item (actualrow times width plus actualcolumn) of grid. If cell is not probevalue, set uniform to 0, return. Probe from row at column with spot plus 1.
Keep a shared nodesleaf as an empty list of whole numbers. Keep a shared nodesvalue as an empty list of whole numbers. Keep a shared firsts as an empty list of whole numbers. Keep a shared seconds as an empty list of whole numbers. Keep a shared thirds as an empty list of whole numbers. Keep a shared fourths as an empty list of whole numbers. Keep a shared made of 0. Keep a shared parents as an empty list of whole numbers.
To build from top (a whole number) at left (a whole number) with size (a whole number). Set buildsize to size. Set uniform to 1. Set probevalue to item (top times width plus left) of grid. Probe from top at left with 0. The slot is made. Add 1 to made. Place uniform into nodesleaf. Place probevalue into nodesvalue. Place -1 into firsts. Place -1 into seconds. Place -1 into thirds. Place -1 into fourths. If uniform is 0, set item slot of nodesvalue to 1. If uniform is 1, return. If size is 1, return. The half is size divided by 2. Place slot into parents. The right is left plus half. The down is top plus half. Build from top at left with half. The child is made minus 1. The depth is the last position of parents. The host is item depth of parents. Set item host of firsts to child. Remove the last item from parents. Place slot into parents. Build from top at right with half. The child is made minus 1. The depth is the last position of parents. The host is item depth of parents. Set item host of seconds to child. Remove the last item from parents. Place slot into parents. Build from down at left with half. The child is made minus 1. The depth is the last position of parents. The host is item depth of parents. Set item host of thirds to child. Remove the last item from parents. Place slot into parents. Build from down at right with half. The child is made minus 1. The depth is the last position of parents. The host is item depth of parents. Set item host of fourths to child. Remove the last item from parents.
Build from 0 at 0 with 2. The line is empty text. Place "[" into line.
For every spot from 0 to made minus 1.
If spot is more than 0, Place "," into line. Place "[" into line. Place format whole number item spot of nodesleaf as text into line. Place "," into line. Place format whole number item spot of nodesvalue as text into line. Place "]" into line.
Place "]" into line. Show line.
Keep a shared values holding 1, 3, 2, 4, 5, and 6. Keep a shared nodeparents holding -1, 0, 0, 0, 1, and 1. Keep a shared queue as an empty list of whole numbers. Place 0 into queue. Keep a shared count of 1. Keep a shared nextcount of 0.
To expand from node (a whole number) with candidate (a whole number). If candidate is more than 5, return. If item candidate of nodeparents is node, Place candidate into queue, add 1 to count, add 1 to nextcount. Expand from node with candidate plus 1.
The head is 0. The remaining is 1. The line is empty text.
Repeat while head is less than count.
The node is item head of queue. Add 1 to head. The piece is format whole number item node of values as text. If the length of line is more than 0, Place "," into line. Place piece into line. Expand from node with 0. Subtract 1 from remaining. If remaining is 0, Show line, set line to empty text, set remaining to nextcount, set nextcount to 0.
Keep a shared values holding 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. Keep a shared nexts holding 1, 2, 3, 4, 5, -1, 7, 8, 9, -1, 11, and -1. Keep a shared childs holding -1, -1, 6, -1, -1, -1, -1, 10, -1, -1, -1, and -1. Keep a shared stack as an empty list of whole numbers. Keep a shared cursor of 0.
To unwind from marker (a whole number). If marker is less than 0, return. The depth is the last position of stack. If depth is less than 0, set cursor to -1, return. Set cursor to item depth of stack. Remove the last item from stack.
The result is an empty list of whole numbers. Set cursor to 0.
Repeat while cursor is at least 0.
Place cursor into result. The spot is cursor. The kid is item spot of childs. The follow is item spot of nexts. If kid is at least 0 and follow is at least 0, Place follow into stack. If kid is at least 0, set cursor to kid. If kid is less than 0 and follow is at least 0, set cursor to follow. If kid is less than 0 and follow is less than 0, unwind from 0.
The line is empty text.
For each node in result.
If the length of line is more than 0, Place "," into line. Place format whole number item node of values as text into line.
Show line.
Keep a shared genes as an empty list of text. Place "AACCGGTA" into genes. Keep a shared firstgene as empty text. Keep a shared secondgene as empty text. Keep a shared apart of 0. Keep a shared seen as an empty list of whole numbers. Place 0 into seen. Keep a shared distance as an empty list of whole numbers. Place 0 into distance. Keep a shared queue as an empty list of whole numbers. Keep a shared count of 0.
To compare from spot (a whole number) with last (a whole number). If spot is more than last, return. If character spot of firstgene is not character spot of secondgene, add 1 to apart. Compare from spot plus 1 with last.
To expand from spot (a whole number) with candidate (a whole number). If candidate is more than 0, return. If item candidate of seen is 1, expand from spot with candidate plus 1, return. Set firstgene to item spot of genes. Set secondgene to item candidate of genes. Set apart to 0. Compare from 0 with 7. If apart is 1, set item candidate of seen to 1, set item candidate of distance to item spot of distance plus 1, Place candidate into queue, add 1 to count. Expand from spot with candidate plus 1.
The startgene is "AACCGGTT". The finishgene is "AACCGGTA". The answer is -1. If finishgene matches startgene, set answer to 0. Set count to 0.
For every spot from 0 to 0.
Set firstgene to a copy of startgene. Set secondgene to item spot of genes. Set apart to 0. Compare from 0 with 7. If apart is 1, set item spot of seen to 1, set item spot of distance to 1, Place spot into queue, add 1 to count.
The head is 0.
Repeat while head is less than count.
The spot is item head of queue. Add 1 to head. The gene is item spot of genes. The same is 0. If gene matches finishgene, set same to 1. If same is 1 and answer is -1, set answer to item spot of distance. Expand from spot with 0.
Show answer.
The sentence is "Hello, my name is John". The last is the last position of sentence. The count is 0. The inside is 0.
For every spot from 0 to last.
The symbol is character spot of sentence. If symbol is " ", set inside to 0. If symbol is not " " and inside is 0, add 1 to count, set inside to 1.
Show count.
Keep a shared starts holding 1, 2, 3, and 1. Keep a shared ends holding 2, 3, 4, and 3. Keep a shared keystart of 0. Keep a shared keyend of 0.
To shift from spot (a whole number) with marker (a whole number). If marker is less than 0, set item 0 of starts to keystart, set item 0 of ends to keyend, return. If item marker of ends is at most keyend, set item (spot plus 1) of starts to keystart, set item (spot plus 1) of ends to keyend, return. Set item (spot plus 1) of starts to item marker of starts. Set item (spot plus 1) of ends to item marker of ends. Shift from spot minus 1 with marker minus 1.
For every spot from 1 to 3.
Set keystart to item spot of starts. Set keyend to item spot of ends. Shift from spot minus 1 with spot minus 1.
The lastend is item 0 of ends. The removals is 0.
For every spot from 1 to 3.
If item spot of starts is at least lastend, set lastend to item spot of ends, otherwise add 1 to removals.
Show removals.
Keep a shared starts holding 3, 2, and 1. Keep a shared ends holding 4, 3, and 2. Keep a shared beststart of 0. Keep a shared bestj of 0.
To search from spot (a whole number) with candidate (a whole number). If candidate is more than 2, return. If item candidate of starts is at least item spot of ends and item candidate of starts is less than beststart, set beststart to item candidate of starts, set bestj to candidate. Search from spot with candidate plus 1.
The answers is an empty list of whole numbers.
For every spot from 0 to 2.
Set beststart to 1000000. Set bestj to -1. Search from spot with 0. Place bestj into answers.
The line is empty text.
For each answer in answers.
If the length of line is more than 0, Place "," into line. Place format whole number answer as text into line.
Show line.
Keep a shared values holding 10, 5, -3, 3, 2, 11, 3, -2, and 1. Keep a shared lefts holding 1, 3, -1, 6, -1, -1, -1, -1, and -1. Keep a shared rights holding 2, 4, 5, 7, 8, -1, -1, -1, and -1. Keep a shared target of 0. Keep a shared found of 0.
To probe from node (a whole number) with total (a whole number). If node is less than 0, return. The sum is total plus item node of values. If sum is target, add 1 to found. Probe from item node of lefts with sum. Probe from item node of rights with sum.
Set target to 8.
For every start from 0 to 8.
Probe from start with 0.
Show found.
The source is "cbaebabacd". The pattern is "abc". The target is sort characters of pattern. The size is 3. The laststart is 7. The answers is an empty list of whole numbers.
For every start from 0 to laststart.
The finish is start plus size. The piece is the slice of source from start to finish. The ordered is sort characters of piece. If ordered matches target, Place start into answers.
The line is empty text.
For each answer in answers.
If the length of line is more than 0, Place "," into line. Place format whole number answer as text into line.
Show line.
Keep a shared parts as an empty list of text.
For every number from 1 to 13.
The piece is format whole number number as text. Place piece into parts.
Keep a shared keytext as empty text.
To shift from spot (a whole number) with marker (a whole number). If spot is less than 0, set item 0 of parts to keytext, return. The other is item spot of parts. If keytext comes before other, set item (spot plus 1) of parts to other, shift from spot minus 1 with marker, return. Set item (spot plus 1) of parts to keytext.
For every spot from 1 to 12.
Set keytext to item spot of parts. Shift from spot minus 1 with 0.
The rank is 2. The position is rank minus 1. Show item position of parts.
The coins is 5. The remaining is coins. The rowcount is 0. The need is 1.
Repeat while remaining is at least need.
Subtract need from remaining. Add 1 to rowcount. Add 1 to need.
Show rowcount.
Keep a shared nums holding 4, 3, 2, 7, 8, 2, 3, and 1. Keep a shared tally of 0. Keep a shared earlierfound of 0. Keep a shared origin of 0.
To tally from spot (a whole number) with value (a whole number). If spot is more than 7, return. If item spot of nums is value, add 1 to tally. Tally from spot plus 1 with value.
To earlier from spot (a whole number) with value (a whole number). If spot is at least origin, return. If item spot of nums is value, set earlierfound to 1, return. Earlier from spot plus 1 with value.
The answers is an empty list of whole numbers.
For every spot from 0 to 7.
The value is item spot of nums. Set tally to 0. Set origin to spot. Tally from 0 with value. If tally is more than 1, set earlierfound to 0. If tally is more than 1, earlier from 0 with value. If tally is more than 1 and earlierfound is 0, Place value into answers.
Sort answers. The line is empty text.
For each answer in answers.
If the length of line is more than 0, Place "," into line. Place format whole number answer as text into line.
Show line.
Keep a shared chars holding "a", "a", "b", "b", "c", "c", and "c". Keep a shared symbol as empty text. Keep a shared run of 0.
To count from spot (a whole number) with next (a whole number). If next is more than 6, return. If item next of chars matches symbol, add 1 to run, count from spot with next plus 1.
The result is empty text. The spot is 0.
Repeat while spot is at most 6.
Set symbol to item spot of chars. Set run to 1. Count from spot with spot plus 1. Place symbol into result. If run is more than 1, Place format whole number run as text into result. Add run to spot.
The lastresult is the last position of result. The size is lastresult plus 1. Show size.
The firstdigits is a list of 7, 2, 4, and 3. The seconddigits is a list of 5, 6, and 4. The first is 0.
For each digit in firstdigits.
Set first to first times 10 plus digit.
The second is 0.
For each digit in seconddigits.
Set second to second times 10 plus digit.
The total is first plus second. The digits is an empty list of whole numbers.
Repeat while total is more than 0.
The digit is total modulo 10. Place digit into digits. Set total to total divided by 10.
The last is the last position of digits. The line is empty text.
For every step from 0 to last.
The spot is last minus step. If the length of line is more than 0, Place "," into line. Place format whole number item spot of digits as text into line.
Show line.
Keep a shared nums holding 2, 4, 6, 8, and 10. Keep a shared powers holding 1, 2, 4, 8, and 16. Keep a shared chosen holding 0, 0, 0, 0, and 0. Keep a shared chosenlen of 0. Keep a shared gap of 0. Keep a shared good of 0. Keep a shared total of 0.
To collect from mask (a whole number) with spot (a whole number). If spot is more than 4, return. The flag is bitwise and of mask and item spot of powers. If flag is more than 0, The here is chosenlen, set item here of chosen to item spot of nums, add 1 to chosenlen. Collect from mask with spot plus 1.
To verify from spot (a whole number) with last (a whole number). If spot is more than last, return. The gapnow is item spot of chosen minus item (spot minus 1) of chosen. If gapnow is not gap, set good to 0. Verify from spot plus 1 with last.
To evaluate from mask (a whole number). Set chosenlen to 0. Collect from mask with 0. If chosenlen is at least 3, set gap to item 1 of chosen minus item 0 of chosen. If chosenlen is at least 3, set good to 1. If chosenlen is at least 3, verify from 2 with chosenlen minus 1. If chosenlen is at least 3 and good is 1, add 1 to total.
For every mask from 1 to 31.
Evaluate from mask.
Show total.
Keep a shared xs holding 0, 1, and 2. Keep a shared ys holding 0, 0, and 0. Keep a shared dist of 0. Keep a shared pairdistance of 0. Keep a shared matches of 0. Keep a shared total of 0.
To measure from first (a whole number) with second (a whole number). The dx is item first of xs minus item second of xs. The dy is item first of ys minus item second of ys. Set dist to dx times dx plus dy times dy.
To scan from anchor (a whole number) at other (a whole number) with marker (a whole number). If marker is more than 2, return. If marker is anchor, scan from anchor at other with marker plus 1, return. If marker is other, scan from anchor at other with marker plus 1, return. Measure from anchor with marker. The d2 is dist. If d2 is pairdistance, add 1 to matches. Scan from anchor at other with marker plus 1.
To prepare from anchor (a whole number) with other (a whole number). If other is more than 2, return. If other is anchor, prepare from anchor with other plus 1, return. Measure from anchor with other. Set pairdistance to dist. Set matches to 0. Scan from anchor at other with 0. Add matches to total. Prepare from anchor with other plus 1.
For every anchor from 0 to 2.
Prepare from anchor with 0.
Show total.
Keep a shared nums holding 4, 3, 2, 7, 8, 2, 3, and 1. Keep a shared tally of 0.
To seek from spot (a whole number) with value (a whole number). If spot is more than 7, return. If item spot of nums is value, add 1 to tally. Seek from spot plus 1 with value.
The answers is an empty list of whole numbers.
For every value from 1 to 8.
Set tally to 0. Seek from 0 with value. If tally is 0, Place value into answers.
The line is empty text.
For each answer in answers.
If the length of line is more than 0, Place "," into line. Place format whole number answer as text into line.
Show line.
Keep a shared values holding 5, 3, 6, 2, 4, and 7. Keep a shared lefts holding 1, 3, -1, -1, -1, and -1. Keep a shared rights holding 2, 4, 5, -1, -1, and -1. Keep a shared root of 0. Keep a shared side of 0. Keep a shared spot of 0. Keep a shared parent of 0. Keep a shared key of 0. Keep a shared pieces as an empty list of text. Keep a shared successor of 0. Keep a shared before of 0.
To attach from above (a whole number) with child (a whole number). If above is less than 0, set root to child, return. If side is 0, set item above of lefts to child, return. Set item above of rights to child.
To descend from node (a whole number) with candidate (a whole number). Set successor to candidate. Set before to node. If item candidate of lefts is less than 0, return. Descend from candidate with item candidate of lefts.
To prune from node (a whole number) with above (a whole number). The replacement is 0. If item node of lefts is less than 0, set replacement to item node of rights. If item node of lefts is less than 0, attach from above with replacement. If item node of lefts is less than 0, return. If item node of rights is less than 0, set replacement to item node of lefts. If item node of rights is less than 0, attach from above with replacement. If item node of rights is less than 0, return. Set successor to item node of rights. Set before to node. Descend from node with item node of rights. The heirspot is successor. Set item node of values to item heirspot of values. The heir is item heirspot of rights. If before is node, set item node of rights to heir, otherwise set item before of lefts to heir.
To record from node (a whole number). The piece is format whole number item node of values as text. Place piece into pieces.
Set key to 3. Set spot to 0. Set parent to -1. Set side to 0.
Repeat while spot is at least 0.
The here is spot. If item here of values is key, break. Set parent to spot. If key is less than item here of values, set side to 0, set spot to item here of lefts. If key is more than item here of values, set side to 1, set spot to item here of rights.
If spot is at least 0, prune from spot with parent. The queue is an empty list of whole numbers. Place root into queue. The head is 0. The count is 1.
Repeat while head is less than count.
The node is item head of queue. Add 1 to head. If node is less than 0, Place "null" into pieces. If node is at least 0, record from node. If node is at least 0, Place item node of lefts into queue. If node is at least 0, Place item node of rights into queue. If node is at least 0, add 2 to count.
Repeat while the last position of pieces is at least 0.
The tail is the last position of pieces. The tailpiece is item tail of pieces. If tailpiece matches "null", remove the last item from pieces, otherwise break.
The line is join pieces with ",". Show line.
The word is "tree". The sorted is sort characters of word. The last is the last position of sorted. The letters is an empty list of text. The counts is an empty list of whole numbers. The current is the slice of sorted from 0 to 1. Place current into letters. Place 0 into counts. The runspot is 0.
For every spot from 0 to last.
The piece is the slice of sorted from spot to spot plus 1. If piece matches current, set item runspot of counts to item runspot of counts plus 1. If piece does not match current, add 1 to runspot, set current to piece, Place piece into letters, Place 1 into counts.
The lastrun is the last position of counts.
For every left from 0 to lastrun.
For every right from left plus 1 to lastrun.
If item right of counts is more than item left of counts, swap item left of counts and item right of counts, swap item left of letters and item right of letters.
Keep a shared result as empty text. Keep a shared symbol as empty text.
To emit from times (a whole number). If times is 0, return. Place symbol into result. Emit from times minus 1.
For every spot from 0 to lastrun.
Set symbol to item spot of letters. Emit from item spot of counts.
Show result.
The starts is a list of 10, 2, 1, and 7. The ends is a list of 16, 8, 6, and 12. The last is the last position of starts.
For every left from 0 to last.
For every right from left plus 1 to last.
If item right of ends is less than item left of ends, swap item left of ends and item right of ends, swap item left of starts and item right of starts.
The arrows is 1. The reach is item 0 of ends.
For every spot from 1 to last.
If item spot of starts is more than reach, add 1 to arrows, set reach to item spot of ends.
Show arrows.
The numbers is a list of 1, 2, and 3. The last is the last position of numbers. The size is last plus 1. The total is 0. The smallest is item 0 of numbers.
For each value in numbers.
Add value to total. If value is less than smallest, set smallest to value.
The moves is total minus smallest times size. Show moves.
The firsts is a list of 1, and 2. The seconds is a list of -2, and -1. The thirds is a list of -1, and 2. The fourths is a list of 0, and 2. The last is the last position of firsts. The found is 0.
For every alpha from 0 to last.
For every beta from 0 to last.
For every gamma from 0 to last.
For every delta from 0 to last.
The total is item alpha of firsts plus item beta of seconds plus item gamma of thirds plus item delta of fourths. If total is 0, add 1 to found.
Show found.
The greed is a list of 1, 2, and 3. The sizes is a list of 1, and 1. The lastg is the last position of greed. The lasts is the last position of sizes. Sort greed. Sort sizes. The child is 0. The cookie is 0.
Repeat while child is at most lastg and cookie is at most lasts.
If item cookie of sizes is at least item child of greed, add 1 to child. Add 1 to cookie.
Show child.
The numbers is a list of 1, 2, 3, and 4. The last is the last position of numbers. The found is 0.
For every first from 0 to last.
For every second from first plus 1 to last.
For every third from second plus 1 to last.
If item first of numbers is less than item third of numbers and item third of numbers is less than item second of numbers, set found to 1.
If found is 1, show true, otherwise show false.
Keep a shared numbers holding 2, -1, 1, 2, and 2. Keep a shared found of 0.
To seek from start (a whole number) with cap (a whole number). The direction is item start of numbers. The current is start. The next is 0. The steps is 0.
Repeat while steps is less than cap.
The move is item current of numbers. The samedir is 1. If direction is more than 0 and move is less than 0, set samedir to 0. If direction is less than 0 and move is more than 0, set samedir to 0. If samedir is 0, set steps to cap. If samedir is 1, set next to current plus move. If samedir is 1 and next is less than 0, add cap to next. If samedir is 1 and next is at least cap, subtract cap from next. If samedir is 1 and next is current, set steps to cap. If samedir is 1 and next is start and steps is more than 0, set found to 1, set steps to cap. If samedir is 1 and next is not current and next is not start, set current to next, add 1 to steps.
The last is the last position of numbers. The cap is last plus 1.
For every start from 0 to last.
Seek from start with cap.
If found is 1, show true, otherwise show false.
The buckets is 1000. The die is 15. The window is 60. The rounds is window divided by die. The base is rounds plus 1. The pigs is 0. The covered is 1.
Repeat while covered is less than buckets.
Set covered to covered times base. Add 1 to pigs.
Show pigs.
The word is "abab". The longer is the length of word. The last is the last position of word. The found is 0.
For every width from 1 to last.
The same is 1. If the longer modulo width is not 0, set same to -1.
For every spot from 0 to last.
The other is spot modulo width. If same is 1 and character spot of word is not character other of word, set same to 0. If same is 1 and spot is last, set found to 1.
If found is 1, show true, otherwise show false.
The first is 1. The second is 4. The mixed is exclusive or of first and second. The count is 0.
Repeat while mixed is more than 0.
The bit is bitwise and of mixed and 1. Add bit to count. Set mixed to shift mixed right by 1.
Show count.
The numbers is a list of 1, 2, and 3. Sort numbers. The last is the last position of numbers. The middle is last divided by 2. The median is item middle of numbers. The moves is 0.
For each value in numbers.
The diff is value minus median. If diff is less than 0, set diff to 0 minus diff. Add diff to moves.
Show moves.
The cells is a list of 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, and 0. The last is 3. The side is 4. The perimeter is 0.
For every row from 0 to last.
For every column from 0 to last.
The spot is row times side plus column.
If item spot of cells is 1.
Add 4 to perimeter. If row is more than 0 and item (spot minus side) of cells is 1, subtract 1 from perimeter. If row is less than last and item (spot plus side) of cells is 1, subtract 1 from perimeter. If column is more than 0 and item (spot minus 1) of cells is 1, subtract 1 from perimeter. If column is less than last and item (spot plus 1) of cells is 1, subtract 1 from perimeter.
Show perimeter.
Keep a shared known as an empty list of whole numbers. Keep a shared won as an empty list of whole numbers. Keep a shared answer of 0. Keep a shared maxchoice of 10.
For every spot from 0 to 1023.
Place 0 into known. Place 0 into won.
To search from mask (a whole number) with remaining (a whole number). The good is 0. If item mask of known is 1, set answer to item mask of won, return. Set item mask of known to 1.
For every value from 1 to maxchoice.
The offset is value minus 1. The bit is shift 1 left by offset. The taken is bitwise and of mask and bit. If good is 0 and taken is 0 and value is at least remaining, set good to 1. If good is 0 and taken is 0 and value is less than remaining, search from mask plus bit with remaining minus value. If good is 0 and answer is 0 and taken is 0 and value is less than remaining, set good to 1. Set item mask of won to good. Set answer to good.
Search from 0 with 11. If answer is 1, show true, otherwise show false.
The first is "acb". The second is "ab". The firsttimes is 4. The secondtimes is 2. The long is empty text.
For every round from 1 to firsttimes.
Place first into long.
The needle is a copy of second. The lastlong is the last position of long. The lastneedle is the last position of needle. The cursor is 0. The full is 0.
For every spot from 0 to lastlong.
If character spot of long is character cursor of needle, add 1 to cursor. If cursor is more than lastneedle, set cursor to 0, add 1 to full.
The answer is full divided by secondtimes. Show answer.
Keep a shared word as empty text. Place "zab" into word. Keep a shared alphabet as empty text. Place "abcdefghijklmnopqrstuvwxyz" into alphabet. Keep a shared target as empty text. Keep a shared foundat of 0.
To locate from spot (a whole number). If spot is more than 25, return. The symbol is the slice of alphabet from spot to spot plus 1. If symbol matches target, set foundat to spot, return. Locate from spot plus 1.
Keep a shared piece as empty text. Keep a shared run of 1. Keep a shared nextindex of 0. Keep a shared expected as empty text.
To step from spot (a whole number). If spot is 0, return. Set piece to the slice of word from spot to spot plus 1. Set target to the slice of word from spot minus 1 to spot. Set foundat to -1. Locate from 0. Set nextindex to foundat plus 1. If nextindex is 26, set nextindex to 0. Set expected to the slice of alphabet from nextindex to nextindex plus 1. If piece matches expected, add 1 to run, return. Set run to 1.
Keep a shared letters as an empty list of text. Keep a shared bests as an empty list of whole numbers. Keep a shared spotfound of 0.
To record from spot (a whole number). If spot is more than the last position of letters, return. If item spot of letters matches piece, set spotfound to spot, return. Record from spot plus 1.
To lift from spot (a whole number). If run is more than item spot of bests, set item spot of bests to run.
The last is the last position of word.
For every spot from 0 to last.
If spot is more than 0, step from spot. Set piece to the slice of word from spot to spot plus 1. Set spotfound to -1. Record from 0. If spotfound is less than 0, Place piece into letters, Place run into bests. If spotfound is at least 0, lift from spotfound.
The total is 0.
For each value in bests.
Add value to total.
Show total.
Keep a shared parts as an empty list of text. Set parts to split "172.16.254.1" by ".". Keep a shared parts6 as an empty list of text. Set parts6 to split "172.16.254.1" by ":". Keep a shared bad of 0. Keep a shared bad6 of 0.
To check from spot (a whole number) with cap (a whole number). If spot is at least cap, return. If bad is 1, return. The part is item spot of parts. The size is the length of part. If size is less than 1, set bad to 1. If size is more than 3, set bad to 1. If size is more than 1 and character 0 of part is "0", set bad to 1. The total is 0.
For every index from 0 to size minus 1.
The symbol is character index of part. The isnum is 0. The value is the digit value of symbol. If symbol is between "0" and "9", set isnum to 1. If isnum is 0, set bad to 1. If isnum is 1, set total to total times 10 plus value. If total is more than 255, set bad to 1. If index is size minus 1, check from spot plus 1 with cap.
To verify from spot (a whole number) with cap (a whole number). If spot is at least cap, return. If bad6 is 1, return. The part is item spot of parts6. The size is the length of part. If size is less than 1, set bad6 to 1. If size is more than 4, set bad6 to 1.
For every index from 0 to size minus 1.
The symbol is character index of part. The ishex is 0. If symbol is between "0" and "9", set ishex to 1. If symbol is between "a" and "f", set ishex to 1. If symbol is between "A" and "F", set ishex to 1. If ishex is 0, set bad6 to 1. If index is size minus 1, verify from spot plus 1 with cap.
The last is the last position of parts. The count is last plus 1. The last6 is the last position of parts6. The count6 is last6 plus 1. Check from 0 with count. Verify from 0 with count6. The is4 is 0. If count is 4 and bad is 0, set is4 to 1. If is4 is 1, show "IPv4". If is4 is 0 and count6 is 8 and bad6 is 0, show "IPv6". If is4 is 0 and count6 is not 8, show "Neither". If is4 is 0 and count6 is 8 and bad6 is 1, show "Neither".
Keep a shared state of 0. Keep a shared value of 0. Keep a shared group of 0. Keep a shared result of 0.
To roll. Increase state by 1. If state is more than 7, set state to 1.
To draw. Set value to 0.
Repeat while value is less than 1 or value is more than 40.
Roll. Set group to state minus 1. Roll. Set value to group times 7 plus state. Set result to (value minus 1) modulo 10 plus 1.
Draw. Show result.
Keep a shared words holding "cat", "cats", "catsdogcats", "dog", "dogcatsdog", "hippopotamuses", "rat", and "ratcatdogcat". Keep a shared source as empty text. Keep a shared skipindex of 0. Keep a shared segok of 0. Keep a shared last of 0. The endword is the last position of words. Set last to endword.
To segment from start (a whole number) with pieces (a whole number). The end is the last position of source. The extent is end plus 1. If segok is 1, return. If start is extent and pieces is at least 2, set segok to 1. If start is extent, return.
For every index from 0 to last.
The word is item index of words. The endword is the last position of word. The size is endword plus 1.
If index is not skipindex and start plus size is at most extent.
Set piece to the slice of source from start to start plus size.
If piece matches word.
Segment from start plus size with pieces plus 1.
For every index from 0 to last.
Set source to item index of words. Set skipindex to index. Set segok to 0. Segment from 0 with 0. If segok is 1, show source.
Keep a shared sticks holding 1, 1, 2, 2, and 2. Keep a shared sides holding 0, 0, 0, and 0. Keep a shared squareok of 0. Keep a shared target of 0. The whole is 0.
For each stick in sticks.
Add stick to whole.
Set target to whole divided by 4. Keep a shared last of 0. The end is the last position of sticks. Set last to end.
To place from spot (a whole number). If squareok is 1, return. If spot is more than last, set squareok to 1, return. The value is item spot of sticks.
For every side from 0 to 3.
The total is item side of sides plus value.
If squareok is 0 and total is at most target.
Set item side of sides to total. Place from spot plus 1. Decrease item side of sides by value. If squareok is 1, return.
Place from 0. If squareok is 1, show true, otherwise show false.
Keep a shared words holding "10", "0001", "111001", "1", and "0". Keep a shared zeros as an empty list of whole numbers. Keep a shared ones as an empty list of whole numbers. Keep a shared current as empty text. Keep a shared zcount of 0. Keep a shared ocount of 0.
To measure from spot (a whole number) with limit (a whole number). If spot is more than limit, return. If character spot of current is "0", add 1 to zcount. If character spot of current is "1", add 1 to ocount. Measure from spot plus 1 with limit.
Keep a shared last of 0. The endword is the last position of words. Set last to endword.
For every index from 0 to last.
Set current to item index of words. Set zcount to 0. Set ocount to 0. The limit is the last position of current. Measure from 0 with limit. Place zcount into zeros. Place ocount into ones.
Keep a shared best of 0. Keep a shared maxzeros of 5. Keep a shared maxones of 3. Keep a shared usedzeros of 0. Keep a shared usedones of 0.
To walk from spot (a whole number) with taken (a whole number). If spot is more than last and taken is more than best, set best to taken. If spot is more than last, return. Walk from spot plus 1 with taken. The zcost is item spot of zeros. The ocost is item spot of ones.
If usedzeros plus zcost is at most maxzeros and usedones plus ocost is at most maxones.
Add zcost to usedzeros. Add ocost to usedones. Walk from spot plus 1 with taken plus 1. Subtract zcost from usedzeros. Subtract ocost from usedones.
Walk from 0 with 0. Show best.