no image
[python] [solved.ac] 10809 알파벳 찾기
LEVEL: CLASS 1 1. 내가 푼 방식 import string word = input() alphabet = list(string.ascii_lowercase) alpha_dict = {} flag = [] for a in alphabet: alpha_dict[a] = -1 for i, letter in enumerate(word): if letter in alpha_dict.keys() and letter not in flag: alpha_dict[letter] = i flag += letter else: continue print(' '.join([str(i) for i in list(alpha_dict.values())])) 문제를 보고 처음으로 푼 방식이다 거의 하드코딩으로 풀었다 imp..
2023.03.21
목표 세팅
알고리즘 공부를 계속 시도해 왔지만 찍먹으로만 해서 코테 준비가 하나도 되지 않았다 아직 늦지 않았다는 생각으로 지금부터라도 꾸준히 알고리즘 공부를 하려고 한다 목표: 프로그래머스 Lv.2 ~ Lv.3 문제 다 풀기 목표를 위처럼 세팅한 이유는 데이터 사이언스 직군의 코테에 대비하려면 저 정도는 해야 된다고 들었기 때문이다 네부캠에 NLP 트랙을 꼭 들어보고 싶기 때문에 그에 대비해 코테랑 데이터 이론 쪽을 열심히 공부해야겠다 지금은 정말 너덜너덜한 코딩 실력이지만.. 앞으로 꾸준히 하다 보면 발전할 수 있을 거라 믿는다
2023.03.20
grpcio 설치 에러
개발 환경 - 파이썬 가상환경 - python 3.9.12 - macOS M1 version 12.6 - pip 22.3 일단 grpcio 설치 시도를 하며 봤던 에러는 여러가진데 .. 그 중 제일 자주 본 에러가 error: legacy-install-failure 다. grpcio가 conda install로는 설치가 아주 간단히 되지만 내 requirements.txt에 있는 다른 패키지들이 conda install에는 없는 아이들이 있어서 conda는 포기했고 .. pip으로 설치를 해야되는 상황에서 같은 에러만 이틀째 보니 정신이 나갈 거 같았다. 정신을 놓고 검색과 무지성 설치만 반복하던 와중 grpcio를 설치할 때 노란색으로 나오던 아래의 안내가 눈에 띄었다. grpcio is being ..
2022.11.01
no image
2) Syntax of SQL [UPDATE, DELETE FROM, INSERT INTO]
Summary of Important SQL commands SELECT extracts data from a DB UPDATE updates data in a DB DELETE deletes data from a DB INSERT INTO inserts new data into a DB CREATE DATABASE creates a new DB ALTER DATABASE modifies a DB CREATE TABLE creates a new table ALTER TABLE modifies a table DROP TABLE deletes a table CREATE INDEX creates an index (search key) DROP INDEX deletes an index UPDATE used to..
2021.12.30
1.5) Syntax of SQL [LIMIT, MIN/MAX, COUNT/AVG/SUM, Subquery]
Summary of Important SQL commands SELECT extracts data from a DB UPDATE updates data in a DB DELETE deletes data from a DB INSERT INTO inserts new data into a DB CREATE DATABASE creates a new DB ALTER DATABASE modifies a DB CREATE TABLE creates a new table ALTER TABLE modifies a table DROP TABLE deletes a table CREATE INDEX creates an index (search key) DROP INDEX deletes an index LIMIT used to ..
2021.12.30
no image
[SQL Zoo] SELECT from Nobel
1. Create a query that displays Nobel prizes for 1950 SELECT * FROM nobel WHERE yr = 1950 2. Show who won the 1962 prize for Literature SELECT winner FROM nobel WHERE yr = 1962 AND subject = 'Literature' 3. Show the year and subject that won 'Albert Einstein his prize SELECT yr, subject FROM nobel WHERE winner = 'Albert Einstein' 4. Give the name of the 'Peace' winners since the year 2000, inclu..
2021.12.28
no image
[SQL Zoo] SELECT names (LIKE practice)
1. Find the countries that start with Y SELECT name FROM world WHERE name LIKE 'Y%" 2. Find the countries that end with y SELECT name FROM world WHERE name LIKE '%y' 3. Find the countries that contain the letter x SELECT name FROM world WHERE name LIKE '%x%' 4. Find the countries that end with land SELECT name FROM world WHERE name LIKE '%land' 5. Find the countries that start with C and end wit..
2021.12.28
no image
[SQL Zoo] SELECT basics
1. The example uses a WHERE clause to show the population of 'France'. Note that strings (pieces of text that are data) should be in 'single quotes'; Modify it to show the population of Germany SELECT population FROM world WHERE name = 'Germany' 2. Checking a list The word IN allows us to check if an item is in a list. Show the name and the population for 'Sweden', 'Norway' and 'Denmark'. SELECT..
2021.12.28
1) Syntax of SQL [SELECT, WHERE, ORDER BY]
Summary of Important SQL commands SELECT extracts data from a DB UPDATE updates data in a DB DELETE deletes data from a DB INSERT INTO inserts new data into a DB CREATE DATABASE creates a new DB ALTER DATABASE modifies a DB CREATE TABLE creates a new table ALTER TABLE modifies a table DROP TABLE deletes a table CREATE INDEX creates an index (search key) DROP INDEX deletes an index SELECT selects..
2021.12.27