Show HN: Astro-Bot – A programming question with every new tab
chrome.google.com
Show HN: Astro-Bot – A programming question with every new tab
1–10 of 22 posts
Re: Show HN: Astro-Bot – A programming question with every new tab
#2 def foo( vals ):
output = vals[0]
for x in vals[1:]:
if output
1. It should return output2. The answer should be "The maximum value", not "The minimum value"
Also, it could be nice if after you solve a riddle you would get a new one.
Re: Show HN: Astro-Bot – A programming question with every new tab
#3Pretty cool! However, some riddles are incorrect, for example this one has two errors: def foo( vals ): output = vals[0] for x in vals[1:]: if output 1. It should return output 2. The answer should be "The maximum value", not "The minimum value" Also, it could be nice if after you solve a riddle you would get a new one.
Re: Show HN: Astro-Bot – A programming question with every new tab
#4Re: Show HN: Astro-Bot – A programming question with every new tab
#5int main() { int array[] = { 1, 2, 3, 4, 5}; int *ptr; ptr = a; ptr++;
return 0;
}This won't compile, but the answer says it should be 2
Re: Show HN: Astro-Bot – A programming question with every new tab
#6Wouldn’t a better idea be to show a question on Stack Overflow which is somewhat upvoted but still without an accepted answer?
Re: Show HN: Astro-Bot – A programming question with every new tab
#7Re: Show HN: Astro-Bot – A programming question with every new tab
#8Re: Show HN: Astro-Bot – A programming question with every new tab
#9Wouldn’t a better idea be to show a question on Stack Overflow which is somewhat upvoted but still without an accepted answer?