格雷格·萨比诺·穆兰:Postgres循环函数与线性进程的趣味应用
Disclaimer This article will contain spoilers both on how I solved 2022 Day 21's challenge "Monkey Math" using SQL, as well as general ideas on how to approach the problem. I recommend trying...
本文介绍了使用SQL解决2022年第21天的挑战“猴子数学”的方法,包括将文本输入放入虚拟Postgres表中,使用正则表达式函数拆分文本字符串,逐个猴子地应用数学运算,通过循环找到解的数字。通过这些步骤,最终得到了正确的答案。