본문 바로가기

전체 글1654

[LeetCode] 832. Flipping an Image - Java 2026. 10. 23.
[LeetCode] 830. Positions of Large Groups - Java 2026. 10. 23.
[LeetCode] 824. Goat Latin - Java • 문제 링크 Goat Latin - LeetCodeCan you solve this real interview question? Goat Latin - You are given a string sentence that consist of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert the sentence to "Goat Latin" (a made-upleetcode.com • 풀이 코드public class Solution { public String toGoatLatin(String sentence) { StringBuilder .. 2026. 10. 21.
[LeetCode] 821. Shortest Distance to a Character - Java • 문제 링크 Shortest Distance to a Character - LeetCodeCan you solve this real interview question? Shortest Distance to a Character - Given a string s and a character c that occurs in s, return an array of integers answer where answer.length == s.length and answer[i] is the distance from index i to the closestleetcode.com • 풀이 코드public class Solution { public int[] shortestToChar(String s, char c.. 2026. 10. 20.
[LeetCode] 819. Most Common Word - Java • 문제 링크 Most Common Word - LeetCodeCan you solve this real interview question? Most Common Word - Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at least one word that is not banned, and thaleetcode.com • 풀이 코드import java.util.Arrays;import java.util.HashMap;import java.util.HashSet;import java.u.. 2026. 10. 19.
[LeetCode] 812. Largest Triangle Area - Java • 문제 링크 Largest Triangle Area - LeetCodeCan you solve this real interview question? Largest Triangle Area - Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be formed by any three different points. Answers within 10-5 oleetcode.com • 풀이 코드public class Solution { public double largestTriangleArea(int[][] points) { .. 2026. 10. 18.