Skip to primary content
Skip to secondary content

ferretfarmer

furor loquendi

ferretfarmer

Main menu

  • Home
  • Tutorials
  • About
  • thank me!

Category Archives: riddle

Post navigation

Newer posts →

riddle 1 (python)

Aside

saw this question: Check whether all characters of one string, are found in another. highlight the text below for my answer.

(python solution below – i cheated – i checked my syntax in an interpreter)

 
def fn(x,y): not False in [i in x for i in y]

[More programming riddles]
Posted on September 14, 2013 by ferretfarmer | Tagged one-liner, python, udacity challenge | Leave a reply

Javascript FizzBuzz

Aside

just overheard FizzBuzz at a coffee-shop interview with a programmer. old school! highlight below for a javascript one-liner:


for(i=1;;++i)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)

FacePalm

Posted on September 10, 2013 by ferretfarmer | Tagged annecdote, code snippet, interviews, javascript, one-liner, riddle | Leave a reply

Post navigation

Newer posts →

Tags

  • anagram
  • annecdote
  • book review
  • bug
  • code snippet
  • design
  • django
  • javascript
  • math
  • one-liner
  • optimization
  • prime numbers
  • project euler
  • python
  • riddle
  • tutorial
  • twisted
  • udacity challenge
  • websockets
  • wtf

Enter your email address to follow this blog and receive notifications of new posts by email.

Categories

  • Justin Cooney's avatar
  • Unknown's avatar
  • Unknown's avatar
  • Unknown's avatar
  • Brianna's avatar
  • Unknown's avatar
  • Adam Chesak's avatar
  • Unknown's avatar
  • Heather's avatar
Blog at WordPress.com.
  • Subscribe Subscribed
    • ferretfarmer
    • Join 32 other subscribers
    • Already have a WordPress.com account? Log in now.
    • ferretfarmer
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar