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, 1, 2, 3}
key = 10
Output:
5
Explanation: 10 is found at index 5.

Example 2:

Input:
N = 4
A[] = {3, 5, 1, 2}
key = 6
Output
:
-1
Explanation
: There is no element that has value 6.

Your Task:
Complete the function search() which takes…


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 like
{1,2,4,4,5,6,6,9,10,12}. Sum of middle
elements is 11 (5 + 6).

Example 2:

Input:
N = 5
Ar1[] = {1, 12, 15, 26, 38}
Ar2[] = {2, 13, 17, 30, 45}
Output: 32
Explanation: The merged array looks like
{1, 2, 12, 13, 15, 17, 26, 30, 38, 45}
sum of…


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 user reads the magazine or newspaper.

First of all you need to all font files which you gonna use in your app. The fonts may be provided by graphic designer or you will get it from online websites.


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 user reads the magazine or newspaper.

First of all you need to all font files which you gonna use in your app. The fonts may be provided by graphic designer or you will get it from online websites.


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.: save DB context), handling URL open requests and similar application-wide tasks.

All States of Application through AppDelegate methods

For Getting updated or to do something before app goes live to user you can use below method.

AppDidFinishLaunching

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {// Write your code before app launchreturn YES; }

While App Enter…

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