Looking for good programming challenges?

Use the search below to find our solutions for selected questions!

Finding n-th permutation without computing others

Given S of size n and k, return the kth lexicographic permutation sequence. (Note: Given n will be between 1 and 10 inclusive.) For n = 10 variable symbols we have 10! possible permutations. The first step is to find the first symbol. If we fix a first symbol, then . . . Read more

Build WAR file with Maven and deploy with Ant

Minimalistic Ant script for Tomcat war file deployment. This script first does a mvn clean and mvn install on the defined maven project. It then connects to the provided server, stops the running Tomcat, uploads the newly created .war file to the Tomcat’s webapp directory and starts the Tomcat again. . . . Read more

Configure Maven 3.2 to use JDK v1.7 under Mac OS X 10.9

In this article i describe how to configure Maven 3.2 to use JDK v1.7 under Mac OS X 10.9 Step 1: Download Maven Go ahead and download the latest Maven version here. For this tutorial just download the binaries: apache-maven-3.2.1-bin.tar.gz. Step 2: Install Maven Once you have downloaded the zipped . . . Read more

Landscape launch image on iPhone

Landscape launch image iPhone (640x1136)

In this article I will describe how to add landscape launch images to your iPhone app. Landscape launch images are only supported on iPad apps (Apple Documentation). Bellow I have listed the steps in order to circumvent this issue and add landscape images to your iPhone app. Step 1: Add . . . Read more

Implement a Game Center leaderboard (iOS 7)

This tutorial will teach you how to implement a Game Center leaderboard in an iOS 7 app. Step 1: Importing the GameKit Framework Assuming you have an existing project you need to import the GameKit Framework. This can be easily done by selecting the project name and under General->Linked Frameworks . . . Read more

Interstitial ads iPhone using the iAd framework

In this tutorial I will briefly explain several methods for adding interstitial ads iPhone in your iOS 7 App using the iAd framework. The example I will be working on is a small game implemented in Apple’s SpriteKit framework. The tutorial assumes that you have already created a new App . . . Read more