input output priyanka

3
Input/Output Arrangement 1. Look at the last step to understand the logic. 2. Then check second/third step to find out whether single factor or two factors are replaced. Note: If in the question intermediate step is given and is asked for the input, Ans will be always cann’t be determined. Here are few common types are listed: 1.  Alphabetical arrangement : a. Words are arranging in alphabetic order from Left to right : Input : lock come apple them done square Step1: apple lock come them done square Step2: apple come lock them done squar e Step3: apple come don e lock them square Step 3 is the final step/Output. b. Words arranging in alphabetic order from Right to left: Input : lock come apple them done square Step 1: then lock come apple done square Step 2: then square lock come apple done Step 3: then square lock done come apple 2. Numerical arrangement: a. Number is increasing/decreasing. E.g : Input: 8 6 2 10 1 Output: 1 2 6 8 10 (Number is increasing). Input: 8 6 2 10 1 Output: 10 8 6 2 1 (Number is decreasing). b. Number can be arranged by odd and even numbers. Odd numbers are arranging in decreasing/increasing order than even number in increasing/decreasing order or vice versa.  Example: Input: 32 63 89 56 66 95 Step 1: 95 63 89 56 66 32 Step 2: 95 89 63 66 56 32 Step 2 is the output (Odd numbers are arranged in decreasing manner, Even numbers are arranged in increasing manner and both is happening together ).

Upload: anuj-tripathi

Post on 05-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Input Output Priyanka

8/16/2019 Input Output Priyanka

http://slidepdf.com/reader/full/input-output-priyanka 1/2

Input/Output Arrangement

1.  Look at the last step to understand the logic.

2.  Then check second/third step to find out whether single factor or two factors are

replaced.

Note: If in the question intermediate step is given and is asked for the input, Ans will be

always cann’t be determined. 

Here are few common types are listed:

1.   Alphabetical arrangement :

a. 

Words are arranging in alphabetic order from Left to right :

Input : lock come apple them done square

Step1: apple lock come them done square

Step2: apple come lock them done square

Step3: apple come done lock them square

Step 3 is the final step/Output.

b.  Words arranging in alphabetic order from Right to left:

Input : lock come apple them done square

Step 1: then lock come apple done square

Step 2: then square lock come apple done

Step 3: then square lock done come apple

2.  Numerical arrangement:

a.  Number is increasing/decreasing.

E.g : Input: 8 6 2 10 1

Output: 1 2 6 8 10 (Number is increasing).

Input: 8 6 2 10 1

Output: 10 8 6 2 1 (Number is decreasing).

b.  Number can be arranged by odd and even numbers. Odd numbers are

arranging in decreasing/increasing order than even number in

increasing/decreasing order or vice versa. 

Example: Input: 32 63 89 56 66 95

Step 1: 95 63 89 56 66 32

Step 2: 95 89 63 66 56 32

Step 2 is the output

(Odd numbers are arranged in decreasing manner, Even numbers arearranged in increasing manner and both is happening together ).

Page 2: Input Output Priyanka

8/16/2019 Input Output Priyanka

http://slidepdf.com/reader/full/input-output-priyanka 2/2

 

3.  Both alphabet and number mixed:

a.  In series there is both numeric and alphabetic words, so in one step number

is arrange in increasing/decreasing order and in other step word is arrange

in alphabetic order from A-Z/ Z-A or both are arrange together.

Input: gone name 43 39 18 for again 66 

Step 1 : 66 gone name 43 39 18 for again

Step 2 : 66 again gone name 43 39 18 for

Step 3 : 66 again 43 gone name 39 18 for

Step 4 : 66 again 43 for gone name 39 18

Step 5 : 66 again 43 for 39 gone name 18

Step 6 : 66 again 43 for 39 gone name 18

Step 7 : 66 again 43 for 39 gone 18 name

Input: gone name 43 39 18 for again 66

Step 1: 18 name gone 43 39 for again 66Step 2: 18 name 39 gone 43 for again 66

Step 3: 18 name 39 gone 43 for 66 again.

b.  Words are arranging in alphabetic order in extreme left then numbers are

arranging in increasing/decreasing order at extreme right :

Input: sap 28 have 18 99 48 luck nice 78 ramp

Step1: have sap 28 18 48 luck nice78 ramp 99

Step2: luck have sap 28 18 48 nice ramp 99 78

Step3: nice luck have sap 28 18 ramp 99 78 48

Step4: ramp nice luck have sap 18 99 78 48 28Step5: sap ramp nice luck have 99 78 48 28 18

(Alphabets are arrange at extreme left from Z-A and numbers at extreme right

decreasingly).

Other types:

a.  Depends on number of letter

b.  Depends on number of vowels

c.  Word starts with consonant and starts with vowel occurs simultaneously

d. 

Shifting or Interchanging positions of characters/alphabets/words etc., in the inputaccording to questions e.g. ‘shift 1st character to last’ or ‘interchange 1st & last’ etc. 

And so on....

Thank you

Priyanka