Algorithm (2139) 썸네일형 리스트형 (C++) - LeetCode (easy) 412. Fizz Buzz https://leetcode.com/problems/fizz-buzz/description/ Fizz Buzz - LeetCode Can you solve this real interview question? Fizz Buzz - Given an integer n, return a string array answer (1-indexed) where: * answer[i] == "FizzBuzz" if i is divisible by 3 and 5. * answer[i] == "Fizz" if i is divisible by 3. * answer[i] == "Buzz" if i is leetcode.com 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 정답 vector ans를 선언해줍니다. 📔 풀.. (C++) - LeetCode (easy) 409. Longest Palindrome https://leetcode.com/problems/longest-palindrome/description/ Longest Palindrome - LeetCode Can you solve this real interview question? Longest Palindrome - Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters. Letters are case sensitive, for example, leetcode.com 자료구조를 이용한 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 1... (C++) - LeetCode (easy) 28. Find the Index of the First Occurrence in a String https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/ 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. E.. (C++) - LeetCode (easy) 405. Convert a Number to Hexadecimal https://leetcode.com/problems/convert-a-number-to-hexadecimal/description/ Convert a Number to Hexadecimal - LeetCode Can you solve this real interview question? Convert a Number to Hexadecimal - Given an integer num, return a string representing its hexadecimal representation. For negative integers, two’s complement [https://en.wikipedia.org/wiki/Two%27s_complement] me leetcode.com 16진수 구현 문제였습.. (C++) - LeetCode (easy) 1539. Kth Missing Positive Number https://leetcode.com/problems/kth-missing-positive-number/description/ Kth Missing Positive Number - LeetCode Can you solve this real interview question? Kth Missing Positive Number - Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Return the kth positive integer that is missing from this array. Example 1: Input: leetcode.com 전수조사 문제였습니다. 📕 풀이방법 📔.. (C++) - LeetCode (easy) 404. Sum of Left Leaves https://leetcode.com/problems/sum-of-left-leaves/description/ Sum of Left Leaves - LeetCode Can you solve this real interview question? Sum of Left Leaves - Given the root of a binary tree, return the sum of all left leaves. A leaf is a node with no children. A left leaf is a leaf that is the left child of another node. Example 1: [https://ass leetcode.com 재귀를 이용한 자료구조 문제였습니다. 📕 풀이방법 📔 풀이과정 현재 n.. (C++) - LeetCode (easy) 401. Binary Watch https://leetcode.com/problems/binary-watch/description/ Binary Watch - LeetCode Can you solve this real interview question? Binary Watch - A binary watch has 4 LEDs on the top to represent the hours (0-11), and 6 LEDs on the bottom to represent the minutes (0-59). Each LED represents a zero or one, with the least significant bit on t leetcode.com 전수조사 문제였습니다. 📕 풀이방법 📔 풀이과정 2진수 단위로 bit가 켜지고 꺼지기 때.. (C++) - LeetCode (easy) 389. Find the Difference https://leetcode.com/problems/is-subsequence/description/ Is Subsequence - LeetCode Can you solve this real interview question? Is Subsequence - Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string by deleting some (can be n leetcode.com 전수조사 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 s의 처음부터 시작할 변.. 이전 1 ··· 74 75 76 77 78 79 80 ··· 268 다음