본문 바로가기

전체 글107

[2018.12.12] Simple Array Sum Problem Given an array of integers, find the sum of its elements.For example, if the array , , so return .Function DescriptionComplete the simpleArraySum function in the editor below. It must return the sum of the array elements as an integer.simpleArraySum has the following parameter(s):ar: an array of integersInput FormatThe first line contains an integer, , denoting the size of the array. The.. 2018. 12. 14.
[2018.12.11] Solve Me First Problem complete the function solveMeFirst to compute the sum of two integers Function prototype:int solveMeFirst(int a, int b);where,a is the first integer input.b is the second integer inputReturn valuessum of the above two integersSample Inputa = 2 b = 3 Sample Output5 ExplanationThe sum of the two integers and is computed as: . How I solved the problem## 단순히 더해서 리턴하는 문제! 12345678910111213141.. 2018. 12. 14.
1일 1알고리즘 문제 풀기 Start 1일 1알고리즘 문제 풀기 도전..! Start(2018.12.11 ~ ) https://www.hackerrank.com/dashboard 2018. 12. 14.
[ibatis, Oracle, Java] Oracle에서 Java의 Map으로 변환될 때 소문자로 key값 처리 [ibatis, Oracle, Java] Oracle에서 Java의 Map으로 변환될 때 소문자로 key값 처리 Oracle과 mySql 두 개를 모두 지원하고 ibatis에서 resultClass를 HashMap으로 받았을 때 처리하는 방법을 찾았다! mySql같은 경우에는 key를 소문자나 camelCase로 해서 Map에 받아오지만 Oracle같은 경우에는 Map에 무조건 대문자로 받아온다.따라서 oracle에서 resultClass를 hashMap으로 받을 때 아래와 같이 처리하면 OK! 먼저 java class 하나를 아래처럼 생성한다.이 때 ListOrderMap 인터페이스를 extends해주어야함! 1234567891011121314import org.apache.commons.collect.. 2018. 11. 30.
[jQuery] on으로 eventlistener 추가 할 때 인자값 넘기는 방법 on으로 eventlistener 추가 할 때 인자값 넘기는 방법 $("id/class").on(event, handler) 이런식으로 사용하면 어떤 동작(event)이 일어났을 때, 해당 선택자가 어떠한 일(handler)을 처리하는지를 넣을 수 있음.개발할 때 HTML inline에 onclick등과 같은 걸 넣지 않기로 미리 정했음. inline에서는 누르세요 이런식으로 onclick을 사용했는데 얘를 안쓰자고 합의를 하고 보니 매서드의 파라미터를 넘기는 데에서 문제가 생겼음.해결하려고 찾아보니 jQuery의 on 매서드 안에 data를 넣을 수 있다고 함 http://api.jquery.com/on/ 이곳에 들어가보면 on 매서드의 파라미터를 볼 수 있음! on은 .on(events [, sele.. 2018. 11. 29.
Oracle 예약어 모음 오라클 예약어 모음 https://www.ibm.com/support/knowledgecenter/SSRTLW_9.6.1/com.ibm.ejbdeploy.doc/topics/rsqlORACLE_V11G.html ====얘네를 alias로 쓰면 그냥 함수를 아무리 잘써도 에러가 빵빵...잘 체크해서 alias를 쓸 것! 2018. 11. 27.
[JavaScript] Array.from 함수가 IE에서 작동하지 않을 때 Array.from 함수가 IE에서 작동하지 않을 때 개발 중에 Array.from을 접할 기회가 생겼었는데 IE10과 IE11에서 테스트를 해보니 동작하지 않았습니다. 개발자 도구를 켜서 보니 이런 경고가 나타났다. CanIUse라는 홈페이지에서 찾아보니 Array.from은 ECMAScript 6문법으로 IE11에서 지원하지 않았습니다.... 그렇다면 이 부분을 해결해야 한국에서 많이 사용하는 IE에서도 동작을 할 수 있게 하는게 목표였습니다. 찾아보니 Array.from부분을 1234567var elementList = document.querySelectorAll('.leftMenu_btn'); [].forEach.call(elementList, function(element) { element... 2018. 10. 24.
[YOLO Project] Reading Stone Reading Stone .... TEST중 2018. 10. 23.