본문 바로가기

CHIqueen

검색하기
CHIqueen
프로필사진 CHIqueen

  • 분류 전체 보기 (86)
    • 자격증 (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언어 블로그
«   2026/05   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

CHIqueen

[Intro] palindromeRearranging

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

프로그래밍/CodeSignal 2020. 3. 17. 16:39
[Intro] Are Similar?

Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays. Given two arrays a and b, check whether they are similar. def areSimilar(a, b): return sorted(a)==sorted(b) and sum([c!=d for c,d in zip(a,b)])

프로그래밍/CodeSignal 2020. 3. 17. 16:05
[Intro] Add Border

Given a rectangular matrix of characters, add a border of asterisks(*) to it. def addBorder(picture): a = len(picture[0]) + 2 return ["*" * a] + ["*" + i + "*" for i in picture] + ["*" * a] "*"+i+"*"말고 i.center()쓰는것도 좋은 방법이다.

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

Blog is powered by AXZ / Designed by Tistory

티스토리툴바