본문 바로가기

분류 전체보기1523

leetcode 1378. Replace Employee ID With The Unique Identifier https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/description/ Replace Employee ID With The Unique Identifier - LeetCode Can you solve this real interview question? Replace Employee ID With The Unique Identifier - Table: Employees +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | name | varchar | +---------------+---------+ i.. 2023. 4. 6.
leetcode 1683. Invalid Tweets https://leetcode.com/problems/invalid-tweets/description/ Invalid Tweets - LeetCode Can you solve this real interview question? Invalid Tweets - 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 2 3 4 # Write your MySQL query statement below select tweet_id from Tweets where CHARACTER_LENGT.. 2023. 4. 6.
23년 3월.. 최근 10일 정도 게시글을 올리지 못했습니다.. 사유는.. 신나게 하체 운동 하고 난 뒤에 계단을 내려가다가 헛딛어서 그만 넘어지는 바람에 인대가 늘어났습니다.. 치료를 받던중에 발목뼈가 이상한(?)곳에 있다는 의사 선생님의 말씀.. 어릴때 발목 다친 경험 있지 않냐는.. 말을 해주셔서 기억을 더듬어보니 초등학교 3~4학년 쯤에 발목 다쳐서 목발에 의지해서 걷다가 목발 잃어버려서 찾기는 귀찮고 부모님께 연락하기도 쫌 그래서 집가서 바람의나라였던지 메이플스토리였던지 빨리 해야되는데 에라 모르겠다 하고 기어가지고 횡단보도를 가고 있었는데 부모님이 운전하시다가 그 광경을 보고 엄청 우셨던 기억이 나네요 ㅎㅎㅎㅎㅎ 덕분에 일주일 동안 걷지도 못하고 아무것도 못한 상태로 푹 쉬었습니다. 일주일 쉬어보니 엄청 초조.. 2023. 4. 4.
백준 27889 특별한 학교 이름 https://www.acmicpc.net/problem/27889 27889번: 특별한 학교 이름 GEC에는 여러 학교가 있다. 각 학교의 약칭과 정식 명칭은 다음과 같다. NLCS: North London Collegiate School BHA: Branksome Hall Asia KIS: Korea International School SJA: St. Johnsbury Academy 학교 이름을 좋아하는 규빈이 www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 def sol(s): name = { 'NLCS':'North London Collegiate School', 'BHA': 'Branksome Hall Asia', 'KIS': 'Korea Internat.. 2023. 4. 4.
leetcode 2348. Number of Zero-Filled Subarrays https://leetcode.com/problems/number-of-zero-filled-subarrays/description/ Number of Zero-Filled Subarrays - LeetCode Can you solve this real interview question? Number of Zero-Filled Subarrays - Given an integer array nums, return the number of subarrays filled with 0. A subarray is a contiguous non-empty sequence of elements within an array. Example 1: Input: nums = leetcode.com 1 2 3 4 5 6 7 .. 2023. 3. 21.
leetcode 1009. Complement of Base 10 Integer https://leetcode.com/problems/complement-of-base-10-integer/description/ Complement of Base 10 Integer - LeetCode Can you solve this real interview question? Complement of Base 10 Integer - The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation. * For example, The integer 5 is "101" in b leetcode.com 1 2 3 4 5 6 7 .. 2023. 3. 20.
leetcode 2553. Separate the Digits in an Array https://leetcode.com/problems/separate-the-digits-in-an-array/description/ Separate the Digits in an Array - LeetCode Can you solve this real interview question? Separate the Digits in an Array - Given an array of positive integers nums, return an array answer that consists of the digits of each integer in nums after separating them in the same order they appear in nums. leetcode.com 1 2 3 4 5 6.. 2023. 3. 14.
leetcode 1122. Relative Sort Array https://leetcode.com/problems/relative-sort-array/description/ Relative Sort Array - LeetCode Can you solve this real interview question? Relative Sort Array - Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the relative ordering of items in arr1 are t leetcode.com 1 2 3 4 5 6 7 8 9 class Solution: .. 2023. 3. 13.
leetcode 2395. Find Subarrays With Equal Sum https://leetcode.com/problems/find-subarrays-with-equal-sum/description/ Find Subarrays With Equal Sum - LeetCode Can you solve this real interview question? Find Subarrays With Equal Sum - Given a 0-indexed integer array nums, determine whether there exist two subarrays of length 2 with equal sum. Note that the two subarrays must begin at different indices. Return tr leetcode.com 1 2 3 4 5 6 7 .. 2023. 3. 13.
백준 27866 문자와 문자열 https://www.acmicpc.net/problem/27866 27866번: 문자와 문자열 첫째 줄에 영어 소문자와 대문자로만 이루어진 단어 $S$가 주어진다. 단어의 길이는 최대 $1\,000$이다. 둘째 줄에 정수 $i$가 주어진다. ($1 \le i \le \left|S\right|$) www.acmicpc.net 1 2 3 4 5 6 7 8 9 def sol(s, i) -> str: return s[i-1] if __name__ == '__main__': s = input() i = int(input()) print(sol(s, i)) cs 2023. 3. 13.
leetcode 2451. Odd String Difference https://leetcode.com/problems/odd-string-difference/description/ Odd String Difference - LeetCode Can you solve this real interview question? Odd String Difference - You are given an array of equal-length strings words. Assume that the length of each string is n. Each string words[i] can be converted into a difference integer array difference[i] of len leetcode.com 1 2 3 4 5 6 7 8 9 10 11 12 13 .. 2023. 3. 8.
leetcode 2264. Largest 3-Same-Digit Number in String https://leetcode.com/problems/largest-3-same-digit-number-in-string/description/ Largest 3-Same-Digit Number in String - LeetCode Can you solve this real interview question? Largest 3-Same-Digit Number in String - You are given a string num representing a large integer. An integer is good if it meets the following conditions: * It is a substring of num with length 3. * It consists of leetcode.co.. 2023. 3. 7.