반응형

전체 글 25

[해커랭크002] A Very Big Sum

Practice>Algorithms>Warmup>A Very Big Sum 포인트 1. Long Type 길이 - 2,147,483,648 ~ 2,147,483,647(-2의31제곱~2의31제곱-1) - 초기화할때 뒤에 L(대소문자구분x) 정답 import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the aVeryBigSum function below. static long aVeryBigSum(long[] ar)..

[해커랭크001] Compare the Triplets

Practice>Algorithms>Warmup>Compare the Triplets 포인트 1. ArrayList - 삽입 .add(값) - 사용 .get(INDEX_NUM) - 수정 .set(INDEX_NUM, 수정값) 2. 반복문 3. 조건문 정답. import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the compareTriplets function below. static List compareTripl..

Elasticsearch Delete Index ( RestHighLevelClient , TransportClient)

Elasticsearch 인덱스 제거 테스트 환경 : Elasticsearch 6.1.1 , rest-high-level-client 6.4.3 (maven) case-1 ( RestHighLevelClient ) RestHighLevelClient client = new RestHighLevelClient( RestClient.builder(new HttpHost("localhost",9200,"http"))); try { DeleteIndexResponse deleteIndexResponse = client.indices().delete(new DeleteIndexRequest(INDEX_STRING)); client.close(); } catch (IOException e) { // TODO Aut..

ElasticSerarch 2019.05.21

Create Elasticsearch Index using plugin

plugin을 사용하여 ElasticSearch Index 생성 테스트환경 Cluster 구성 : 1 node(single node / macOS / LocalServer) elasticSearch : elasticSearch 6.1.1 Plugin_tools : ElasticSearch_Head / Elasticsearch_hq 1. Elasitc Hq ElasticSearch_HQ를 사용하여 Index 생성 1.1 ElasticHQ 접속 http://localhost:5000 1.2 Indices -> Create Index 화면에서 Index 생성 Name : test_index Shard : 1 Replication : 1 2. elasticsearch-head ElasticSearch_head를..

ElasticSerarch 2019.05.10

[mac] elasticsearch HQ 설치 (웹 모니터링 툴)

시작. elasticsearch HQ 라는 elasticsearch 모니터링 툴? 을 설치 하겠음 아래 이미지는 공식 깃 링크 화면임 설치하면 저런 화면을 볼 수 있다. 1. 준비사항 ( Python3 설치 ) 설치 전 필요사항으로 python3.4 이상이 필요함 ( 아래 링크를 참고하여 설치 ) windows : https://angel-jinsu.tistory.com/3 mac : https://angel-jinsu.tistory.com/11 [mac] Python3 설치 mac OS Mojave (Version 10.14.4) 해당 버전 기준으로 Python2 버전은 OS 설치시 자동으로 설치됩니다. * 추가로 설정을 해주지 않았으므로, 당연히 PYHTON_HOME은 설정되어있지않습니다. * pyt..

ElasticSerarch 2019.05.03

[mac] ElasticSearch 설치

시작. 공식홈페이지에서 elasticsearch 다운로드 클릭후 tar 설치 ( 테스트를 위하여 구버전인 6.1.1 버전을 설치하였음) 링크 : https://www.elastic.co/kr/downloads/past-releases/elasticsearch-6-1-1 다운받은 tar 파일을 적당한 경로로 이동 후/ 압축 해제 tar xvzf elasticsearch-6.1.1.jar 실행 방법 : [mac] 압축 해제 후 bin 디렉토리의 elasticsearch 파일을 실행 /설치경로/elasticsearch-6.1.1/bin/elasticsearch [windows] 압축 해제 후 터미널에서 bin 디렉토리의 elasticsearch.bat 파일을 실행 (cmd 화면에서 명령어 사용) /설치경로/e..

ElasticSerarch 2019.05.03

[mac] Python3 설치

mac OS Mojave (Version 10.14.4) 해당 버전 기준으로 Python2 버전은 OS 설치시 자동으로 설치됩니다. * 추가로 설정을 해주지 않았으므로, 당연히 PYHTON_HOME은 설정되어있지않습니다. * python -V 명령어를 통하여 설치된 PYTHON 버전을 확인합니다. * python -V 명령어를 통하여 설치된 PYTHON3 버전을 확인합니다. ( 설치되어있지 않아 에러가 발생 ) -- Python3 설치 brew install python3 (homebrew가 설치되어있다고 가정 후 실행 ) 설치 확인 python -V

Python 2019.05.03

프로그래머스 모의고사 문제 _ java

프로그래머스 모의고사 문제 _ java 문제 수포자는 수학을 포기한 사람의 준말입니다. 수포자 삼인방은 모의고사에 수학 문제를 전부 찍으려 합니다. 수포자는 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가 주어졌을 때, 가장 많은 문제를 맞힌 사람이 누구인지 배열에 담아 return 하..

반응형