Quantcast
Browsing all 59 articles
Browse latest View live

Thursday Code Puzzler: String Intern Puzzle in Java 7 and 6

A String based puzzle for you. The following program String te = "te", st = "st"; // "test".length(); String username = te + st; username.intern(); System.out.println("String object the same is: " +...

View Article


Thursday Code Puzzler: String Permutations

It's been a while, but the Thursday code puzzlers are back! The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you think is suitable. Note: Even...

View Article


Thursday Code Puzzler: Test Case Generator

 It's Thursday, time for our weekly code puzzler! The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you think is suitable. Note: Even though...

View Article

Thursday Code Puzzler: Investment Predictor

 Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Thursday Code Puzzler: The Knapsack Problem

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article


Thursday Code Puzzler: Square Roots With A Twist

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Thursday Code Puzzler: Power Set Calculation

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Code Puzzler Response - Find the Integer Square Root of a Positive Integer

This Code Puzzler comes from the community contributor - Erik ColbanThanks, Eric for today's extra brain-teaser!Write a function that calculates the integer square root of any positive integer, but...

View Article


Thursday Code Puzzler: Self Replicating Program

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article


Thursday Code Puzzler: Verification of a Binary Search Tree

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

DZone Code Puzzler Follow-up: Power Set - Round 2

On Dec. 13, the code puzzler was to generate the power set of a set provided as an array of strings. The puzzler did not specify which data representation we were supposed to use for the power set....

View Article

Thursday Code Puzzler: Does the Linked List Have a Circular Reference?

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Thursday Code Puzzler: Sieve of Eratosthenes

It's been a long time since I posted a Puzzler, but as I was perusing Khan's CS courses this morning (which look really cool!) I came across this fascinating discourse on prime numbers: Sieve of...

View Article


Thursday Code Puzzler: Change Calculator

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Thursday Code Puzzler: Intersection of Two Arrays

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article


Thursday Code Puzzler: Maximum Length Palindrome

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article

Thursday Code Puzzler: Is This An Armstrong Number?

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article


Coding Challenge ("Light" Edition)

This coding challenge is a bit different from the previous one ([1] [2]) because it is shorter and also a bit more closely tied to Java. A School has either a name (“Stanford”) or a nickname (“UCSD”)...

View Article

Answer to the "School" Challenge

I’m happy to see mostly correct answers to the School coding challenge. To make things more interesting, let’s start by looking at a naïve (and wrong) solution: Preview Text:  I’m happy to see mostly...

View Article

Thursday Code Puzzler: Find The Missing Number

Thursday is code puzzler day here at DZone. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable. Note: Even though there really...

View Article
Browsing all 59 articles
Browse latest View live