Algorithm (2139) 썸네일형 리스트형 (C++) - LeetCode (easy) 1175. Prime Arrangements https://leetcode.com/problems/prime-arrangements/description/ Prime Arrangements - LeetCode Can you solve this real interview question? Prime Arrangements - Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) (Recall that an integer is prime if and only if it is greater than 1, and cannot be writte leetcode.com 소수를 판별해 순열을 구하는 문제였습니다. 📕 풀이방법 📔 풀이과정.. (C++) - LeetCode (easy) 1160. Find Words That Can Be Formed by Characters https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/description/ Find Words That Can Be Formed by Characters - LeetCode Can you solve this real interview question? Find Words That Can Be Formed by Characters - You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character can only be used once). Retu.. (C++) - LeetCode (easy) 1154. Day of the Year https://leetcode.com/problems/day-of-the-year/description/ Day of the Year - LeetCode Can you solve this real interview question? Day of the Year - Given a string date representing a Gregorian calendar [https://en.wikipedia.org/wiki/Gregorian_calendar] date formatted as YYYY-MM-DD, return the day number of the year. Example 1: Input: dat leetcode.com 📕 풀이방법 📔 입력 및 초기화 1. 윤년과 평년에 대한 12월의 일자를 배열형태.. (SQL) - LeetCode (easy) 1148. Article Views I https://leetcode.com/problems/article-views-i/description/ Article Views I - LeetCode Can you solve this real interview question? Article Views I - Table: Views +---------------+---------+ | Column Name | Type | +---------------+---------+ | article_id | int | | author_id | int | | viewer_id | int | | view_date | date | +---------------+--- leetcode.com distinct를 사용해 해결한 문제였습니다. 📕 풀이방법 📔 풀이과정 자기.. (SQL) - LeetCode (easy) 1141. User Activity for the Past 30 Days I https://leetcode.com/problems/user-activity-for-the-past-30-days-i/description/ User Activity for the Past 30 Days I - LeetCode Can you solve this real interview question? User Activity for the Past 30 Days I - Table: Activity +---------------+---------+ | Column Name | Type | +---------------+---------+ | user_id | int | | session_id | int | | activity_date | date | | activity_typ leetcode.com .. (C++) - LeetCode (easy) 1128. Number of Equivalent Domino Pairs https://leetcode.com/problems/number-of-equivalent-domino-pairs/description/ Number of Equivalent Domino Pairs - LeetCode Can you solve this real interview question? Number of Equivalent Domino Pairs - Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a == c and b == d), or (a == d and b == c) - that is, one domino can leetcode.com 자료구조를 .. (C++) - LeetCode (easy) 1114. Print in Order https://leetcode.com/problems/print-in-order/ Print in Order - LeetCode Can you solve this real interview question? Print in Order - Suppose we have a class: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third"); } } The same instance of Foo wi leetcode.com mutex와 condition_variable을 사용해 thread동작을 제어하는 문제였습니다. 📕 .. (C++) - LeetCode (easy) 1108. Defanging an IP Address https://leetcode.com/problems/defanging-an-ip-address/description/ Defanging an IP Address - LeetCode Can you solve this real interview question? Defanging an IP Address - Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "." with "[.]". Example 1: Input: address = "1.1.1.1" Outp leetcode.com 문자열을 다뤄보는 문제였습니다. 📕 풀이방법 📔 입력 및.. 이전 1 ··· 56 57 58 59 60 61 62 ··· 268 다음