본문 바로가기

분류 전체보기156

CentOS에 MySQL설치 CentOS 7 설치 완료 화면(초기 설정 화면에서 랜카드를 디폴트값이 안잡혀있어서 꼭 잡아주어야한다 ) CentOS 7에는 MariaDB가 설치되어 있어 MySQL를 설치하려면 조금의 과정을 거쳐야 한다. https://dev.mysql.com/downloads/repo/yum/ 위의 사이트에 들어가서 CentOS에 맞는 패키지 이름을 보고 yum명령어를 이용해 install하면 된다. 패키지 설치 명령어rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm MySQL 설치yum install mysql-community-server MySQL 구동systemctl start mysqld 시스템 부팅시 자동으로 실행되.. 2018. 10. 18.
[level 2] 124 나라의 숫자 123456789101112131415161718192021public class oneTwoFour { public String solution(int n) { StringBuilder answer = new StringBuilder(); int []countryNumber={4,1,2}; change124(n, answer, countryNumber); return answer.reverse().toString();//뒤에다 추가해서 reverse()했다. } private void change124(int n, StringBuilder answer, int[] countryNumber) { int check; while (n>0){ check=n%3;//나머지 n=n/3;//몫 if (check==.. 2018. 10. 17.
[해시] 위장 1234567891011121314151617181920212223242526272829303132333435363738394041424344import java.util.*; public class camouflage { public int solution(String[][] clothes) { int answer = 1; int count=1; Mapspy=new HashMap(); if(clothes.length 2018. 10. 12.
[해시] 전화번호 목록 12345678910111213141516171819202122232425262728293031323334import java.util.*; public class phoneNumberList { public boolean solution(String[] phone_book) { // Arrays.sort(phone_book, new Comparator() {//Comparator 구현// @Override// public int compare(String o1, String o2) {// return Integer.compare(o1.length(),o2.length());// }// }); // Arrays.sort(phone_book, (o1, o2) -> Integer.compare(o1.leng.. 2018. 10. 10.