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 a string s, find the length of the longest substring without repeating characters.중복되지 않는 charter로 가장 긴 substring을 만드는 문제Comment 1: abcdeff에서 ab
숫자를 로마숫자로 바꾸는 문제각 자릿수별로 숫자를 나누는게 좀 애매해서 그냥 str으로 변경 후 index로 읽었다..your input: 3output: ""expetected: "III"digit ==5 상태가 누락됨.digit이 5미만 일때도 (digit-5) 수
두번째 행에서 f1 = A, L, I ,G f2= P,S,I 인데 G가 누락 된채 "PAHNAPLSIIYIR" 라는 결과를 얻었다. 이는 while loop 에서 f1이 끝까지 순회하지 못 했기 때문임.주의할점은 이제 N=13이면 Index는 12까지고 마지막 원
Codes Trials 1 문제에서 요구한 답은 index가 아니고 value다... 정확히 보고 return하자. 중복된 답은 없이 하라고 했다. index로 착각하여 중복은 없을거라했는데 value일 경우 중복답이 발생한다. intput: [-1,0,1,2,
어렵게 생각했다..한 글자씩 읽어가며 처리하려고했다. 그러다보니 경우의수도많았고 예외처리가 많아졌다.우연히 알게되었는데. str.split() 기능을 쓰면 너무나도 간단하게 해결이 된다...substring에서 index 구할 때 조심하자.find() index() 구
문제링크괄호의 짝을 찾아 맞추는 문제다.Example 1:상기 문제에서 볼수 있듯이 여러가지 답이 나올 수 있다고 하여, 여러가지 경우의수가 생길 수 있기에 recursive 문제로 생각했다.하지만 return str을 해야한다면 재귀함수로 해결하기에 뭔가 애매했다.
Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop ope