본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (160)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (140)
      • Python (86)
      • SQL (54)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   2025/08   »
일 월 화 수 목 금 토
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 29 30
31
Tags
  • counter
  • join
  • 파이썬
  • Level2
  • 프로그래머스
  • sql
  • time complexity
  • tableau
  • cte
  • python
  • lv4
  • mysql
  • programmers
  • AARRR
  • coding test
  • LeetCode
  • 코딩테스트
  • Growth hacking
  • hackerrank
  • 완전탐색
  • level4
  • Queue
  • Stack
  • import re
  • itertools
  • 코딩
  • 코테
  • coding
  • 조합
  • lambda
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록132267 (1)

ror_coding

[Programmers] 콜라 문제 - 132267

lambda a, b, n : max(n-b, 0) // (a-b)*b  람다 사용 .. 꼭 이해 하자!! Question 콜라를 받기 위해 마트에 주어야 하는 병 수 a, 빈 병 a개를 가져다 주면 마트가 주는 콜라 병 수 b, 상빈이가 가지고 있는 빈 병의 개수 n이 매개변수로 주어집니다. 상빈이가 받을 수 있는 콜라의 병 수를 return 하도록 solution 함수를 작성해주세요.  Point lambda 사용 : Code 1while 사용 : Code 2  Code 1 : lambda 사용 solution = lambda a, b, n : max(n-b, 0) // (a-b)*b Code 2 : my code def solution(a, b, n): answer = 0 while n/..

Coding Test/Python 2024. 10. 12. 11:08
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바