목록Python (55)
복's
https://leetcode.com/problems/search-insert-position/description/ Search Insert Position - LeetCode Can you solve this real interview question? Search Insert Position - Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must w leetcode.com 오늘 Java에 대해서 잠시 이야기 하다가 Strin..
https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/ Find the Index of the First Occurrence in a String - LeetCode Can you solve this real interview question? Find the Index of the First Occurrence in a String - Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: I ..
https://leetcode.com/problems/remove-element/description/ Remove Element - LeetCode Can you solve this real interview question? Remove Element - Given an integer array nums and an integer val, remove all occurrences of val in nums in-place [https://en.wikipedia.org/wiki/In-place_algorithm]. The order of the elements may be changed. Then r leetcode.com 2023.11.01 오늘의 easy 문제 ~ 난이도는 easy 였지만 오래 풀어..
https://leetcode.com/problems/count-servers-that-communicate/ Count Servers that Communicate - LeetCode Can you solve this real interview question? Count Servers that Communicate - You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0 means that it is no server. Two server leetcode.com 속도가 다른 코드들에 늦는 이유는 graph ..
https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/submissions/1088775140/ 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 하루에 한 개라도 문제를 풀어야겠다.... 앞으로 easy문제라도 하루에 한개는 무조건 풀어야겠다!!! 계속 까먹는것도 있고, 특정 알고리즘만 푸니까 특정한..
https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ Letter Combinations of a Phone Number - LeetCode Can you solve this real interview question? Letter Combinations of a Phone Number - Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of d leetcode.co..
https://leetcode.com/problems/3sum-closest/description/ 3Sum Closest - LeetCode Can you solve this real interview question? 3Sum Closest - Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each inp leetcode.com 3Sum과 비슷한 문제여서 비슷하게 접근했다. 다만 다른점이라고는 3개의 합이 꼭 일치..
https://leetcode.com/problems/n-queens-ii/description/ N-Queens II - LeetCode Can you solve this real interview question? N-Queens II - The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return the number of distinct solutions to the n-queens leetcode.com 유명한 N-Queen 문제, 딱 한번 고생해서 했더니 그 다음부터는 다시 풀어도 수월하게 풀리..
https://leetcode.com/problems/integer-to-roman/description/ Integer to Roman - LeetCode Can you solve this real interview question? Integer to Roman - Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just tw leetcode.com 처음에는 진짜 어떻게 풀라는건지 이해가 가지 않다가, 결국 모든 숫자를 미리 ..
https://leetcode.com/problems/zigzag-conversion/description/ Zigzag Conversion - LeetCode Can you solve this real interview question? Zigzag Conversion - The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I leetcode.com 처음 문제를 접했을 때는 감도 안잡혔다...ㅎ 종이에 적으면서 규칙을..
