일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- 미국 골프
- Irvine Spectrum Center
- 고래 투어
- 머메이드 비치
- 너츠 배리 팜
- Brea Mall
- 미국 2주간 무료 로밍
- leetcode
- 미국 초등학교 점심식사 도시락
- John's Incredible Pizza
- 디스커버리 큐브
- 미국 초등학교 점심
- 점심 식사 온라인 주문
- Mermaid Beach
- Whole Food
- Midway Museum
- Discovery Cube Orange County
- Keurig
- 이진트리
- 아이젠하워 공원
- chatGPT
- Eisenhower Park
- 미국 학교 도시락
- 오렌지 카운티 가볼만한 곳
- Orange County Medium of Art
- binary tree
- OCMA
- 어바인 스펙트럼 센터
- California Sicense Center
- 켈리포니아 사이언스 센터
- Today
- Total
목록전체 글 (50)
Coder
이진 트리(Binary Tree)의 값을 전위 순회(Preorder Traversal)하면서 값을 반환하는 문제입니다. LeetCode : https://leetcode.com/problems/binary-tree-preorder-traversal/ Binary Tree Preorder Traversal - LeetCode Can you solve this real interview question? Binary Tree Preorder Traversal - Given the root of a binary tree, return the preorder traversal of its nodes' values. Example 1: [https://assets.leetcode.com/uploads/2020/0..
문제 : 7의 개수 문제 설명 머쓱이는 행운의 숫자 7을 가장 좋아합니다. 정수 배열 array가 매개변수로 주어질 때, 7이 총 몇 개 있는지 return 하도록 solution 함수를 완성해보세요. 제한사항 1 ≤ array의 길이 ≤ 100 0 ≤ array의 원소 ≤ 100,000 Java 버전 코드 class Solution { public int solution(int[] array) { int answer = 0; int len = array.length; for(int i = 0; i 0) { int mod = num % 10; if(mod == 7){ answer++; } num = (num - mod) /..