Algorithm (2139) 썸네일형 리스트형 (C++) - LeetCode (easy) 1365. How Many Numbers Are Smaller Than the Current Number https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 정답 vector ans를 선언해줍니다. 📔 풀이과정 nums의 원소를 순회하며 자신.. (C++) - LeetCode (easy) 1360. Number of Days Between Two Dates https://leetcode.com/problems/number-of-days-between-two-dates/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 날짜 계산 문제였습니다. 📕 풀이방법 📔 풀이과정 1. -를 구분자로 연/월/일을 split하는 함수를 구현해 date1, date2에 각각 해당 함수 수행 후 yearMonth.. (C++) - LeetCode (easy) 1356. Sort Integers by The Number of 1 Bits https://leetcode.com/problems/sort-integers-by-the-number-of-1-bits/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com bitmasking을 이용한 문제였습니다. 📕 풀이방법 📔 풀이과정 1. arr을 정렬할 때 기준을 정해 sort해줍니다. 정렬 기준은 다음과 같습니다. 1 bit 개수.. (C++) - LeetCode (easy) 1351. Count Negative Numbers in a Sorted Matrix https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 1. grid의 행 r, 열 c를 선언 후 값을 저장합니다.2. 정답변수 negatives를 선언 후 0.. (C++, Python3) - LeetCode (easy) 1346. Check If N and Its Double Exist https://leetcode.com/problems/check-if-n-and-its-double-exist/description/ LeetCode - The World's Leading Online Programming Learning PlatformLevel up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.leetcode.com간단 구현문제였습니다.📕 풀이방법📔 풀이과정조건대로 arr에 대해 2차원 for loop를 수행하면서 i!=j면서 arr[i] == 2 * arr[j]인 경우를 찾습니다.📔 정답 .. (C++) - LeetCode (easy) 1342. Number of Steps to Reduce a Number to Zero https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 정답 변수 cnt를 선언 후 0으로 초기화해줍니다. 📔 풀이과정 num이 0이 아닌 동안 while l.. (C++) - LeetCode (easy) 1337. The K Weakest Rows in a Matrix https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 정렬을 사용해본 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 first는 행의 병사 수, second는 index를 저장할 vecotr pair soldiersCount를 선언해줍.. (C++) - LeetCode (easy) 1332. Remove Palindromic Subsequences https://leetcode.com/problems/remove-palindromic-subsequences/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 간단 구현문제였습니다. 📕 풀이방법 📔 풀이과정 모든 문자열은 a또는 b로만 이루어져 있고 부분 문자열은 순서 상관 없이 고를 수 있으므로 최악의 횟수는 a, b각각 모아 지우는 .. 이전 1 ··· 52 53 54 55 56 57 58 ··· 268 다음