Programming Question — Leetcode 13

  1. There can be two conditions in this question, first is if it is a normal number like ‘III’ or ‘XX’ or ‘V’ , we just keep adding corresponding integer number of that character.
  2. or there can be characters like ‘IV’(4) or ‘XLIV’(44). In these kind of characters we can see that if we generally add all characters they will become like :






Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

IDEP Testnet Sanford. Task 3 — NFT.

{UPDATE} Campo a través de múltiples conducción vehículo 17 Hack Free Resources Generator

Open Source: I can do it

Programming for a life sciences student | LGMVIP | Data Science Intern

Dependency injection in Vert.x with Dagger 2

How the No-Code Ecosystem will Affect Developers

Build micro-organizations, not just micro-services

Android — Display Custom Toast Messages

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raj shukla

Raj shukla


More from Medium

The Blind 75 Leetcode Series: Longest Substring Without Repeating Characters

Stack In Data Structures

[Leetcode 525] Contiguous Array

Minimum Operations to Reduce X to Zero — LeetCode