https://leetcode.com/problems/n-th-tribonacci-number/ N-th Tribonacci Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public: int tribonacci(int n) { int T[n+1]; T[0] = 0; if (n == 0) return T[0]; T[1] = 1; if (n == 1) return T[1]; T[2] = 1; for(int i = 3; i
전체 글
내공냠냠https://leetcode.com/problems/fibonacci-number/ dynamic programming day 1 Fibonacci Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public: int fib(int n) { if (n < 2) return n; return fib(n - 1) + fib(n - 2); } }; class Solution { public: int fib(int n) {..
없음. 줄여쓰는 것임. https://leetcode.com/problems/customers-who-never-order/ Customers Who Never Order - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com select name as Customers from Customers as a left outer join Orders as b on a.id = b.customerId where b.id is null select c.name as Cust..
https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html#operator_equal-to MySQL :: MySQL 8.0 Reference Manual :: 12.4.2 Comparison Functions and Operators 12.4.2 Comparison Functions and Operators Table 12.4 Comparison Operators Name Description > Greater than operator >= Greater than or equal operator < Less than operator , != Not equal operator
https://leetcode.com/problems/find-customer-referee/ Find Customer Referee - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com != 서로 같은 뜻으로 같지 않다를 나타내며 성능 차이는 없다. 다만, 문제에서도 알 수 있듯이 NULL은 처리가 되지 않기 때문에 따로 처리해줘야 한다. Reference https://dev.mysql.com/doc/refman/8.0/en/comparison-operators..
Face Mesh Landmark FACEMESH_NUM_LANDMARKS = 468 FACEMESH_NUM_LANDMARKS_WITH_IRISES = 478 Face Mesh Return multi_face_landmarks (namedTuple) 468개의 x, y, z x, y 는 [0.0] ~ [1.0] 으로 normalized 된 값이고 z는 depth를 나타냄. 작은 값일 수록 카메라와 가까움을 나타냄. https://google.github.io/mediapipe/solutions/face_mesh.html#multi_face_landmarks Face Mesh Cross-platform, customizable ML solutions for live and streaming media. g..
첫째주 insightface recognition arcface_mxnet 모델 학습시키는 것을 서버에서 실행해보았습니다. 도커 환경 설치부터 도커 내에서 gpu를 사용하고, 볼륨 연결과 이미지를 받고 컨테이너를 실행시켜보는 등 기본적인 것들을 실행해보며 알 수 있었습니다. 둘째주 기능을 붙이려고 하는 사이트에 대한 정보를 간단히 공유하고 미디어파이프를 사용하기 위한 기능을 확실히 하고, 미디어파이프 스터디를 해보는 것으로 마무리지었습니다. 셋째주 저번주 회의 이후에는 디버깅 연결해보고, face_detection 관련 소스를 보았습니다. 간단한 진행순서로는 Input video 입력받고 > detection 하고 > overlay 해서 output video 에 씌워 보여주었습니다. 구조는 //med..
OSError: libcudnn.so.7: cannot open shared object file: No such file or directory OSError: libcudart.so.10.0: cannot open shared object file: No such file or directory OSError: libcufft.so.10.0: cannot open shared object file: No such file or directory ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.8 /usr/lib/x86_64-linux-gnu/libcudnn.so.7 ln -s /usr/local/cuda-11.4/targets/x86_64-linux/lib/libcuda..