[LeetCode | Java | DFS/BFS 문제 풀이] 938. Range Sum of BST - Solution with Recursion Function
99클럽 | Begginer938. Range Sum of BST 🏷 Topic : Tree Depth-First Search Binary Search Tree Binary Tree BFS DFSEasyGiven the root node of a binary search tree and two integers low and high, return the sum of values of all nodes with a value in the inclusive range [low, high].Example 1:Input: root = [10,5,15,3,7,null,18], low = 7, high = 15Output: 32Explanation: Nodes 7, 10, and 15 are in the rang..
2024. 5. 30.
[Programmers | Java | 완전 탐색 문제 풀이] 모의고사
99클럽 | Begginer 모의고사🏷 Topic : 완전 탐색문제 설명수포자는 수학을 포기한 사람의 준말입니다. 수포자 삼인방은 모의고사에 수학 문제를 전부 찍으려 합니다. 수포자는 1번 문제부터 마지막 문제까지 다음과 같이 찍습니다. 1번 수포자가 찍는 방식: 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, ...2번 수포자가 찍는 방식: 2, 1, 2, 3, 2, 4, 2, 5, 2, 1, 2, 3, 2, 4, 2, 5, ...3번 수포자가 찍는 방식: 3, 3, 1, 1, 2, 2, 4, 4, 5, 5, 3, 3, 1, 1, 2, 2, 4, 4, 5, 5, ... 1번 문제부터 마지막 문제까지의 정답이 순서대로 들은 배열 answers가 주어졌을 때, 가장 많은 문제를 맞힌 사람이 ..
2024. 5. 29.
[Java 봐] Operators(연산자)
What is Operator?(연산자란?)Operation(연산) : 프로그램에서 데이터를 처리하여 결과를 산출하는 것Operator(연산자) : 연산에 사용되는 표시나 기호Operand(피연산자) : 연산되는 데이터연산자의 종류 증감 연산자 : ++, -- (1순위)산술 연산자 : +, -, *, /, % (2순위)시프트 연산자 : >>, , >>> (3순위)비교 연산자 : >, , >=, , ==, != (4순위)비트 연산자 : &, |, ^, ~ (~만 1순위, 나머지는 5순위)논리 연산자 : &&, ||, ! (!만 1순위, 나머지는 6순위)조건(삼항) 연산자 : ?, : (7순위)대입 연산자 : =, *=, /=, %=, +=, -= (8순위)Increment and Decrement Ope..
2024. 5. 28.