목록2024/12/20 (4)
susinlee 님의 블로그
오늘은 자료구조에서 스택을 배웠고, 알고리즘에서는 이진 탐색에 대해 배웠다. 빨리 얘네 둘을 마무리하고 데이터 분석에 집중하고 싶다. 마무리 한 뒤에는 코딩 문제 하루 한 두 문제 푸는 걸로도 충분하지 않을까 싶다. 주말동안에 파이썬 과제하고, 로지컬씽킹 책 완독을 목표로 달려보자.
https://school.programmers.co.kr/learn/courses/30/lessons/155652 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [문제]두 문자열 s와 skip, 그리고 자연수 index가 주어질 때, 다음 규칙에 따라 문자열을 만들려 합니다. 암호의 규칙은 다음과 같습니다.문자열 s의 각 알파벳을 index만큼 뒤의 알파벳으로 바꿔줍니다.index만큼의 뒤의 알파벳이 z를 넘어갈 경우 다시 a로 돌아갑니다.skip에 있는 알파벳은 제외하고 건너뜁니다.예를 들어 s = "aukks", skip = "wbqd", index = 5일 때, a에서 5만큼 뒤에 있는 알파벳은..
https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions/description/[문제]Write a solution to find the IDs of the users who visited without making any transactions and the number of times they made these types of visits.Return the result table sorted in any order.The result format is in the following example. [풀이] Pandasimport pandas as pddef find_customers(visits: pd...
[문제] https://leetcode.com/problems/product-sales-analysis-i/description/Write a solution to report the product_name, year, and price for each sale_id in the Sales table.Return the resulting table in any order.The result format is in the following example. [풀이]Pandasimport pandas as pddef sales_analysis(sales: pd.DataFrame, product: pd.DataFrame) -> pd.DataFrame: df = pd.merge(sales, product, ..