Computer Science/CODINGTEST_PRACTICE 썸네일형 리스트형 [LeetCode] 151. Reverse Words in a String 기록 https://leetcode.com/problems/reverse-words-in-a-string/ Reverse Words in a String - 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 단어들을 뒤집는 문제로 스페이스 처리가 약간 귀찮은 문제이다. 일단 기능적으로 돌아가기만 하도록 빨리 짜봄 class Solution: def reverseWords(self, s: str) -> str: words = [] word = '' for c in s: i.. 더보기 [LeetCode] 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 괄호가 있는 input이 valid한지 판별하는 문제이다. 앞에서 열었던 괄호들을 FILO로 처리해야 하므로 stack을 통해서 구현하면 되겠다 생각 파이썬에서는 스택이 필요하면 리스트를 사용한다. push는 appned()로 pop은 pop()으로 사용 대응하는 무엇인가를 찾는일이므로 참조테이.. 더보기 [LeetCode] 14. Longest Common Prefix (python3) 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 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: In.. 더보기 [LeetCode] 13. Roman to Integer (python3) 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 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.. 더보기 [LeetCode] 9. Palindrome Number (python3) Palindrome Number - LeetCode Palindrome Number - 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 Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, 121 is a palindrome while 123 is not. Exa.. 더보기 [LeetCode] 1. Two Sum (python3) LeetCode Problem: https://leetcode.com/problems/two-sum/ Two Sum - 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 1. Two Sum Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input wou.. 더보기 [LeetCode] 975. Odd Even Jump (python3) LeetCode Problem: https://leetcode.com/problems/odd-even-jump/ Odd Even Jump - 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 975. Odd Even Jump You are given an integer array arr. From some starting index, you can make a series of jumps. The (1st, 3rd, 5th, ...) jumps in the seri.. 더보기 [LeetCode] 929. Unique Email Addresses (python3) LeetCode Problem: https://leetcode.com/problems/unique-email-addresses/ Unique Email Addresses - 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 929. Unique Email Addresses Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase le.. 더보기 이전 1 2 다음