You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta
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 inpu
Dictionary를 써서 해결했다. 저기 두줄의 주석은 문제를 제대로 이해하지 못한 난독증으로 인한 결과.반성의 의미로 남겨두었다. 내가 신고한 결과가 처리된 메일 받는 수만 카운팅 하는건데, 내가 신고 당해서 메일 받는 것도 추가로 카운팅 해서 틀렸었다.Defaul
무난하다고 생각했다. 다른 사람들 답을 보기 전까진...이걸 두줄로 풀다니... 교집합이랑 count()를 사용해서 코드가 엄청 짧아졌다.속도도 더 빠르지 않을까....화이팅.
문제를 읽으면서 딱 정규표현식을 써야겠구나 라고 생각했다. 하지만 정규표현식 사용법이 잘 기억나지 않아서 다른방법이 없을까 하고 한참 고민을 했다.이것 저것 찾아보다가 String.punctuation 이라는걸 알게 되었다.정규 표현식 없이도 특수문자들을 걸러낼 수 있