Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

06 String --> 03 Convert to Roman number #46

Open
FazeelUsmani opened this issue Jan 24, 2021 · 0 comments · Fixed by #77
Open

06 String --> 03 Convert to Roman number #46

FazeelUsmani opened this issue Jan 24, 2021 · 0 comments · Fixed by #77

Comments

@FazeelUsmani
Copy link
Owner

  1. Convert to Roman No
    Basic Accuracy: 49.9% Submissions: 13739 Points: 1
    Given an integer n, your task is to complete the function convertToRoman which prints the corresponding roman number of n. Various symbols and their values are given below.

I 1
V 5
X 10
L 50
C 100
D 500
M 1000

Example 1:

Input:
n = 5
Output: V

Example 2:

Input:
n = 3
Output: III

Your Task:
Complete the function convertToRoman() which takes an integer N as input parameter and returns the equivalent roman.

Expected Time Complexity: O(log10N)
Expected Auxiliary Space: O(log10N * 10)

Constraints:
1<=n<=3999

@FazeelUsmani FazeelUsmani linked a pull request May 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant