코드메이트 로고
  • 탐색
  • 가이드
코드메이트 로고
junghyun
@junghyun
junghyun

@junghyun

팔로우 0
팔로잉 0
2022.03.28
프로젝트

오늘의 문제: 미로 찾기 or 목표 문제 풀기

class Queue { private int MAX_QUEUE_SIZE = 10; private int queue[]; private int head; private int tail; public Queue() {

0
0
2022.03.25
프로젝트

✅ 오늘의 문제: 데이터 삽입 구현하기

void insert(int nn) {     int i, j, k = 0;     if (n==MAX) {         printf("꽉 찼음\n");         return;     }     for (i = 0; i < n; i++) {         if

0
0
2022.03.24
프로젝트

우선순위 큐

class Heap { static int MAX_HEAP_SIZE = 101; int[] arr; int heap_count = 0; public Heap(){ this.arr = new int[MAX_HEAP_SIZE];

0
0
2022.03.23
프로젝트

12-4. QUIZ : 전위 순회를 트리로

class Node { int data; Node left; Node right; public Node(int data) { this.data = data; left = null; right =

0
0
2022.03.22
프로젝트

#11-3. QUIZ ✅ 오늘의 문제: 트리의 높이 구하기

class Node { int data; Node left; Node right; public Node(int data) { this.data = data; left = null; right =

0
0
2022.03.21
프로젝트

#10-2. QUIZ ✅ 오늘의 문제: 이중 링크드 리스트

class Node { public Object data; public Node pointer; public Node(Object input) { this.data = input; this.pointer = null;

0
0
2022.03.18
프로젝트

#9-3. QUIZ ✅ 오늘의 문제: 고객 응대 시뮬레이터

class Queue { private int MAX_QUEUE_SIZE = 5; private int queue[]; private int head; private int tail; public Queue() { h

0
0
2022.03.17
프로젝트

8-2. QUIZ: 도핑제 만들기

투포인터만 구현 완료했으며 슬라이딩 윈도우 구현 후 코드 바꿔두겠습니다. import java.util.Scanner; public class TwoPointer { public static void main(String[] args) {

0
0
2022.03.16
프로젝트

#7-3. QUIZ

package Study.CS_Study.DataStructure; public class SieveOfEratosthenes { static int getPrimeList(int n) { int range = n+1; int

0
0
2022.03.15
프로젝트

괄호

package Study.CS_Study.DataStructure; import java.util.*; public class Stack1 {   public static void main(String[] args) {     Scanner sc = new Sca

0
0
2022.03.14
프로젝트

5-4) 오늘의 문제: 선택 정렬

public class SelectionSort { public static void main(String[] args) { int [] arr = {9, 6, 7, 3, 5}; int tmp; // 교환용 변수

0
0
2022.03.11
프로젝트

4-2) 오늘의 문제: 이분 탐색 재귀 변환

java public class Binary { public static void main(String[] args) { int [] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};

0
0
2022.03.09
프로젝트

3-2. QUIZ: 이분 탐색 응용

public class BinarySearch01 { public static void main(String[] args) { int[] lan = {215, 513, 712, 803}; int target = 10; int min = 0; int

0
0
2022.03.08
프로젝트

2-2) ✅ 오늘의 문제: 시간 복잡도 구하기

1번 : O(n) 두 반복문 모두 입력되는 값 n, m의 값의 크기와 비례한 결과값을 보여주기 때문. 2번 : O(n^2) 첫번째 반복문에서 O(n^2)의 시간복잡도를 가지고, 두번째에서는 O(n)의 시간복잡도를 가지지만, 둘의 더했을 때 상수항은 생각되기때문에

0
0
2022.03.04
프로젝트

1-2) 오늘의 문제: 목표 설정

사용언어 : JAVA 환경 : vscode 목표 문제 : https://www.acmicpc.net/problem/1260

0
0