(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import Foundation | |
func permutation(str: String, current: String = "") { | |
// convert str to array to be easy indexed | |
let strArr = Array(str) | |
let count = strArr.count | |
// The base case | |
if count == 1 { | |
// when the input is one char the only permutation is that char. | |
print(current + str) |
import java.io.File; | |
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
/** | |
* Android Make file generator for cocos2dx 2.2.6 project running with Android studio: | |
* 1.copy AndroidMakeGenerator.java to your jni folder |
import java.io.File; | |
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
/** | |
* Android Make file generator for cocos2dx 2.2.6 project running with eclipse: | |
* 1.copy Androidmk.java to your jni folder |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.