• Skip to primary navigation
  • Skip to content
  • Skip to footer
fullfish fullfish 일상을 더 가볍게 만드는 앱을 만듭니다
  • Apps
  • Blog

    fullfish

    just studying

    • 전주

    영어 끝말잇기

    코드

    function solution(n, words) {
      let used = [words[0]];
      for (let i = 1; i < words.length; i++) {
        if (
          !used.includes(words[i]) &&
          words[i][0] === used[used.length - 1][used[used.length - 1].length - 1]
        ) {
          used.push(words[i]);
        } else {
          return [(i % n) + 1, parseInt(i / n) + 1];
        }
      }
      return [0,0]
    }
    

    카테고리: 코딩 테스트, 프로그래머스 level2

    업데이트: September 8, 2022

    공유하기

    Twitter Facebook LinkedIn
    이전 다음

    참고

    fullweight 개인정보 처리방침 [ Project / fullweight ]

    https://github.com/full-fish/fullweight/blob/main/PRIVACY_POLICY.md

    멀티캠퍼스 KDT 데이터 분석가 최종 프로젝트 6차 수행일지 [ Project / multicampus-project ]

    [6차 프로젝트 수행일지_Tensor.docx

    멀티캠퍼스 KDT 데이터 분석가 최종 프로젝트 5차 수행일지 [ Project / multicampus-project ]

    [5차 프로젝트 수행일지_Tensor.docx

    멀티캠퍼스 KDT 데이터 분석가 최종 프로젝트 4차 수행일지 [ Project / multicampus-project ]

    [4차 프로젝트 수행일지_Tensor.docx

    • 팔로우:
    • 피드
    © 2026 fullfish. Powered by Jekyll & Minimal Mistakes.