« first day (147 days earlier)      last day (168 days later) » 

10:01 PM
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).
2
 
AIDraft: Given a string, output its reverse and its length.
 
Draft: Given a nonempty list of integers, perform Trumpsort: move along the list from left to right. Make the first element your wall. If the second element cannot get over the wall (i.e., the second element is smaller than the first), remove that. Otherwise, the second element is your new wall. Repeat the process with the third element, the fourth, and so on
 
AIDraft: Given a list of positive integers, output their sum and the number of digits of the sum. E.g. [1,2,3] -> 6 and 1, [1,2,3,4] -> 10 and 2.
 
Did it also add the example itself?
 
Sort of
E.g. [1,2,3] -> 4 and 2, [1,2,3,4] -> 11 and 3.
I had to correct it lol
 
10:07 PM
Also, this AI seems to like finding a result and then also outputting the length of the result :P (length of reverse, length of sum's digits)
@lyxal Artificial "Intelligence"
I could beat that with my Natural Stupidity at any time
 
AIDraft: Given a positive integer, return its number of trailing zeroes
2
AIDraft: Print the product of all numbers in an array whose sum equals to zero (if there is any). If no such elements are found - output 0 . Eg.: [1 2 3 4 5 6] -> 0; [3, -3, 2, -4, 2, 2] -> 144.
 
 
1 hour later…
11:18 PM
@user this is just stalin sort isn't it?
 
No, Stalin Sort is declaring the list sorted and shooting anyone who disagrees
Stalin Sort is very similar to Intelligent Design sort
 
Draft: 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.)
 
11:48 PM
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
2
 

« first day (147 days earlier)      last day (168 days later) »