Machine Word-Number Rearrangement Medium

Machine Word-Number Rearrangement problems involve inputs containing both words and numbers. The machine may sort words alphabetically, sort numbers numerically, or apply different rules to words and numbers. Common patterns include moving numbers first, words first, or alternating arrangements. These problems are typical in banking exams.

10Worksheets
200+Practice Questions
MediumDifficulty
3-4 hoursHours to Master

Introduction to Machine Word-Number Rearrangement Medium

Machine Word-Number Rearrangement problems involve inputs containing both words and numbers. The machine may sort words alphabetically, sort numbers numerically, or apply different rules to words and numbers. Common patterns include moving numbers first, words first, or alternating arrangements. These problems are typical in banking exams.

Prerequisites

Basic rearrangement concepts Alphabetical sorting Numerical sorting Mixed data type handling Pattern recognition
Why This Matters: Machine Word-Number Rearrangement problems appear in 2-3 questions in Banking PO and SSC CGL exams. They test handling of mixed data types.

How to Solve Machine Word-Number Rearrangement Medium Problems

1

Step 1: Separate words and numbers mentally to identify the pattern

2

Step 2: Common patterns: numbers first then words, words first then numbers, alternate arrangement

3

Step 3: Numbers may be sorted ascending or descending

4

Step 4: Words may be sorted alphabetically or by length

5

Step 5: Track how elements are repositioned at each step

6

Step 6: Apply the same rule to the new input

7

Step 7: Present the output at the required step

Pro Strategy: First identify what is being rearranged (numbers, words, or both). Determine the sorting order for each type. Track the movement of elements step by step. Numbers are usually sorted numerically, words alphabetically.

Example Problem

Example: Input: 'apple 42 banana 18 cat 56'. Step1: '18 apple 42 banana 56 cat'. Step2: '18 42 apple banana 56 cat'. What is Step3? Solution: Step1: Smallest number '18' moved to left Step2: Next smallest number '42' moved after '18' Step3: Next number '56' moves after '42' → '18 42 56 apple banana cat' Answer: 18 42 56 apple banana cat

Pro Tips & Tricks

  • Numbers are typically sorted in ascending or descending order
  • Words are typically sorted in alphabetical order (A to Z)
  • The rearrangement may prioritize numbers first, then words, or vice versa
  • Some patterns alternate: number, word, number, word...
  • Words and numbers may be sorted independently and then interleaved
  • Track the count of numbers and words to verify final arrangement

Shortcut Methods to Solve Faster

Final numbers = sorted(all numbers, ascending/descending)
Final words = sorted(all words, alphabetical)
If numbers first: output = sorted(numbers) + sorted(words)
If words first: output = sorted(words) + sorted(numbers)
For alternate patterns: interleave sorted lists according to pattern

Common Mistakes to Avoid

Mixing up ascending vs descending order for numbers
Sorting numbers as strings instead of numerical values
Forgetting to maintain the relative order of words within their group when not fully sorted
Misidentifying whether numbers or words come first

Exam Importance

Machine Word-Number Rearrangement Medium is an important topic for various competitive exams. Here's how frequently it appears:

SSC CGL
2-3 questions
BANKING PO
2-3 questions
RAILWAYS RRB
1-2 questions
INSURANCE
2-3 questions

Ready to Master Machine Word-Number Rearrangement Medium?

Start with Worksheet 1 and work your way up to expert level! Each worksheet includes:

20 practice questions
Detailed solutions
Step-by-step explanations
Start Practicing Now