Reverse the input - MATLAB Cody - MATLAB Central

Problem 2315. Reverse the input

Difficulty:Rate

Given an input (n), produce an output in the reverse order with out using string variables or string function.

Example

 x = [123]
 y = [321]

NOTE: This is not x = [1, 2, 3]

This should work for all inputs.

Example

 x = [ 96721]
 y = 12769

Solution Stats

31.35% Correct | 68.65% Incorrect
Last Solution submitted on Nov 22, 2024

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0

Problem Recent Solvers89

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!