일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- DeepLearning
- SQL
- select
- kakao
- Numpy
- backward
- sort
- PPMI
- MySQL
- FullyConnectedLayer
- algorithm
- Programmers
- CBOW
- boj
- hash
- affine
- 딥러닝
- Sigmoid
- 파이썬
- 신경망
- dl
- 프로그래머스
- Stack
- Heap
- Word2vec
- stak
- Python
- skip-gram
- que
- 자연어처리
- Today
- Total
목록분류 전체보기 (105)
혜온의 이것저것
문제 이해 및 풀이 맨 처음에는 set을 이용해서 빼기를 하면 된다고 생각했다 하지만 동명이인이 있는 경우에는 두 이름을 하나로 합쳐버리기 때문에 원하는 결과를 얻을 수 없었다. 다르게 생각한 방법은 두 명단을 정렬한 후 같은 위치에 다른 이름이 있는 경우 participant의 이름을 return해주었다. 그리고 다른 경우를 발견하지 못한 경우에는 participant의 마지막 이름이 완주하지 못한 경우이므로 마지막 이름을 return하였다. 최종 코드 def solution(participant,completion): participant.sort() completion.sort() for i in range(len(completion)): if participant[i]!=completion[i]:..
문제 이해 및 풀이 정답이 될 수 있는 값은 N/2이거나 포켓몬 종류의 수이다. 따라서 두 수 중에 더 작은 값을 return 해주면 된다. 포켓몬 종류의 수를 구하기 위해서 set을 사용해주었다. 최종 코드 def solution(nums): num1=len(nums)/2 num2=len(set(nums)) return min(num1,num2) 문제출처 프로그래머스 코딩테스트 고득점 kit https://school.programmers.co.kr/learn/courses/30/lessons/1845 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/K11pS/btrMUkXTOA6/xMJEz72AVNKjsqoNigGKxK/img.png)
https://www.hackerrank.com/challenges/interviews/problem?isFullScreen=true Interviews | HackerRank find total number of view, total number of unique views, total number of submissions and total number of accepted submissions. www.hackerrank.com 문제 Samantha interviews many candidates from different colleges using coding challenges and contests. Write a query to print the contest_id, hacker_id, na..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bRNO0u/btrMMah3uqG/qX07x0019Or2YNDc1QRdU0/img.png)
https://www.hackerrank.com/challenges/symmetric-pairs/problem?isFullScreen=true Symmetric Pairs | HackerRank Write a query to output all symmetric pairs in ascending order by the value of X. www.hackerrank.com 문제 You are given a table, Functions, containing two columns: X and Y. Two pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if X1 = Y2 and X2 = Y1. Write a query to output all suc..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/c2LdkF/btrMNL26acd/33KCarshbTjlwgrhvY6GF1/img.png)
https://www.hackerrank.com/challenges/placements/problem?isFullScreen=true Placements | HackerRank Write a query to output the names of those students whose best friends got offered a higher salary than them. www.hackerrank.com 문제 You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID and Friend_ID (ID of the ONLY ..