본문 바로가기

Altiora Petamus

검색하기
Altiora Petamus
프로필사진 Haril Song

  • 분류 전체보기 (78)
    • Java (10)
      • Spring Framework (8)
    • Python (2)
    • DataBase (1)
    • MyProject (4)
    • 삽질하는 Error들 (5)
    • 1day-1algorithm (50)
    • Programming (1)
    • Tools (2)
      • IntelliJ IDEA (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • GitHub
«   2025/06   »
일 월 화 수 목 금 토
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
  • 프로그래머스
  • java
  • 2981
  • Greedy
  • Dijkstra
  • 2018 KAKAO BLIND RECRUITMENT
  • API
  • springboot
  • Spring
  • BFS
  • beandefinitionstoreexception
  • Python
  • 코딩테스트
  • 최단경로
  • brute force
  • spring security
  • 파이썬
  • 소수
  • javascript
  • counting elements
  • applicationeventpublisher
  • error
  • 탐욕법
  • HTTP
  • 라이브템플릿
  • 알고리즘
  • algorithm
  • codility
  • 백준
  • 문자열
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록counting elements (1)

Altiora Petamus

Perm Check

PermCheck coding task - Learn to Code - Codility PermCheck coding task - Learn to Code - Codility Check whether array A is a permutation. app.codility.com 🤔생각해보기 주어진 배열이 순열이 맞는지 검사하는 문제 set() 으로 변환 후 비교하면 순서에 상관없이 동등한지 비교가 가능하므로 간단하게 해결이 가능하다. def solution(A): n = set([i for i in range(1, len(A) + 1)]) return 1 if n == set(A) else 0

1day-1algorithm 2021. 8. 23. 18:36
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바