728x90

In 4

[leetCode] 1967. Number of Strings That Appear as Substrings in Word (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/number-of-strings-that-appear-as-substrings-in-word/ Number of Strings That Appear as Substrings in Word - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com return the number of strings in patterns that exist as a substring in word. A su..

[leetCode] 771. Jewels and Stones (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/jewels-and-stone/ Jewels and Stones - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열 jewels과 stones이 주어진다. jewels의 각 문자는(char) 보석 종류를 나타내고 stones의 문자는 내가 가진 돌을 나타낸다. stones중 보석이 몇 개인지 구하고 반환하는 문제. class Solution: def numJewelsInSt..

[leetCode] 13. Roman to Integer (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/roman-to-integer/submissions/ Roman to Integer - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 검색 없이 혼자 해결해보고 싶어서 고집부리다가 2시간 걸렸다.. 문제 푼 시간보다 그냥 포기하고 다른 사람들 답 참고할까 고민하면서 몸부림친 시간이 더 길었다 ..^^ 조금 자괴감이 들기도 하지만.. 포기하지 않았음에 의의를.. class Solu..

[leetCode] 2011. Final Value of Variable After Performing Operations (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/final-value-of-variable-after-performing-operations/ Final Value of Variable After Performing Operations - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 하나의 변수 X와 4가지 연산자를 가진 언어가 있다. ++가 붙으면 변수 X의 값을 1씩 증가, --는 1씩 감소시킨다. 초기 X값은 0이며 주..

728x90