본문 바로가기

CHIqueen

검색하기
CHIqueen
프로필사진 CHIqueen

  • 분류 전체 보기 (85)
    • 자격증 (1)
      • CPPG (1)
    • 포렌식 (46)
      • CTF (39)
      • Analysis (6)
      • 도구 (0)
      • 삽질 (1)
    • 프로그래밍 (31)
      • Python (9)
      • CodeSignal (20)
      • Golang (2)
    • 플젝 (2)
      • HWPX (2)
    • 문화생활 (2)
      • 은또영 (2)
      • 뮤지컬 (0)
      • 1일 1단편영화 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • Go언어 블로그
«   2025/09   »
일 월 화 수 목 금 토
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
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

CHIqueen

[Intro] arrayMaximalAdjacentDifference

def arrayMaximalAdjacentDifference(inputArray): return max([abs(inputArray[i]-inputArray[i+1]) for i in range(len(inputArray)-1)])

프로그래밍/CodeSignal 2020. 3. 17. 16:52
[Intro] areEquallyStrong

def areEquallyStrong(yourLeft, yourRight, friendsLeft, friendsRight): return (yourLeft == friendsLeft or yourLeft == friendsRight) and (yourRight == friendsLeft or yourRight == friendsRight) 굉장히 쓰잘떼기 없어보이지만 통과다 return {yourLeft, yourRight} == {friendsLeft, friendsRight} 파이썬의 set을 잘 사용한 예시

프로그래밍/CodeSignal 2020. 3. 17. 16:45
[Intro] palindromeRearranging

def palindromeRearranging(inputString): return sum([inputString.count(i)%2 for i in set(inputString)])

프로그래밍/CodeSignal 2020. 3. 17. 16:39
Prev 1 ··· 9 10 11 12 13 14 15 ··· 29 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바