코딩 테스트

    [LeetCode - Online Assessment 기출] Circular Printer

    [LeetCode - Online Assessment 기출] Circular Printer

    단어가 주어졌을때, 처음 알파벳 부터 각 알파벳에 맞게 포인터를 움직여야한다. 포인터의 첫번째 위치는 'A'이며, 포인터가 왼쪽, 오른쪽으로 움직일 때마다 1초씩 증가한다. 입력 & 출력 예제 case1 입력: "BZA" 출력: 4 case2 입력: "AZGB" 출력: 13 case3 입력: "ZNMD" 출력: 23 제한사항 1

    [LeetCode] 30. Substring with Concatenation of All Words

    30. Substring with Concatenation of All Words Hard You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of each word in words exactly once, in any order, and without any intervening characters. You can return the answer in any order. Example 1: Input: s = "barfoothefoobarman", words = ["foo","bar"] Out..