Stack
![[Data Structure] Monotonic Stack](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbwGlZP%2FbtsJ1GvKphv%2FAAAAAAAAAAAAAAAAAAAAABAN4gLy70U7CzoXJra9CL4shoG9jzTz0QvRUZBYHnPB%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dr4t3u%252F305rnEIvo2%252FoMsVjYm1do%253D)
[Data Structure] Monotonic Stack
Monotonic Stack이라는 구조에 대해 알아봅시다.오늘 LeetCode의 Daily Question이 Monotonic Stack을 활용하는 문제이기 때문에 제대로 한번 알아보려고 합니다. 특징Monotonic의 사전적 의미를 찾아봅시다.단조로운 Stack? 무슨 의미일까요?2번 의미처럼 값이 증가 혹은 감소하는 단방향 변화만 존재하는 Stack을 의미합니다.// General StackBottom [4,3,12,5,6,1,31,7,13] Top// Monotonic Increasing StackBottom [1,3,4,5,6,7,12,13,31] Top// Monotonic Decreasing StackBottom [31,13,12,7,6,5,4,3,1] Top 그럼 Stack에 값을 추가할 때..
![[SwiftUI] View Containers](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbjiP9d%2FbtrAdZGnlhU%2FAAAAAAAAAAAAAAAAAAAAAJlxo6T7DMDlRO52Lu_wBms4uuQq1SE9aKGnoRamZto_%2Fimg.gif%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DGMnysYU5b53jBwfoVWPRUC2bvXo%253D)
[SwiftUI] View Containers
오늘 SwiftUI의 UI 요소들을 알아보자. 오늘의 문서 https://developer.apple.com/documentation/swiftui View Containers에는 HStack, VStack, ZStack, LazyHStack, LazyVStack, LazyHGrid, LazyVGrid, GridItem, List, ForEach, ScrollView, Form, Group, GroupBox, Section, Spacer, Divider, NavigationView, TabView, Alert, ActionSheet, EmptyView, AnyView, TupleView 등 굉장히 다양한 요소들이 존재한다. 이걸 전부 하나의 View에 담아보려고 했는데, TabView와 Navigatio..