Question
What will be the fourth step for the following
input? Input: 76 172 372 43 243 361 165 A word arrangement machine,when given a particular input, rearranges it following a particularrule. The following is the illustration of the input and the steps of arrangement: Input: 87, 321, 293, 47, 176, 409, 215 Step I: 47, 321, 293, 87, 176, 409, 215 Step II: 47, 321, 293, 87, 176, 215, 409 Step III: 47, 87, 293, 321, 176, 215, 409 Step IV: 47, 87, 293, 215, 176, 321, 409 Step V: 47, 87, 176, 215, 293, 321, 409Solution
Here the rule followed is: numbers are getting arranged in ascending order. The smallest no. interchanges with the first position. Then the largest no. interchanges with the last position. Next, the second smallest no. interchanges with the second position. And so on. Input: 76 172 372 43 243 361 165 Step I: 43 172 372 76 243 361 165 Step II: 43 172 165 76 243 361 372 Step III: 43 76 165 172 243 361 372 [Machine will stop after step III.]
What will be printed from the below code?
List1 =[‘Ixambee’,’provides’,’best’,’mock’,’tests’]
print List1[2][-1]
...Which network topology is commonly used in Ethernet local area networks (LANs)?
Which component is responsible for translating virtual addresses to physical addresses?
Which of the following is/are ideal of ways of spreading virus
Join in which generated result contain right side tuple of table even without a match is
Node.js is primarily used for:
In data analytics, what is the primary purpose of sentiment analysis?
Which type of diode allows current to flow in only one direction?
What data structure is commonly used to represent the parse tree in parsing?
The Poisson distribution is typically used to model: