본문 바로가기

2018/083

[codility] Nesting 문제)URL : https://app.codility.com/programmers/lessons/7-stacks_and_queues/nesting/ 정답)Stacks and Queues - Nesting/* * Complexity: * expected worst-case time complexity is O(N); * expected worst-case space complexity is O(1) * (not counting the storage required for input arguments). * * my answer URL : https://app.codility.com/demo/results/trainingPWC93R-SRE/ */ class Nesting { public int solutio.. 2018. 8. 27.
[Codility] Distinct 문제)URL : https://app.codility.com/programmers/lessons/6-sorting/distinct/ 정답)Distinct.javaimport java.util.Arrays; class Distinct { public static int solution(int[] A) { Arrays.sort(A); //If there are no follow if-clause, extreme_empty error occurs. if (A.length == 0) return 0; if (A.length == 1) return 1; int count = 1; for (int i = 0; i 2018. 8. 24.
톰캣 서버 두 개 띄우기 지금 부터 로컬에서 두 개의 톰캣 서버를 띄우는 방법을 알려드리겠습니다. 1. 톰캣 폴더 복사하기 우선 톰캣 파일이 있는 폴더로 이동합니다. ↑위 그림과 같이 기존에 1개 있던 톰캣 폴더를 다른 이름으로 복사하세요. 기존 폴더: tomcat-9.0.8복사한 폴더: tomcat-9.0.8_2 2. server.xml 파일에서 port 번호 수정하기 아래 그림과 같이 {TOMCAT_HOME}/conf/ 경로에서 server.xml 파일을 여세요. port 번호를 다 바꾸어줍니다.저 같은 경우에는 port 번호 앞자리를 8에서 9로 바꾸었습니다.ex.) 8005 -> 9005 8080 -> 9080 8443 -> 9443 3. service.bat 파일 수정하기 아래와 같이 {TOMCAT_HOME}/bin/ .. 2018. 8. 24.
반응형