2023-03-21
—
M,W : E, B
TU,SU : D
TH,FR : C
SA,SU: J
갑자기 불려간 회의 @_@ 멍
https://developer.mozilla.org/ko/docs/Web/API/Touch_events
https://wit.nts-corp.com/2013/12/20/583
나중에 터치기기(태플릿) 관련 플레이어 프로그래스바 qa 들어올 것을 대비하여@
달랐던 점
"e.pageX => e.touches[0].pageX" or e.changedTouches[0].pageX
touchstart => touchmove => touchend
투포인터 알고리즘 2문제 품
<html>
<head>
<meta charset="UTF-8">
<title>출력결과</title>
</head>
<body>
<script>
function solution(arr1, arr2){
let answer=[];
let n=arr1.length;
let m=arr2.length;
let p1=p2=0;
while(p1<n && p2<m){
if(arr1[p1]<=arr2[p2]) answer.push(arr1[p1++]);
else answer.push(arr2[p2++]);
}
while(p1<n) answer.push(arr1[p1++]);
while(p2<m) answer.push(arr2[p2++]);
return answer;
}
let a=[1, 3, 5];
let b=[2, 3, 6, 7, 9];
console.log(solution(a, b));
</script>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title>출력결과</title>
</head>
<body>
<script>
function solution(arr1, arr2){
let answer=[];
arr1.sort((a, b)=>a-b);
arr2.sort((a, b)=>a-b);
let p1=p2=0;
while(p1<arr1.length && p2<arr2.length){
if(arr1[p1]==arr2[p2]){
answer.push(arr1[p1++]);
p2++;
}
else if(arr1[p1]<arr2[p2]) p1++;
else p2++;
}
return answer;
}
let a=[1, 3, 9, 5, 2];
let b=[3, 2, 5, 7, 8];
console.log(solution(a, b));
</script>
</body>
</html>
Monday/ Wednesday/ Thursday (English with Clarisse)
Tuesday / Thursday 06:00~07:00 (swimming)
at the riverside
when I was a
many koreans are shy to~
수영 DAYDAY
다행히도(?) qa 가 잠잠함 후후