Comment

Comment by latexr

> It seems like the right answer is usually the longest of the choices

You are correct. I tested that hypothesis about a dozen times and it seems that if you always pick the longest you’ll get it right somewhere in the high 70s to mid 80s. For anyone interested in testing for themselves, open the website to the first question then run this in the console (not going to spend time optimising it, it works well enough for the purpose):

  let loopCount = 0

  const loop = setInterval(() => {
    Array.from(document.querySelectorAll("button")).slice(0, 4).reduce((long, curr) => curr.textContent.length > long.textContent.length ? curr : long).click()
    setTimeout(() => Array.from(document.querySelectorAll("button")).at(-1).click(), 100)
    setTimeout(() => Array.from(document.querySelectorAll("button")).at(-1).click(), 200)

    loopCount++
    if (loopCount === 100) clearInterval(loop)
  }, 500)
parent latexr 4 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton