Git Product home page Git Product logo

algorithm-study's Introduction

Algorithm-Study

파이썬 함수

  • [i for i,v in enumerate(list) if v == '']: 조건문 만족하는 index값 출력
  • eval(): 문자열 수식 계산
  • x = y[:]: 리스트 얕은 복사
  • f'{}': f-string
  • ''.join(list): 문자열 붙이기
  • continue: 실행코드 건너뛰기
  • break: 반복문 끝내기
  • zip: iterable한 자료형 묶기
  • list(itertools.product(*list)): 곱집합
  • list.count(조건): 조건을 만족하는 리스트 원소
  • list(map(함수, 리스트)): 리스트에 함수 적용

아이디어

  • 2차원 좌표로 생각하기
  • 레퍼런스 활용하기
  • BFS: 너비우선탐색, deque(), popleft() or pop(0)
  • DFS: 깊이우선탐색, list(), pop()

데이터 분석

  • groupby
  • pivot_table

SQL 함수

  • LIMIT: 출력 개수 선정
  • DESC: 내림차순 정렬
  • ASC: 오름차순 정렬
  • DISTINCT: 중복 제거
  • HAVING: 조건
  • HOUR: 시간
  • BETWEEN A AND B: A와 B 사이
  • LIKE "%A%": "A"를 포함하는 문자
  • CASE WHEN 조건 THEN 값1 ELSE 값2 END AS 변수: 조건문
  • DATE_FORMAT(DATETIME 변수, '%Y-%m-%d'): 날짜 변환

algorithm-study's People

Contributors

bominkm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.