Development

Algorithm

[알고리즘 스터디] 10월 4주차 문제 0커플, 폴더폰자판

구름에서 진행하는 구름 LEVEL 1,2번 문제와 답 입니다. 1번 문제의 경우 딕셔너리를 사용해서 문제를 풀었습니다. 하지만 2번 문제의 경우 조건 설정을 시간 관계상 하지 못했기 때문에 오답 처리 되었습니다. 3주차 문제는 풀었지만 코드를 다시 볼 수 있는지 알았지만 나중에 다시 본인의 코드를 보지 못하는....(?) 특이한 구름 알고리즘 챌린지로 인해 포스팅하지 못했습니다 ㅜㅜ N = input() people = list(map(int, input().split())) temp = dict() result = [] for i in people: temp[str(abs(i))] = 0 for i in people: cnt = 1 if temp[str(abs(i))] == 1: cnt = 2 temp..

Languege/Java & Spring

[Spring Framework OPEN API서비스 교육] OAuth 2.0

[OAuth 1.0의 문제점] - WebApp 클라이언트에서는 사용할 수 없음 - 개발과 테스트의 어려움 : Signature - 인증서버와 리소스 서버의 분리가 힘듦 [OAuth 2.0] - 다양한 인증 방식 제공(4가지) - HTTPS 사용의 의무화 - Signature를 사용하지 않음(Secret 평문으로 전송 -> HTTPS 사용 필수) - 인증&인가 단계의 간소화(앱 승인 -> 액세스 토큰 발행) [OAuth 2.0과 1.0의 차이] - HTTPS 사용 의무 - Access Token Secret이 없음 [OAuth 2.0 작동 방식] 1.사용자(브라우저)가 클라이언트 웹서버에 접근한다. 2.클라이언트 웹서버는 사용자에게 앱 승인을 요청한다.(리다이렉트) 3.사용자는 인증서버에 클라이언트 승인을..

Languege/Java & Spring

[Spring Framework OPEN API서비스 교육] OAuth 1.0

OAuth 1.0 OAuth는 사용자들은 Consumer에게 Provider상의 인증 정보를 제공할 필요 없이, Consumer에서 Provider의 개인 데이터로의 접근을 허용하는 방법을 제공하는 인증 위임 프로토콜 Consumer에게 실제 ID와 비밀번호가 전달되지 않고 Provider에 제공하면 Provider에서 Consumer에게 인증 토큰을 제공하는 방식 3-legged OAuth [프로세스 요약] 컨슈머는 CK,CS를 이용해 RT,RTS를 응답받는다. 컨슈머는 사용자를 Provider가 제공한 Redirect Authorization page로 이동시킨다. 사용자는 provider에 컨슈머를 인가한다. 사용자가 클라이언트를 승인했음을 증빙하는 정보 Verifier(Code)를 가지고 클라이언..

Languege/Java & Spring

[Spring Framework OPEN API서비스 교육] 1.API KEY란?

[API KEY] 특징 - 인증(X) : 식별만 수행한다. - 목적 : 통계와 사용량 제한 - 공용 데이터 조회시에 주로 사용 사이트 단위로 접근 허용 - 사용자별 로그인을 하지 않아도 접근 가능한 페이지에 적용 가능 - 1일 사용량 제한하는 경우가 많음 서명 키 없이 API KEY와 사이트 URL을 이용해 접근 제한이 가능하다. 1.클라이언트 개발자는 Provider에 hostName 및 기타 정보를 이용해 API KEY를 요청한다. 2.Provider는 API KEY를 생성하고 hostName 및 기타 정보를 DB에 저장하고 , API KEY를 발급한다. 3.클라이언트 개발자는 해당 API KEY를 통해 데이터를 요청한다. 4.Provider는 API KEY & Origin을 Validate하고 성공..

Algorithm

[알고리즘 스터디] 9월 3주차 문제 Island Perimeter

이번 주 알고리즘 문제는 [463. Island Perimeter] You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). The island doesn't have "lakes", meaning the water in..

Algorithm

[알고리즘 스터디] 9월 1주차 문제 4Sum, 유기농 배추

이번주 알고리즘 문제는 [4Sum] https://leetcode.com/problems/4sum/ 4Sum - 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 Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: 0

Languege/Java & Spring

[스프링 에러] 카카오 로그인 시 발생 오류 및 해결방법 Provider ID must be specified for client registration 'kakao'

카카오 로그인 api 적용 도중 Provider ID must be specified for client registration 'kakao' 에러가 발생했습니다. 에러로그 2022-08-24 22:35:26.863 ERROR 21516 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfig': Unsatisfied dependency expressed through method 'setContentNegotationStrate..

Algorithm

[알고리즘 스터디] 8월 4주차 문제 Add Two Numbers, Maximum Number of Groups Entering a Competition

이번주 알고리즘 문제는 [Maximum Number of Groups Entering a Competition] https://leetcode.com/problems/maximum-number-of-groups-entering-a-competition/ Maximum Number of Groups Entering a Competition - 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 You are given a positive integer array gra..

mntdev
'분류 전체보기' 카테고리의 글 목록 (10 Page)