CB Login

Shout Box

Latest Message: 3 weeks, 4 days ago
  • Acomplia: «link» «link» «link» «link» «link»
  • Alyse: zomg!
  • putis: ;)
  • nah: hey sexy
  • bobby lovela: HELLO.....Hello.....hello.....
  • Brendan flos: splash
  • Matt: RAWR!!!!!
  • Alyse: o.O
  • *Nurta suggests if the sb is being weird, you ctrl-f5
  • *Nurta goes buahaha

Guests are shown between [].

Only registered users are allowed to post

Our Sponsors


Dmegs Web Directory
Programming Puzzler PDF Print E-mail
Written by Nurta   
Thursday, 19 February 2009 16:13

I came accross a basic java programming puzzle, which was really easy, but I made it a little funner by adding an extra element, so the challenge is:

 

Given 2 int values, return true if either of them is in the range 10..20 inclusive, using 2 or less comparators (==,<,<=,>,>=,!=,?).

 

See what we come up with in the comments.

Comments
Add New Search RSS
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry:
:evil::twisted::roll::wink::!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Friday, 29 May 2009 18:16