본문 바로가기

반응형
SMALL

리트코드

307. Range Sum Query - Mutable 슬 난이도 좀 올려봅시다 ! https://leetcode.com/problems/range-sum-query-mutable/ Range Sum Query - Mutable - 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 본 문제는 구간합 문제입니다. 구간합이라함은 i ~ j 까지 데이터의 합을 말합니다. 이 문제에서는 update라는 메소드가 존재를 하는데 본 메소드를 통해서 값을 변경해나갑니다. 그 변경 값에 대한 구간합도 당연히 초기화가 되겠죠. 이를 염.. 더보기
20. Valid Parentheses https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - 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 이번 문제는 굉장히 유명한 문제죠. 괄호의 짝을 구하는 문제입니다 ! 보통 자료구조 stack을 공부할 때 같이 나오는 문제로서, 쉽게 해결할 수 있는 문제입니다. 심심풀이 땅콩과 같은 문제랄까? stack을 만들어서 여는 괄호가 들어오면 stack에 집어넣습니다. 닫는 괄호가 나오면 어떻게 할.. 더보기
14. Longest Common Prefix 이번 문제는 가장 긴 접두사를 찾는 문제입니다. https://leetcode.com/problems/longest-common-prefix/ Longest Common Prefix - 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 하나의 문자열 리스트가 주어지는데, 그 문자열들의 공통된 접두사를 출력해내면 됩니다. 모두 공통된 접두사여야 합니다 ! 풀어봅시다 ! 우선 저는 분명 0번 인덱스 단어와 1번 인덱스 단어를 비교 했을 때 접두사가 무조건 있을거라 생각.. 더보기
13. Roman to Integer 오랜만에 포스팅입니다 ! 최근 너무 바쁘군요 ㅠㅠ 그렇다고 제가 공부 안하는건 아니고, 포스팅을 할 시간이 없네요 ㅠ 그래도 꾸준히 정리를 해나가곤 있습니다. 시간이 있는 날 모두 포스팅을 하도록 하겠습니다 !! https://leetcode.com/problems/roman-to-integer/ 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 오늘 문제는 Roman to Integer 입니다. 제공되는 문자를 번역하여, Inte.. 더보기

반응형
LIST