func permute(strInput:String,l:Int,r:Int){var inputCharacter = Array(strInput)if ( l==r){print(strInput)}else{for var i in l..<r{// Swapping doneinputCharacter.swapAt(l, i);// Recursion calledpermute(strInput: String(inputCharacter), l: l+1, r: r);

Given a sorted and rotated array A of N distinct elements which is rotated at some point, and given an element key. The task is to find the index of the given element key in the array A.

Example 1:

Input:
N = 9
A[] = {5, 6, 7, 8, 9, 10…

Given 2 sorted arrays Ar1 and Ar2 of size N each. Merge the given arrays and find the sum of the two middle elements of the merged array.

Example 1:

Input:
N = 5
Ar1[] = {1, 2, 4, 6, 10}
Ar2[] = {4, 5, 6, 9, 12}
Output: 11
Explanation: The merged array looks…

Different fonts for the app gives the attractive look and design which creates the positive image in user mind for usage prospectives.

For example, If you are going to develop the app for magazine or newspaper publisher company then you should choose right font for the app which looking like…

Different fonts for the app gives the attractive look and design which creates the positive image in user mind for usage prospectives.

For example, If you are going to develop the app for magazine or newspaper publisher company then you should choose right font for the app which looking like…

AppDelegate is a class which defines methods that are called by the singleton UIApplication object in response to important events in the lifetime of an app.

Normally used to perform tasks on application startup (setup app environment, analitycs (ex.: Mixpanel/GoogleAnalytics/Crashlitics), DB stack etc.) and shutdown (ex.: …

Mr.Javed Multani

iOS Developer, Triple graduated, Passionate, Love workout, blogger

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store