히++;

후-기/일상 후기

[신당역 커피맛집] raw espresso bar(로우 에스프레소바) | 이탈리안 에스프레소 바

집 근처 새로운 카페가 생겨서 바로 가봄 이탈리안 에스프레소를 베이스로 하는 카페라고 함 (방문당시) 오픈한 지 이제 막 일주일 된 따끈따끈한 카페☕️ 처음엔 간판이 없어서 읭 했는데 저렇게 입간판으로 해놓으니 더 트렌디 해 보이는 거 같다. 내부는 그렇게 넓진 않지만 깔끔하고 조용히 담소 즐길 수 있는 분위기였다. (메뉴판이 갬성에 한 몫함ㅎ) 에스프레소 바라 그런지 에스프레소 메뉴만 저렇게 많아요! 주류도 판매함 가격이 매우 합리적이라 일단 합격 :) 에스프레소를 즐겨 마시진 않지만 그래도 이런 데 왔으면 한잔 마셔줘야 하니까 바로 주문 잔이 너무 귀여움ㅠㅠㅠ 전용 잔들은 이탈리안 대리석을 컨셉으로 직접 주문 제작해서 도자기로 빚은 거란다. 사장님이 컨셉에 진심이심ㅋㅋㅋㅋ 예전에 경험했던 에스프레소는..

코-딩/프로그래머스

프로그래머스::키패드 누르기(python)

문제 : https://school.programmers.co.kr/learn/courses/30/lessons/67256 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 난이도 : Lv.1 풀이 def solution(numbers, hand): answer = '' # L: 왼손, R: 오른손 L = '*' R = '#' # 키패드 keypad = {0:(3,1), 1:(0,0), 2:(0,1), 3:(0,2), 4:(1,0), 5:(1,1), 6:(1,2), 7:(2,0), 8:(2,1), 9:(2,2), '*':(3,0), '#':(3,2)} for..

코-딩/Leetcode

[leetcode] 17. Letter Combinations of a Phone Number

문제 : https://leetcode.com/problems/letter-combinations-of-a-phone-number/ 난이도 : Medium 풀이 class Solution: def letterCombinations(self, digits: str) -> List[str]: dict = {'2':"abc", '3':"def", '4':"ghi", '5':"jkl", '6':"mno", '7': "pqrs", '8':"tuv", '9':"wxyz"} comb = [''] if digits else [] for d in digits: comb = [p + q for p in comb for q in dict[d]] return comb

코-딩/Leetcode

[Leetcode] 11. Container With Most Water

문제 : https://leetcode.com/problems/container-with-most-water/ 난이도 : Medium 풀이 class Solution: def maxArea(self, height: List[int]) -> int: l, r = 0, len(height) - 1 water = 0 while l < r: water = max(water, (r - l) * min(height[l], height[r])) # 저장할 수 있는 최대 물 if height[l] < height[r]: l += 1 else: r -= 1 return water 대학생 때 풀었던 거 같은데.. 오랜만에 보는 문제ㅎㅎ 왼쪽에서 움직이는 포인터(l)와 오른쪽에서 움직이는 포인터(r)를 두고 저장할 수 있는..

코-딩/Leetcode

[Leetcode] 219. Contains Duplicate II

문제 : https://leetcode.com/problems/contains-duplicate-ii/description/ 난이도 : Easy 풀이 class Solution: def containsNearbyDuplicate(self, nums: List[int], k: int) -> bool: nDict = {} for i, n in enumerate(nums): if n in nDict and abs(i - nDict[n])

코-딩/Leetcode

[leetcode] 205. Isomorphic Strings

문제 : https://leetcode.com/problems/isomorphic-strings/description/ 난이도 : Easy 풀이 class Solution: def isIsomorphic(self, s: str, t: str) -> bool: sDict = [] tDict = [] for idx in s: sDict.append(s.index(idx)) for idx in t: tDict.append(t.index(idx)) if sDict == tDict: return True return False 처음 나타내는 문자의 인덱스를 찾아주는 index 함수를 사용해서 각 단어들의 인덱스를 저장해준다. 그리고 그 인덱스 사전들끼리 비교해주면 된다!

힞뚜루마뚜루
'분류 전체보기' 카테고리의 글 목록 (4 Page)