융무의 기술블로그
article thumbnail
[SQL][HackerRank] Select By ID
Algorithm/SQL 2020. 6. 8. 22:34

https://www.hackerrank.com/challenges/select-by-id/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen Select By ID | HackerRank Query the details of the city with ID 1661. www.hackerrank.com SELECT * FROM CITY WHERE ID = 1661;

article thumbnail
[SQL][HackerRank] Select All
Algorithm/SQL 2020. 6. 8. 22:29

https://www.hackerrank.com/challenges/select-all-sql/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen Select All | HackerRank Query all columns for every row in a table. www.hackerrank.com SELECT * FROM CITY

article thumbnail
[SQL][HackerRank] Revising the Select Query II
Algorithm/SQL 2020. 6. 8. 22:25

https://www.hackerrank.com/challenges/revising-the-select-query-2/problem Revising the Select Query II | HackerRank Query the city names for all American cities with populations larger than 120,000. www.hackerrank.com select NAME from CITY where POPULATION > 120000 and COUNTRYCODE = 'USA'

article thumbnail
[SQL][HackerRank] Revising the Select Query I
Algorithm/SQL 2020. 6. 8. 22:23

https://www.hackerrank.com/challenges/revising-the-select-query/problem Revising the Select Query I | HackerRank Query the data for all American cities with populations larger than 100,000. www.hackerrank.com select * from CITY where POPULATION > 100000 and COUNTRYCODE = 'USA'

article thumbnail
[python][프로그래머스 lv2] 구명보트
Algorithm/Python 2020. 2. 25. 15:23

#다른 사람의 코드 마지막에 len(people)에서 answer를 빼가지고 결과를 구할수도있겠다는 생각을 했다. lv2에 와서는 코딩하는게 조금 더 복잡해진거같은 기분이 드는거같다. 노력해야겠다..

article thumbnail
[python][프로그래머스 lv2] 스킬트리
Algorithm/Python 2020. 1. 2. 14:33

#다른사람의 코드 skill의 원소들을 리스트화 한 다음에 pop을 써서 간단하게 코딩했다. lv2에 와서는 알고리즘이 더욱 복잡해지는거 같다.

article thumbnail
[python][프로그래머스 lv1] 예산
Algorithm/Python 2019. 12. 31. 14:26

#다른사람의 코드 while을 써서 만족할때까지 돌린다음에 sort한 d의 합에서 맨 뒤의 원소를 pop해가지고 간단하게 코드를 만든거 같다.

article thumbnail
[python][프로그래머스 lv1] 직사각형 별찍기
Algorithm/Python 2019. 12. 31. 00:38

#다른사람의 코드 리스트 형태로 만들어서 join함수를 쓰는게 신선한 방법이였던거같다. 간단한 코딩이라도 접근을 다르게하는것을 생각해보자