일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- pass by reference
- baekjoon
- Python
- 백준
- 티스토리챌린지
- 배열
- predictive analysis
- 오블완
- array
- vscode
- string
- 함수
- Deep Learning
- OOP
- programming
- 알고리즘
- 포인터
- 파이썬
- assignment operator
- pointer
- 반복문
- const
- function
- Class
- Object Oriented Programming
- Data Science
- 문자열
- raw data
- C++
- Pre-processing
- Today
- Total
목록2025/03/16 (2)
Channi Studies

Sorting Sorting is the process of converting a list of elements into ascending (or descending) order.You may remember the importance of sorting in binary search from my previous post. In the following few posts, we will be studying about the types of sorting algorithms. These are some examples of (un)sorted data(3, 9, 44, 18, 76): Not sorted(20, 15, 10, 5, 0): Sorted into descending order(99.87,..

https://leetcode.com/problems/maximal-square/description/ 이 문제를 풀기 위해서 nested for loop을 사용했습니다.Input n x m 에 맞춰 각 반복문에서 현재 위치 기준으로 좌단, 상단, 좌상단 index를 모두 확인하여 그 중 최솟값에 + 1을 하는 전략을 취했습니다. 만약 현재 인덱스가 0이라면 해당 위치에서 구성할 수 있는 최대 사각형의 넓이 또한 0이므로, 즉시 다음 반복문으로 넘어갑니다. 매 반복문의 마지막에 max_num을 업데이트 해주면서, 최종적으로 길이의 제곱을 반환해 넓이 값을 리턴합니다. def maximalSquare(self, matrix: List[List[str]]) -> int: n = len(matrix) ..