@DLosc Aight imma break out this cool new language I've been developing that's Turing Complete and just so happens to be exactly the same as English. Haven't gotten around to implementing it yet, the parser was slightly harder than I thought :P
Welcome to the 11th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added every 5 to 10 minutes. Feel free to keep suggesting drafts during the event. If you have any questions, don't be afraid to ask. Good luck!
Draft: Given a list of integers, perform one step of selection sort: either move the smallest number to the beginning of the list, or move the largest number to the end of the list (your choice).
Nah, I’m pretty sure I know how I can make it work fine, I’ll just have to do a different input format than I originally thought (I’m planning how I’m going to do it in vim when I’m on my computer)
AICMC: Given a list of integers and an integer k (k < length(arr)), return the subarray that sums to k. If multiple such arrays exist in arr[], choose one at random.
console.log(reverseAndLength('Hello')); // calling the function with an argument 'hello' and printing the output in console.
Thank you AI. Very cool.
AICMC: Given a string, output the number of times that it contains "a" or "A". Answer with the shortest amount of bytes wins. If there is no such character in this string, output 0
# Minify the following python function
def f(arg):
if arg < 5:
return True
else:
return False
# This is where the autogen result starts
def g(arg):
for i in range(2, arg-1): # Need a base here so need iterate through 2 to argument - 1 since don't want it includeing teh actual list item li = [num for num in arr if f('a string')
Draft:graphical-output Draw a hexagon. (Any closed, six-sided figure. Doesn't have to be regular; doesn't have to be convex. Can be outline or filled. No ASCII art or unicode characters like ⬡ please.)
Draft: Given a word composed of lowercase ASCII letters, reverse the order of the vowels (aeiou) within it. Examples: code -> cedo; bureaucracy -> baruaecrucy; subtraction -> sobtrictaun
DEF FNv(c$)="a"=c$OR"e"=c$OR"i"=c$OR"o"=c$OR"u"=c$
INPUT s$
v=LEN(s$)+1
FOR i=1TO v-1
l$=MID$(s$,i,1)
IF FNv(l$)AND i<v THEN
1v=v-1
v$=MID$(s$,v,1)
IF 1+FNv(v$)GOTO 1
MID$(s$,i,1)=v$
MID$(s$,v,1)=l$
END IF
NEXT
?s$
My laboratory has orders to develop self-replicating arms, with the replication gene being designed in a way that it will cause the arms to wither away and die once they are taken by Lyxal
So we can repopulate the world's arms
Research is going slowly because it's hard to operate a pipette with your legs
Run-length encoding is a simple compression technique which compresses sequences of repeating identical bytes. The encoding rules for this task are as follows: Any sequence of $n...
@RedwolfPrograms no, it's more that we had a relatively well-planned roll-out scheme, which has now turned into a free-for-all because people are tired of lockdowns. Mind you I'm talking from the perspective of NSW (the state I live in); I can't say how availability would be like in other states
I love how in Vim you can easily golf stuff by just taking repeated stuff and shoving it into a register. That's literally all I did to golf my Flatten the CUBE program and I managed to golf it by about 700 bytes. :P
if there were a way for pins to notify people the first time they enter that room and then not show on the starboard that'd be cool but as it is, when you see the message has nothing to do with if anyone else that might need to know hasn't entered the room since then and it's not like our starboard often contains anything useful
TIE fighters are fictional starfighters existing in the Star Wars universe. Propelled by Twin Ion Engines, TIE fighters are fast, agile, yet fragile starfighters produced by Sienar Fleet Systems for the Galactic Empire. TIE fighters and other TIE craft appear in Star Wars films, television shows, and throughout the Star Wars expanded universe. Several TIE fighter replicas and toys, as well as a TIE flight simulator, have been produced and sold by merchandise companies.
== Origin and design ==
Colin Cantwell created the concept model that established the TIE fighter's ball-cockpit and hexagonal...
Entomological warfare (EW) is a type of biological warfare that uses insects to interrupt supply lines by damaging crops, or direct harm to enemy combatants and civilian populations. There have been several programs which have attempted to institute this methodology; however, there has been limited application of entomological warfare against military or civilian targets, Japan being the only state known to have verifiably implemented the method against another state, namely the Chinese during World War II. However, EW was used more widely in antiquity, in order to repel sieges or cause economic...
My chemistry teacher just asked a question, I raised my hand and answered, then said I was wrong and went on to say the exact same thing I had just said >:|
Looking at the Elo ratings' history, they seem surprisingly swingy. Maybe the "favors more recent entries" has something to do with that--especially for languages that don't get used a whole lot. I wonder if a handful of individual bad performances could tank the rating for that month.
Volume of a 3d model
In this challenge, you'll take a shape as input, consisting of a number of triangles forming an outer shell. Your task will be to find the volume of the resulting shape.
You can assume the triangles all connect to exactly one other triangle per side, and the surface does not ...
hey hey and your challenge didn't mention floating point accuracy... like the answer will be a real number right and its decimal representation can be infinite right... so like how many digits should a submission output lol
My approach was to "break off" small triangular pyramids from the sides and sum their volumes, until you reached some point where that was no longer possible. I'm not entirely sure what the final result would look like in some cases.
E.g., with a convex shape it's going to work perfectly fine, but with something like a ring I'm not sure what would be left over
@emanresuA A It depents, In 3 space torri cannot have constant gaussian curvature, they will have positive curvature on the "outside" of the ring and negative curvature on the "inside". A Torus will always have 0 total curvature due to its Euler Characteristic. I wouldn't call that convex or concave. In 4 space though you can make torri with 0 curvature everywhere.
@RedwolfPrograms Well of course they didn't understand you if ou ere alking ike his (but seriously, communication is hard, maybe they just didn't realize you were saying the same thing)
@AviFS I don't understand, what approach would fail on that?
Gah, I just came upon a website that has an option to sort a table according to some numbers, but they're sorted as strings so you have 1111 before 888 ಠ_ಠ
The fact that .sort sorts integers lexicographically is genuinely one of JS's worst features. Most other stuff can be kinda excused/overlooked, but that's just downright wrong
Reverse a string: 1 byte Get the length of a string: 1 byte Get the length of a string *and convert it to a string* so it can be output properly: uhhh 0_o
Language-oriented programming (LOP) is a software-development paradigm where "language" is a software building block with the same status as objects, modules and components, and rather than solving problems in general-purpose programming languages, the programmer creates one or more domain-specific languages for the problem first, and solves the problem in those languages. Language-oriented programming was first described in detail in Martin Ward's 1994 paper Language Oriented Programming, published in Software - Concepts and Tools, Vol.15, No.4, pp 147–161, 1994.
== Concept ==
The concep...
@hyper-neutrino MPS is a Jetbrains IDE to create plugins for Jetbrains IDEs (and standalone IDEs too). It's got a bunch of languages within it and apparently it was used to make itself. However, it was absolutely crappy last I tried it, so wouldn't recommend
@RedwolfPrograms Does Risky have APL-like operators or Jelly-like quicks to mess with the parsing and make it tacitter?