this post was submitted on 15 Aug 2023
1 points (100.0% liked)

Trivia

236 readers
2 users here now

A place to quiz others with trivia questions related to the instance!

Please keep questions on the topic of trivia. If you have a question for how to do something please post it in a community relevant to what youre doing or !no_stupid_questions@programming.dev

Guidelines

Credits

Logo base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
1
Guess the Language: #8 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon@programming.dev to c/trivia@programming.dev
 
function isPalindrome(str)
    str = str:gsub('%s', ''):lower()
    return str == str:reverse()
end

local input = "A man a plan a canal Panama"
if isPalindrome(input) then
    print("It's a palindrome!")
else
    print("It's not a palindrome.")
end

Testing out a new voting system of using strawpoll so that vote totals can be hidden. A thing I noticed in some of the previous rounds was that people would pile on to the same option. Loses a bit of the ease of vote but shouldnt be too bad since you can just instantly vote after you go to the site

You can vote for what you think it is here: https://strawpoll.com/xVg7j6Q5Rnr

Voting ends in 12 hours and then ill post here with the results. You can talk about it below but if you want to talk about the correct answer put it in spoiler tags

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here