본문 바로가기

자바22

Leetcode 배열 42 Trapping Rain Water (java) https://leetcode.com/problems/trapping-rain-water/description/ Trapping Rain Water - LeetCode Can you solve this real interview question? Trapping Rain Water - Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining. Example 1: [https://assets.leetcode.com/upl leetcode.com Given n non-negative integers represe.. 2023. 11. 18.
Leetcode 문자열 819 Most Common Word (java) https://leetcode.com/problems/most-common-word/description/ Most Common Word - LeetCode Can 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 tha leetcode.com Given a string paragraph and a string ar.. 2023. 11. 14.
백준 단계별로 풀기 자바 [5단계 - 1차원 배열] https://www.acmicpc.net/step 단계별로 풀어보기 단계별은 @jh05013님이 관리하고 계십니다. 단계제목설명정보총 문제내가 맞은 문제1입출력과 사칙연산입력, 출력과 사칙연산을 연습해 봅시다. Hello World!112if문if문을 사용해 봅시다.53for문for문을 www.acmicpc.net 1단계 10818 최소, 최대 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N .. 2021. 8. 20.
코드업 기초 100제 자바 [기초-비교연산, 논리연산] 1049~1058 https://codeup.kr/problemsetsol.php?psid=23 문제집 / C언어 기초 100제 codeup.kr 1049 : [기초-비교연산] 두 정수 입력받아 비교하기1(설명) 두 정수(a, b)를 입력받아 a가 b보다 크면 1을, a가 b보다 작거나 같으면 0을 출력하는 프로그램을 작성해보자. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String [] data = s.split(" .. 2021. 7. 11.