| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Generator
- iterator
- 315. Count of Smaller Numbers After Self
- Regular Expression
- Decorator
- attribute
- 30. Substring with Concatenation of All Words
- 715. Range Module
- 파이썬
- Convert Sorted List to Binary Search Tree
- DWG
- Protocol
- 운영체제
- kaggle
- data science
- 시바견
- Python Code
- Substring with Concatenation of All Words
- Python
- Python Implementation
- LeetCode
- 43. Multiply Strings
- shiba
- 컴퓨터의 구조
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- concurrency
- Class
- 밴픽
- t1
Archives
- Today
- Total
목록Bit Operations (1)
Scribbling
Python Int Representation & Bit Operations
Each of programming language has their own way of 'Integer Representation'. In most languages, integers are represented with 32 bits and the most significant bit (the leftmost bit) is for the sign of it. As a result, usual '32-bit int representation' has range of [-2**31+1, 2**31]. * 2**31 (INT_MAX) is 0xFFFFFFFF * -2*31+1 (-INT_MAX) is 0x80000000 (by 2's complement) However, python has somewhat..
Computer Science/Python
2022. 1. 13. 12:05