Perfect powers code-golf number
Given a list of numbers, output the smallest non-1 number that ensures that it's a perfect square, cube, etc.
Examples
2 -> 4 (2² = 4)
3 -> 8 (2³ = 8)
2, 3 -> 64 (8² = 64;
4² = 64)
Is the input Bl lu ur rr ry? code-golf string decision-problem
This is based off this challenge.
Given an input string, check whether the string is blurry.
What's a blurry string?
Take a non-blurrified string abc as an example. You repeat every character of this twice:
aabbcc
And then inse...
^ Any more feedback for this, at the brink of posting?
You are given a list of positive integers as input. The challenge is to find such a position of a cut that minimizes the absolute difference between the sums of the two parts (to the left and to the right of it). The position should be given as the index of the first element after the cut.
This ...
Perfect scores in Martian rules football code-golf integer arithmetic
Story
Martians have been observing Aussie rules football matches from space with great curiosity. They have fallen in love with the game, so much so that they have been inspired to start their very own football league. Howeve...
Given a list of 2 or more strictly positive integers, sum the first and last half of the list, with the middle element being counted only in the right half if the list has an odd number of elements
Some examples of the middle element being counted in the right half:
[1, 2, 3, 4] -> Left: ...
Hi, this is my first time doing code golf. I was wondering if it's ok for my (haskell) submission to be a function with type IO String. Specifically for this question but also in general: codegolf.stackexchange.com/questions/204068/…
it seems like String is ok but I wasn't sure about IO