• ## Leetcode problem solution [email protected] construct an array by using the most unit bits of Roman numerals + construct a number algorithm

Time：2022-6-25

Title Description Roman numerals contain the following seven characters: I, V, x, l, C, D, and m. Character valueI 1V 5X 10L 50C 100D 500M 1000For example, the Roman numeral 2 is written as II, that is, two parallel ones. 12 is written as XII, which is x + II. 27 is written as XXVII, […]

• ## Roman numeral to integer, written by users whose Java execution time exceeds 100%

Time：2022-6-1

Execution time: 2 ms, beating 100.00% of users in all Java submissions subject  https://leetcode-cn.com/problems/roman-to-integer   Roman numerals contain the following seven characters: I, V, x, l, C, D, and m. Character value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, the Roman numeral 2 is written as […]

• ## 12. Leetc – Roman

Time：2022-5-19

Method 1: greedy algorithm #include <stdio.h> #include <string.h> #include <stdlib.h> char * intToRoman(int num) { struct intToRoman { int num; char *str; } list[13] = { {1000, “M”}, {900, “CM”}, {500, “D”}, {400, “CD”}, {100, “C”}, {90, “XC”}, {50, “L”}, {40, “XL”}, {10, “X”}, {9, “IX”}, {5, “V”}, {4, “IV”}, {1, “I”}, }; int count[13] […]

• ## [daily algorithm / brush through leetcode] 12 Integer to Roman numeral (medium)

Time：2022-4-21

Click here to view more content related to algorithmic interview~ Title Description Roman numerals contain the following seven characters: I, V, x, l, C, D and m. Character value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, the Roman numeral 2 is written as II, which is […]

• ## [daily algorithm / brush through leetcode] 13 Roman numeral to integer (simple)

Time：2022-4-20

Click here to view more content related to algorithmic interview~ Title Description Roman numerals contain the following seven characters: I, V, x, l, C, D and m. Character value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, the Roman numeral 2 is written as II, which is […]

• ## Leetcode-012 – integer to Roman numeral

Time：2022-2-5

Integer to Roman numeral Roman numerals contain the following seven characters: I, V, x, l, C, D and m. Character valueI 1V 5X 10L 50C 100D 500M 1000For example, the Roman numeral 2 is written as II, which is two parallel ones. 12 is written as XII, which is x + II. 27 is written […]

• ## Leetcode-013 – Roman numeral to integer

Time：2022-2-4

Roman numeral to integer Roman numerals contain the following seven characters: I, V, x, l, C, D and m. Character valueI 1V 5X 10L 50C 100D 500M 1000For example, the Roman numeral 2 is written as II, which is two parallel ones. 12 is written as XII, which is x + II. 27 is written […]

• ## Leetcode No.13 Roman to integer (c + + implementation)

Time：2021-12-12

1. Title 1.1 English title Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just two one’s added together. 12 is written […]

• ## Leetcode questions 13 and 14 — Roman numerals to integers, longest common prefix

Time：2021-12-2

1. Leetcode question 13Requirements: https://leetcode-cn.com/probl… Important note: usually, the small Roman numerals are to the right of the large ones. But there are also special cases. For example, 4 is not written as IIII, but IV. The number 1 is on the left of the number 5, and the number represented is equal to the […]

• ## Leetcode brush notes – simple introductory questions

Time：2021-11-30

Leetcode notes Title Source:Leetcode Split balanced string In a balanced string, the number of ‘l’ and ‘R’ characters is the same. Give you a balanced string s, please divide it into as many balanced strings as possible. be careful: each split string must be a balanced string. Returns the maximum number of balanced strings that […]

• ## [leetcode] the day of leetcode

Time：2021-5-11

Topic content Roman numerals contain the following seven characters:   I，   V，   X，   L，C，D   and   M。 character numerical value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, the Roman numeral 2 is written as   II  ， That is, two parallel ones. […]

• ## The journey of leetcode [simple part] – 13. Roman to integer

Time：2021-4-10

subject Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one’s added together. Twelve is written as, XII, which is simply X + […]