Welcome to the 14th 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!
note to self: next time, pin in different room and move message here
AICMC: Given a list of integers, check whether there's one integer that occurs an odd number of times. If so, find the integer that occurs an odd number of times.
AICMC: Given a list L containing numbers and strings return whether or not it contains integer values so [1,"2", 3] returns true while ['a', 2 ,3, 4e7] returns false.
(italics means I've inserted text to make it make more sense)
AICMC: Write a regular expression to turn all - and + signs into facts. If I feed the string '-, --, (+) you will spend them' your code should return 'fact, factfact, (fact) you will spend them'. This question is customarily scored "painfully difficult (i h8 math)"
@Fmbalbuena copilot allows insertions anywhere, codex only completes at the end
AICMC: Given an array A of integers, we must modify the array in the following way. We randomly, with uniform sampling (i.e. every choice has an equal chance of being chosen) choose one element from it (A[i], where i <= N-1), and subtract 1 from every other elements.
PhoneAutosuggestCMC: Given the fact that the stack is empty push random values and the program must output the valency of a single byte encoded to the stack. NOTE dont solve