Quantcast
Channel: User pacman256 - Code Golf Stack Exchange
Browsing latest articles
Browse All 76 View Live

Answer by pacman256 for Pretty Palintiples

Vyxal, 65 bitsv2, 8.125 bytesλKṫṘcnt*;ṅTry it Online!Bitstring:00000010010010001000001010000111001101101101011011101111111011011Slow method checking factors, but I had to beat Jelly.

View Article



Comment by pacman256 on Scan input for numbers and add thousands separators

didnt reply, but its fixed @Neil

View Article

Answer by pacman256 for Find the minimum and maximum integers in an array,...

Vyxal 3, 3 bytesSÞhTry it Online!sort, take the ends

View Article

Answer by pacman256 for Reverse factorial function

Vyxal 3G, 5 bytesK!=ÞκTry it Online!

View Article

Comment by pacman256 on nimi ale lon toki pona! (Every word in Toki Pona!)

11 bytes for ona uses the fact that on is the start of the second half of the alphabet and a is the start of the alphabet

View Article


Answer by pacman256 for Test a number for narcissism

Vyxal 3, 5 bytesLᵛ*∑=Try it Online!cool

View Article

Answer by pacman256 for Bit run rundown

Vyxal 3G, 3 bytesbġlTry it Online!

View Article

Answer by pacman256 for Eating Candy in the Correct Order

Vyxal 3d, 22 bytesᵏ“ḶṚ:ᵂ…lD∆L÷ė←⸠«r⸠×rTėTry it...

View Article


Answer by pacman256 for Eh, codegolf shmodegolf

Vyxal 3, 11 bytesAa[ᶤAİ"=ᵐ„pTry it Online!

View Article


Answer by pacman256 for Generating Minesweeper grids

Vyxal 3j, 50 38 bytes2ẆVḤ\ðYY$v•ÞẠ:Þȯᵛƛ•C]ZᵗZᵛᵛ₳•c[•]“ƛ0'xrTry it Online!Using reduce lambdas on zipped list instead of the weird index method. VYXAL FOREVER

View Article

Answer by pacman256 for Invert a Minesweeper Board

Vyxal 3j, 28 bytesᵛƛ•=[ð|•]:Þȯᵛᵛ•CZᵗZᵛᵛ₳•c¿•]“Try it Online!wish vectorize modifier deep vectorizedinput is a 2d list of...

View Article

Answer by pacman256 for Verify a Minesweeper board

Vyxal 3g, 23 bytesṂᵛf:Þȯᵛᵛ'XCZᵗZ⌊ᵛᶻ0cᵛᵛ≈fTry it Online!

View Article

Answer by pacman256 for Fill in the Minesweeper clues

Vyxal 3j, 18 bytesÞȯᵛᵛ•CZᵗZᵛᵛ₳•c¿•]“Try it Online!input is a list of strings with ? instead of spaces because the parser breaksÞȯᵛᵛ•CZᵗZᵛᵛ₳•c¿• would be 16 with bad formatting

View Article


Answer by pacman256 for Reversed Squares

Vyxal 3, 4 bytesṚ√ᵞ⌊Try it Online!is the square root of the reverse equal to its integer part?

View Article

Comment by pacman256 on Draw an hourglass

4.375 with vyncode

View Article


Answer by pacman256 for Draw an hourglass

Vyxal 3j, 11 byteszU•×ᵂ½ṚᶻḊVṅTry it Online!

View Article

Comment by pacman256 on Map key with value as standard

5.75

View Article


Answer by pacman256 for Map key with value as standard

Vyxal 3, 7 bytes'(÷')÷ḢTry it Online!port of vyxal 2

View Article

Comment by pacman256 on Create the characters you can write on a MacOS US...

"≠≥≤" can be put in as a string, as well as any other vyxal codepage chars that arent part of a range or make up the entire range... I personally won't do this tonight but maybe soon

View Article

Answer by pacman256 for Every nth prime number up to 8675309

Vyxal, 114 bitsv2, 14.25 bytesÞp»¤j⌈»~Þ<$f›ẇvhTry it Online!Bitstring:001010110011101110011001011110011100110101100010101111000100110100100001101101111001000000011010110111001011110100

View Article

Answer by pacman256 for Is it a stochastic matrix?

Vyxal 3, 7 bytesT;Ṡ₅=ᵛATry it Online![1,1] for both [1,0] for left [0,1] for right and [0,0] for neither.

View Article


Answer by pacman256 for Borders of a Rectangular Matrix

Vyxal 3W, 6 bytesḣṫ$ᵛÞhTry it Online!Abuses formatting quite a bit but there isn't a way to get diagonals...

View Article


Answer by pacman256 for Simplify matrix input!

VyxalJoP, 218 bitsv2, 27.25 bytes↵⌈vꜝS\"FD`], [`‛; VḢṪ,‛[]‛{}ĿTry it...

View Article

Answer by pacman256 for Alphabet Staircase

Vyxal 3j, 4 bytesnfÞκTry it Online!

View Article

Answer by pacman256 for Do X without Y​

Vyxal (canvas), 121 bitsv2, 15.125 bytes½⌈?dkP‛YyFƈṅ\xø∧Try it Online!Bitstring:0001001010010001111011001101111101001110110100101000000011001100001010010000110110000101011011000011110111101111101100110

View Article


Answer by pacman256 for Quickly regrouping lists

Vyxal 3L, 3 bytesᶨ†ṪTry it Online!There is a built-in for "lengths of consecutive groups" so just iterate that until it hits [1], remove the [1] and get the length

View Article

Answer by pacman256 for Output "Fit" numbers

Vyxal 3, 6 bytesbġ“⌊“BTry it Online!

View Article

Answer by pacman256 for Substitute Unprintable ASCII Characters

Vyxal 3R, 23 bytes₃8Q8QṪ⸠~ᵃ$+Z₆v~!$;&TO\ŀTry it Online!i tried (header is just all the ascii characters...

View Article

Answer by pacman256 for Write A Program That Outputs Its Mirror Level

Vyxal 3Ws, 2 bytes..Try it Online!so uh . is a builtin for 1/2 and the Ws flags sum the entire stack thus resulting in a 2 byter

View Article



Comment by pacman256 on Flip a coin in Lost

how large is the grid?

View Article

Comment by pacman256 on Alphabet Staircase

use the j flag lol

View Article

Comment by pacman256 on Golf all the 16 logic gates with 2 inputs and 1 output!

if we can use flags i can save 3 bytes

View Article

Comment by pacman256 on Make a list flat

the two byte split on spaces and 4 byte split on commas dont work on empty lists

View Article


Comment by pacman256 on Interpret PlusOrMinus

@WheatWizard decrementing by one rather than resetting means you cant just split on the print character and count lengths

View Article

Comment by pacman256 on Interpret PlusOrMinus

why was this answer accepted i am working on a 10 byter in a golflang

View Article

Comment by pacman256 on Interpret PlusOrMinus

9.875

View Article


Comment by pacman256 on Interpret PlusOrMinus

so s doesnt keep them either

View Article


Answer by pacman256 for 24 and 12 Hour Times

Vyxal 3RṀj, 38 bytes24ƛ2Þ0m12:£N%¥+ᶲ;2«":00"+„ᶴpan¥-„i+'m+Try it Online!Port of 05ab1emy own 44 byter

View Article
Browsing latest articles
Browse All 76 View Live


Latest Images