전체 글

· 잡담
그동안 코테준비를 멈추고 ADSP 자격증 준비를 했다. ADSP는 응시자격이 없다. ADP(데이터분석전문가)부터 응시자격이 존재한다. 우선 나는 가장 유명한 교재로 공부를 시작했다. 인터넷을 뒤져보니 대부분의 사람들이 비전공자는 3주?정도 전공자는 짧게는 3일~2주정도 잡고 공부한다고 했다. 나는 전공자이긴 하지만 자격증 시험이 처음이라 3주의 넉넉한 시간을 잡고 공부를 시작했다. [공부 방법] 우선 1과목은 그냥 책을 술술 읽었다. 외워야 할 것 같은건 외우고 과목별 바로 뒤에 있는 예상문제만 3~4번씩 반복해서 안틀릴때 까지 풀었던 것 같다. 다음으로 2과목에 들어가니까 외워야할 것처럼 생긴게 너무 많아서 이렇게 무식하게 공부하면 안될 것 같아서 뒤져보니까 https://www.youtube.com/..
[구명보트] My answer def solution(people, limit): answer = 0 people.sort() while(people!=[]): #wmin=min(people) wmin=people[0] #wmax=max(people) wmax=people[-1] if(wmin+wmax1): people=people[1:-1] #people.remove(wmin) #people.remove(wmax) else: people=people[1:] #people.remove(wmin) else: answer+=1 people=people[:-1] #people.remove(wmax) return answer ------------------------------------------------..
[7주차_입실 퇴실]-[위클리챌린지] My answer-시간초과 def solution(enter, leave): answer = [0]*len(enter) n=len(enter) for i in range(1,n+1): for j in range(1,n+1): if(i!=j): etmpi, etmpj=enter.index(i),enter.index(j) ltmpi, ltmpj=leave.index(i), leave.index(j) if(etmpi>etmpj and ltmpi
[방문 길이]-[Summer/Winter Coding(~2018)] My answer def solution(dirs): answer = set() posx,posy,tmpx,tmpy=0,0,0,0 for i in dirs: tmpx,tmpy=posx,posy if(i=='U' and posy!=5): posy+=1 elif(i=='D' and posy!=-5): posy-=1 elif(i=='R' and posx!=5): posx+=1 elif(i=='L' and posx!=-5): posx-=1 if((posx,posy)==(tmpx,tmpy)): continue answer.add((posx,posy,tmpx,tmpy)) answer.add((tmpx,tmpy,posx,posy)) return le..
[방금그곡]-[2018 KAKAO BLIND RECRUITMENT] My answer # 총 재생길이를 구해주는 함수 def timecalc(a,b): tmp,tmp2=[],[] tmp=a.split(':') tmp2=b.split(':') tmp=[int(i) for i in tmp] tmp2=[int(i) for i in tmp2] return (tmp2[0]-tmp[0])*60+tmp2[1]-tmp[1] '''#을 치환해주는 함수''' def substitution(a): alt={'C#':'H','D#':'I','F#':'J','G#':'K','A#':'L','E#':'M'} i=0 tmp="" while('#' in a): if(a[i]=='#'): tmp=a[i-1]+a[i] a=a[:i-1]..
[파일명 정렬]-[2018 KAKAO BLIND RECRUITMENT] My answer def solution(s): answer=[] tmp=[[ 0 for i in range(4)] for j in s] for index,i in enumerate(s): for j in range(len(i)): if(i[j].isdigit()==1): tmp[index][0]=i[:j].upper() for k in range(j,len(i)): tmp[index][3]=index if(k==len(i)-1): tmp[index][1]=int(i[j:]) break if(k==j+5 or i[k].isdigit()==0): tmp[index][1]=int(i[j:k]) tmp[index][2]=i[k:] brea..
[올바른 괄호] My answer-효율성 저하 def solution(s): answer = True s=list(s) #우선 갯수가 다르거나 맨앞이 ) 이거나 맨뒤가 ( 이면 바로 끝냄 answer= False if (s.count('(')!=s.count(')') or s[0]==')' or s[-1]=='(') else True if(answer==False): return answer while(len(s)!=0): if(s[0]=='('): for j in range(1,len(s)): if(s[j]==')'): flag=1 break if(flag==0): return False else: del s[0],s[j-1] flag=0 else: return False return True Anot..
창빵맨
Let's be Developers