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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleCode 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 ArticleThursday 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 ArticleThursday 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 ArticleDZone 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleThursday 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 ArticleCoding 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 ArticleAnswer 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 ArticleThursday 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