This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.dynamic; | |
| import java.util.Scanner; | |
| /** | |
| * 2000, 다이나믹 | |
| * 동전교환 | |
| * | |
| * @author whitebeard | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.backtrack; | |
| import java.util.Scanner; | |
| /** | |
| * 백트래킹, 좋은수열 | |
| * | |
| * @author whitebeard | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.greedy; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 그리디, 최소비용 신장트리 프림알고리즘 | |
| * | |
| * @author User | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.greedy; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| /** | |
| * 그리디, 2641 택배 | |
| * | |
| * @author whitebeard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import sys, urllib, simplejson | |
| # 우지 주소 | |
| OOZIE_URL = "0.0.0.0:8080" | |
| OOZIE_JOB_TYPE = "coord" | |
| OOZIE_STATUS = "RUNNING" | |
| # 코디네이터 목록 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| vCount="0" | |
| while [ "${vCount}" -ne "1" ] | |
| do | |
| # hdfs 상의 경로 | |
| vCount=`hadoop fs -ls hdfs://[파일경로] | wc -l` | |
| # 로컬상의 경로 | |
| vCount=`find -name "[파일명]" | wc -l` | |
| echo "${vCount}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.backtrack; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 백트래킹, 1457, 영역구하기 | |
| * | |
| * @author whitebeard | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.dynamic; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 다이나믹 | |
| * 배낭채우기 | |
| * | |
| * @author whitebeard | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sdk.algo.problembank; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 문제은행 | |
| * 하얀모자 | |
| * | |
| * @author whitebeard | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd /mnt/crontab/hive_metadb_check/ | |
| vYesterDayYYYYMMDD="*`date -d "yesterday" -u +\%Y\%m\%d`*" | |
| v7DayPrevYYYYMMDD="*`date -d "-7 day" -u +\%Y\%m\%d`*" | |
| # 어제자 로그 파일 정리 | |
| find ./logs/ -name "*${vYesterDayYYYYMMDD}*" -exec tar -czf "./logs/`date -d "yesterday" -u +\%Y\%m\%d`.tar.gz" {} \; | |
| find ./logs/ -name "*${vYesterDayYYYYMMDD}*" -exec rm -rf {} \; |