advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Sign up for e-mail newsletters from DevX
C++ Update
DevX Weekly Update
Java Update
VB Update

More Newsletters
Partners & Affiliates
advertisement
advertisement
[TopCoder] Performance. Credibility.
Problem Set of the Month
Solving problems is what code is all about. Can you code your way out of this month's problem set?
Level 1
Given some decimal digits in a int[] digits, build an integer with the minimum possible number of factors, using each of the digits exactly once. If more than one number has the same (minimum) number of factors, return the smallest one among them. > click here
Representatives of company A (countA) and representatives of company B (countB) are having a meeting at a round table, and they want to sit in such a way that no company A representative is sitting closer than minDistance to a company B representative. Return the number of ways that such a seating arrangement is possible. > click here
You are in a Manhattan-type city with intersecting avenues and streets. Given distance and width, as well as the representation of two crossings, start and target, return the minimum distance you have to travel beginning from the center of the crossing start to reach the center of the crossing target if you travel only on streets and avenues. > click here
Level 2
The Hamming distance between two numbers is defined as the number of positions in their binary representations at which they differ. Given a String[] numbers containing the binary representations of some numbers (all having the same length), return the minimum among the Hamming distances of all pairs of the given numbers. > click here
Given some two-dimensional vectors, you can use some (or all) of them to construct a polygon by appending them end to end. Find the convex polygon that you can construct using some (or all) of the given vectors in some order that has the maximum area, and return this area. > click here
Solutions to Last Month's Problems
Compound words are concatenations of any two entries in a dictionary of distinct words. The potential problem is that a compound word is ambiguous if it already is a dictionary word and/or it can be formed in more than one way. Determine the number of ambiguous words that would result from allowing the compounding of distinct pairs of dictionary words. > click here for solution
You win a collection of tickets for luxury cruises. You can use each ticket only once, but you can use it in either direction between the two cities printed on the ticket. Your prize gives you free airfare both to any city of departure and from any destination. How many additional tickets would you have to buy so that your cruise can use all of your tickets? > click here for solution
A C-style multi-line comment (MLC) starts with /* and ends with the first following */ but is unwieldy because it doesn't allow nesting of other multi-line comments. Redefine MLC so that, instead of ending with the first following */, it ends with */ such that the intervening characters contain only properly nested /* */ pairs. > click here for solution
You've already designed a crossword puzzle, but now you need to come up with words of various sizes to put in it. Given a String[] board, representing an empty crossword puzzle, and an int size, return the number of horizontal slots in the puzzle that are exactly size characters in length. > click here for solution
You have a collection of possibly overlapping 45-degree isosceles right triangles. Each triangle is oriented with its hypotenuse at the bottom, parallel with the X axis. Determine the area that is covered by the collection of triangles, taking care not to count overlapping areas multiple times. > click here for solution
For complete problem sets and live tournament competition, visit topcoder.com.
Is your solution different from the TopCoders'? Is it better? Show us what you've got.
Post and discuss your solution or just check out what your peers came up with:
1 2 3 4
advertisement
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES