Skip to content

Instantly share code, notes, and snippets.

View JoeUnsung's full-sized avatar
🏠
Working from home

Joe JoeUnsung

🏠
Working from home
  • SSG.COM
  • Seoul
View GitHub Profile
@JoeUnsung
JoeUnsung / depthFirstSearchWheatKindAndNum
Created December 19, 2016 16:50
Find the number of wheat and amount of each of wheat out by the depth first search algorithm.
package joe;
import java.util.*;
import java.lang.*;
class dfSearch{
int wheat = 1;
int cnt = 0;
int map[][];
@JoeUnsung
JoeUnsung / Bottom_up_merge_sort_InC
Last active April 13, 2017 08:46
Bottom up merge sort in C language
#include <stdio.h>
#include <stdlib.h>
int *A; // 받아온 숫자를 저장하기 위한 배열을 전역변수로 선언합니다.
int *B; // 임시저장을 위한 배열을 전역변수로 선언합니다. 추후 동적할당을 통해 활용.
void Merge(int low, int mid, int high); // bottom up merge를 위한 소트
int main(void) {
int n = 0; // 수의 갯수
@JoeUnsung
JoeUnsung / MC_R
Created November 14, 2017 05:09
MACHINE_LEARNING_IN_R
## MACHINE LEARNING IN R
## INDEX
## 1. KNN
## 2. 나이브 베이즈
## 3. 의사결정 트리
## 4. 서포트 벡터 머신
## 5. 회귀분석
@JoeUnsung
JoeUnsung / BJ_JUDGE.py
Last active December 30, 2018 14:21
BAEK_JOON_ONLINE_JUDGE
# -*- coding: utf-8 -*-
"""
BJ Judge solution
"""
## 입출력 받아보기
## 11718
while True :
try :
@JoeUnsung
JoeUnsung / EDA
Last active December 21, 2017 09:33
lpct
## 워킹디렉토리
getwd()
setwd("C:/Users/Administrator/Documents/GitHub/LPOINT/data")
setwd("D:/data")
install.packages("ggplot2","dplyr","tidyr","plotly")
install.packages("sqldf")
@JoeUnsung
JoeUnsung / playGround.py
Created December 26, 2017 08:46
2017_12 ITWILL practice
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 8 14:33:57 2017
@author: Administrator
"""
_myname='samsjang'
my_name='홍길동'
@JoeUnsung
JoeUnsung / kakaoBlind
Created January 12, 2018 06:05
coding algorithm questions from kakao blind recruiting
############################
## 카카오 블라인드 알고리즘 문제 ##
###########################
## 1
## 2
## 3
@JoeUnsung
JoeUnsung / dplyr_practice
Last active January 13, 2018 13:12
5 main verbs in dplyr
##
## dplyr practice of 5 core verbs ( select, mutate, filter, arrange, summarise )
##
## 1 select - 그냥 SQL select 처럼 쓰면 되나보다 범위 설정도 되는듯 1:4 이런식
buying_no_shopping %>%
select(ID, BIZ_UNIT)
custo %>%
// Java의 정석 예제
// 2-4
package playGround;
public class testJava {
public static void main(String[] args) {
byte b = 1;
// 입출력 (11/11) : 곱셈
package playGround;
import java.util.*;
public class testJava{
public static void main(String[] args){
Scanner temp = new Scanner(System.in);
int[] result_arr = new int[3];