전체 글(184)
-
벌써 23년 봄
오지 않을 것만 같던, 기~~~~나긴 겨울이 지나고 .. 봄이 왔다. 33년째 맞이하는 봄이지만 이번엔 뭔가 기분이 요상하고 .. 꽃이 피는게 너무 신기할 따름이고.. 너무나 많은 일과 새로운 환경에 적응하느라 정신이 없어서 그랬나보다. 회사 컴에는 카톡도 못깔어.. 그니까 티슷도 로그인 못하고 ㅠㅅㅜ ㅋㅋ 그래도 다들 똑똑하고 좋은 분들이시고, 이 나부랭이를 너무 따뜻하게 웰컴해주셔서 감사할 따름이다...! 네이버 블로그로 갈아탈까 고민했지만 그래도 하던거 하는게 낫겄지..ㅋㅋ 접을까 하는 마당에 구글 머시기에서 인증 하라고 우편 날아와서 계속 하라는 계시인가 ... ㅋㅋㅋ 했다...ㅋ 그래 좀만 더 해본다.. 짜샤..ㅋㅋ 올만의 포스팅이군.. 포스팅 할거 산더미인데... 뭐부터 쓰지?ㅎㅅㅎ?
2023.03.26 -
1859. 백만장자 프로젝트 ( D2 ) - C++
이게 ... D2인데 LeetCode에서는 비슷한 문제가 아마 미디엄이었던가..? Easy-Medium 수준이었던듯. https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=2&contestProbId=AV5LrsUaDxcDFAXc&categoryId=AV5LrsUaDxcDFAXc&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=CCPP&select-1=2&pageSize=10&pageIndex=1 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com #..
2022.09.06 -
아로마티카 마사지 키트 (페퍼민트 오일 + 나무괄사)
회사 동료가 선물로 준 아로마 오일 마사지 키트..... ! 아로마티카 꺼군....! 이런 기특한 선물을 우찌 할 생각을 했니???? 상상도 못했다. 덕분에 더운 여름 페퍼민트 오일로 매사쥐좀 했다 ㅇㅅㅇ 나무괄사가 너무 이쁘게 생겼다 ! 하트 모양이라니 ! 오일도 양이 작아보이는데, 전혀 적지 않음 . 써보면 알게 될 것이야 ~ 내 손이 크기는 하지만, ㅋㅋㅋㅋㅋㅋ 괄사의 크기는 저정도이다. 너무 커도 부담스러울거같긴함. 근데 나의 손 크기에는 살짝 작았음 .! 오일 용량이 얼마였더라.. 기억이 안남.. 근데 암튼 널널함. 충분히 쓸수있음 ! 그리고 페퍼민트 향이라고 해서 향이 세다고 하는 후기가 있는데, 오일 양을 적당히 도포하면 괜찮은듯 하다. 엄청 세지는 않고, 시간 지나면 은은하게 퍼져서 좋다...
2022.09.01 -
이시야 시로이코이비토
요즘 블로그가 너무 삭막하다... 맛난 후기 하나 올려야겠다. 이렇게 10분이면 올릴수있는데 ~! 반성해야겠다. 일본분 블로그를 보다가 ~ 이 과자를 오랫만에 봤다. 옛날에 먹어본 그 기분 ~ 맛이 생각이 안나 ~ 하지만 분명 맛있었다지 *ㅁ* ! 그래서 시켰다 !!!!!!!! 배송비 8000원 !!!!! ㅋㅋㅋㅋㅋㅋ 무슨 선물 패키지같이 포장이 되어왔다 ㅎㅎㅎ 그래서 기부니가 좋음 ㅎㅎ 포장을 까보면 저렇게 하얀 박스가 나온다. 이게 훗카이도에서 만든건가? 그래서 이렇게 하얀 산이 시그니처인가보다. 남편이 본인 훗카이도 갔다온걸 또 그리워하는걸 내가 알았지 ~ (몰랐음) 24개입 이다 ! 화이트 초콜렛 12개 , 밀크 초콜렛 12개 ! 하얀색이 당연하게 화이트 초콜렛인줄알고 짙은 색 포장 먼저 뜯었는데..
2022.09.01 -
104. Maximum Depth of Binary Tree
Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Example 1: Input: root = [3,9,20,null,null,15,7] Output: 3 Example 2: Input: root = [1,null,2] Output: 2 Constraints: The number of nodes in the tree is in the range [0, 104]. -100 right); return max(l_depth, r_d..
2022.08.30 -
Maximum Depth of BT(Binary Tree)
Given a binary tree, find height of it. Height of empty tree is -1, height of tree with one node is 0 and height of below tree is 2. ( root node 는 0으로 카운트해서 -1을 해주는 거군요. 그래서 아래의 tree 의 depth 는 2임 ! ) maxDepth() 의 pseudo code detail 을 한번 살펴보자. 거꾸로다 거꾸로! 아래의 4,5번부터 count 한다. 4,5는 자식이 없으니 0, 2는 자식(4,5) 이 있으니 1, 1은 2,3이라는 자식이 있으니 2가된다. maxDepth() 1. If tree is empty then return -1. 2. Else ! ( a ) G..
2022.08.30 -
C++ - Stringstream
The stringstream class is extremly useful in parsing input. To use stringstream, we need to include sstream header file. StringStream 은, 공백과 \n 을 제외한 문자열을 빼내는데 유용함. : Read something from the stringstream object. 예제 1. geeks for geeks geeks 를 space 로 나눈 count 값 ! 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 // Example program #include #include #include using namespace s..
2022.08.23 -
unordered_map vs map in C++
map (like set) is an ordered sequence of unique keys whereas in unordered_map key can be stored in any order, so unordered. The time complexity of map operations is O(logN) while for unordered_map, It is O(1) on average. Let us see the differences in a tabular (표로 산출된) form. # About unordered_map unordered_map is an associated container that stores elements formed by the combination of key-value..
2022.08.22 -
832. Flipping an Image
Given an n x n binary matrix image, flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means that each row of the image is reversed. For example, flipping [1,1,0] horizontally results in [0,1,1]. To invert an image means that each 0 is replaced by 1, and each 1 is replaced by 0. For example, inverting [0,1,1] results in [1,0,0]. Example 1: ..
2022.08.21