Previous Next
0 / 23
Module DEMO-32-108DEMO-C-32

Sort Character

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

Write a program to sort the characters of a given string in ascending ASCII order.

Constraints

Max string length: 100

Input Format

Input:

String S

Output Format

Output:

Sorted

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
Compile?9
9?Ceilmop
Sorting the characters of Compile?9 yields 9?Ceilmop.
Sample #2
Public sample
Xigua.3
.3Xagiu
Sorting the characters of Xigua.3 yields .3Xagiu.
Sample #3
Public sample
Table?2
2?Tabel
Sorting the characters of Table?2 yields 2?Tabel.
Sample #4
Public sample
Struct?4
4?Scrttu
Sorting the characters of Struct?4 yields 4?Scrttu.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings