2024/01/12

μ•ˆμ„ν™˜Β·2024λ…„ 1μ›” 12일
0

였늘 배운 μ½”λ“œ


  1. Replace

πŸ’Ύ μ½”λ“œ

using System;

public class Solution {
    public int solution(string s) {
        string answer = s
            .Replace("zero","0")
            .Replace("one","1")
            .Replace("two","2")
            .Replace("three","3")
            .Replace("four","4")
            .Replace("five","5")
            .Replace("six","6")
            .Replace("seven","7")
            .Replace("eight","8")
            .Replace("nine","9");
        return int.Parse(answer);
    }
}

πŸ“– μ°Έκ³ 

μ°Έκ³ ν•  μ½”λ“œ λ‚΄μš©




🧐기본 곡뢀 λ‚΄μš©


  1. κ³΅λΆ€λ‚΄μš© 핡심 ν‚€μ›Œλ“œ
  • μ„€λͺ…




⛔️ μ—λŸ¬


  1. 였λ₯˜ λ‚΄μš©
  • μ‹œλ„, ν•΄κ²° λ°©




πŸ’­ λŠλ‚€μ 


  1. λŠλ‚€μ 
  • λŠλ‚€ 것에 λŒ€ν•œ λ‚΄μš© or ν”Όλ“œλ°±
profile
μ•ˆμ„ν™˜!

0개의 λŒ“κΈ€