Random Thoughts

Milind Thombre's Personal Blog!

Thursday, 10 October 2013

Another Programming Puzzle

There is a unisex bathroom with a capacity of 3 people. Either men or women can use it, but not both at the same time. Write a simple program that enforces these constraints.

Milind Thombre

Posted by Milind K Thombre at 3:41 pm
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  May (1)
  • ►  2019 (1)
    • ►  April (1)
  • ►  2018 (5)
    • ►  September (1)
    • ►  June (2)
    • ►  May (2)
  • ►  2017 (1)
    • ►  December (1)
  • ►  2016 (1)
    • ►  March (1)
  • ►  2015 (4)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
  • ►  2014 (4)
    • ►  September (1)
    • ►  June (1)
    • ►  April (1)
    • ►  February (1)
  • ▼  2013 (11)
    • ►  December (1)
    • ▼  October (3)
      • Tyranny of the Majority
      • Another Programming Puzzle
      • Mutual Exclusion Problems in Programming
    • ►  April (1)
    • ►  February (5)
    • ►  January (1)
  • ►  2012 (4)
    • ►  December (2)
    • ►  November (1)
    • ►  July (1)

About Me

Milind K Thombre
View my complete profile
Watermark theme. Powered by Blogger.