The Artima Developer Community
Sponsored Link

Java Buzz Forum
Test-First This!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Test-First This! Posted: Jul 26, 2004 10:10 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Test-First This!
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Cedric Beust posted a few tricky interview questions in FUN WITH BITS

There are three categories of bit-shifting questions that I usually pick from, in increasing order of difficulty:

  1. How can you determine if a number is a power of two?
  2. How can you clear the rightmost bit?
  3. How can you count the number of 1 bits?

Answers were given in the blog. However they were derived at logically. In this day and age of the test-first hype, I would like to challenge its adherents to solve the problems in a test-first fashion.

Any takers?

Read: Test-First This!

Topic: Java Development on Eclipse Previous Topic   Next Topic Topic: Election is over. John Kerry is a Mac user. Say no more?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use