전체 글
-
Leetcode 863. All Nodes Distance K in Binary Tree개발/Leetcode 2023. 7. 11. 12:34
https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/description/ All Nodes Distance K in Binary Tree - LeetCode Can you solve this real interview question? All Nodes Distance K in Binary Tree - Given the root of a binary tree, the value of a target node target, and an integer k, return an array of the values of all nodes that have a distance k from the target node. leetcode.com 문제 ..
-
Leetcode 2024. Maximize the Confusion of an Exam개발/Leetcode 2023. 7. 7. 12:14
https://leetcode.com/problems/maximize-the-confusion-of-an-exam/description/ Maximize the Confusion of an Exam - LeetCode Can you solve this real interview question? Maximize the Confusion of an Exam - A teacher is writing a test with n true/false questions, with 'T' denoting true and 'F' denoting false. He wants to confuse the students by maximizing the number of consecutive leetcode.com 문제 선생님..
-
Leetcode 209. Minimum Size Subarray Sum개발/Leetcode 2023. 7. 6. 11:42
https://leetcode.com/problems/minimum-size-subarray-sum/description/ Minimum Size Subarray Sum - LeetCode Can you solve this real interview question? Minimum Size Subarray Sum - Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there is no such subarr leetcode.com 문제 양수로 이루어진 nums배열과 함께..
-
Leetcode 1493. Longest Subarray of 1's After Deleting One Element개발/Leetcode 2023. 7. 5. 11:40
https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/description/ Longest Subarray of 1's After Deleting One Element - LeetCode Can you solve this real interview question? Longest Subarray of 1's After Deleting One Element - Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the res..
-
Windows 배경화면으로 설정된 이미지 저장 경로일상/정보 2023. 7. 5. 11:32
마음에 들은 이미지를 배경화면으로 저장한 후 다른곳에서 배경화면으로 설정한 이미지를 사용하고 싶어 검색 내문서 폴더에 찾아보니 이미지가 없어 곤혹을 겪은 경우가 있었습니다. 하지만 배경화면 역시 다른 곳에 저장해둔 이미지를 사용할 것이라는 추측으로 구글링을 해봤더니 추측과 같이 동작함을 찾아내 저장 경로를 찾을 수 있었습니다. C:\Users\사용자명\AppData\Roaming\Microsoft\Windows\Themes\CachedFiles Windows11 기준으로 위 경로에 찾아가면 설정된 배경화면의 이미지 파일이 있음을 볼 수 있습니다! (사용자명에는 현재 사용자를 입력하시면 됩니다!) 출처 https://answers.microsoft.com/ko-kr/windows/forum/all/win1..
-
Leetcode 137. Single Number II개발/Leetcode 2023. 7. 4. 09:11
https://leetcode.com/problems/single-number-ii/description/ Single Number II - LeetCode Can you solve this real interview question? Single Number II - Given an integer array nums where every element appears three times except for one, which appears exactly once. Find the single element and return it. You must implement a solution with a lin leetcode.com 문제 정수 배열인 nums가 주어진다. 이 배열은 한 원소만 정확히 한번만 ..
-
한국조폐공사 코딩테스트 후기일상/직장 2023. 7. 3. 18:49
2023년 7월 3일 한국조폐공사 입사를 위해 코딩테스트에 응시했다. 상반기가 끝난 가뭄같은 시기에 단비같은 채용공고 덕에 모든 힘을 쏟아 부어야겠다 라는 생각아래 며칠 동안 Leetcode에서 살다 싶이 했었다. 1. 코딩테스트 개요 한국조폐공사 코딩테스트는 3문제 120분이 주어졌다. 작성가능한 언어는 C# C++ JAVA GO Swift Python 등 이었고 Python에 제일 익숙한 지라 Python을 사용했다 2. 문제 문제는 간단하게 분류부터 말하자면, 정렬과 관련된 문제, 배열, 그리고 DFS관련 문제였다. 문제 난이도는 다양한 기업의 코딩테스트를 겪어본 경험으로 금융권 보다는 어렵고 일반 사기업보다는 조금 쉬운 정도의 수준이었다. 3. 결론 한국조폐공사의 경우 코딩테스트 50 교육사항 2..
-
Leetcode 859. Buddy Strings개발/Leetcode 2023. 7. 3. 10:48
https://leetcode.com/problems/buddy-strings/ Buddy Strings - LeetCode Can you solve this real interview question? Buddy Strings - Given two strings s and goal, return true if you can swap two letters in s so the result is equal to goal, otherwise, return false. Swapping letters is defined as taking two indices i and j (0-ind leetcode.com 문제 문자열 s와 goal이 주어진다. 이때 s의 문자 중 하나만 바꿔 goal과 같아진다면 True를 ..