My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
Given text comprising of words and numbers, sort them both in ascending order and print them in a manner that a word is followed by a number. Words can be in upper or lower case. You have to convert them into lowercase and then sort and print them. Input Format: First line contains total number of test cases, denoted by N Next N lines, each contains a text in which words are at odd position and numbers are at even position and are delimited by space Output Format: Words and numbers sorted in ascending order and printed in a manner that a word is followed by a number. Constraints: 1. Text starts with a word 2. Count of words and numbers are the same. 3. Duplicate elements are not allowed 4. Words should be printed in lower case. 5. No special characters allowed in text. Sample Input and Output SNo. Input Output 1 2 Sagar 35 sanjay 12 ganesH 53 ramesh 19 Ganesh 59 suresh 19 rakesh 26 laliT 96 ganesh 12 ramesh 19 sagar 35 sanjay 53 ganesh 19 lalit 26 rakesh 59 suresh 96
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy