일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 파이썬 릿코드
- 릿코드 파이썬
- 파이썬릿코드풀기
- 파이썬 알고리즘
- 파이썬릿코드
- 파이썬 프로그래머스
- 코틀린기초
- python Leetcode
- python zip_longest
- python 알고리즘
- python xor
- 릿코드풀이
- leetcode 풀기
- 릿코드풀기
- leetcode풀기
- LeetCode
- 알고리즘풀이
- python priority queue
- 파이썬 알고리즘 풀기
- 파이썬알고리즘
- 잇츠디모
- binary search
- 파이썬알고리즘풀기
- python 릿코드
- 릿코드 풀기
- python sorted
- 알고리즘풀기
- 상가수익률계산기
- 릿코드
- leetcode풀이
- Today
- Total
목록python알고리즘 (3)
소프트웨어에 대한 모든 것

1720. Decode XORed Array https://leetcode.com/problems/decode-xored-array/ Decode XORed Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) XOR은 교환법칙 결합법칙이 성립한다. 1 ^ x = 1, 좌변의 1을 제거하기 위해서 양변에 1^을 취한다 1 ^ 1 ^ x = 1 ^ 1, 0 ^ x = 0, x = 0 위 과정을 반복한다. class Solution: def..

1859. Sorting the Sentence https://leetcode.com/problems/sorting-the-sentence/ Sorting the Sentence - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) 1. sentence을 space로 split 2. 단어의 수를 세고, 단어 수 사이즈 만큼 array 생성 3. 각 단어를 반복문을 돌면서 단어의 마지막을 indexing해서 word position 획득 4. arr..

https://leetcode.com/problems/power-of-two/ Power of Two - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) 2의 승수는 A & (A-1) = 0을 만족 예시) 16 -> 10000, 16-1 -> 01111, 16 & 15 -> 10000 & 01111 = 0 class Solution: def isPowerOfTwo(self, n: int) -> bool: if n == 0: return False..