Computer Science

    [codesignal][python] 5. almostIncreasingSequence

    codesignal.com Coding Tests and Assessments for Technical Hiring | CodeSignal Learn how you can go beyond resumes in technical hiring with a state-of-the-art assessment platform and advanced coding tests codesignal.com level : easy Question: Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element fro..

    [codesignal][python] 4. Make Array Consecutive 2BACK

    codesignal.com Coding Tests and Assessments for Technical Hiring | CodeSignal Learn how you can go beyond resumes in technical hiring with a state-of-the-art assessment platform and advanced coding tests codesignal.com level : easy Question: Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size. Since he likes to mak..

    [codesignal][python] 3. shapeArea

    codesignal.com Coding Tests and Assessments for Technical Hiring | CodeSignal Learn how you can go beyond resumes in technical hiring with a state-of-the-art assessment platform and advanced coding tests codesignal.com level : easy Question: Below we will define an n-interesting polygon. Your task is to find the area of a polygon for a given n. A 1-interesting polygon is just a square with a sid..

    [codesignal][python] 2. CheckPalindrome(회문)

    codesignal.com Coding Tests and Assessments for Technical Hiring | CodeSignal Learn how you can go beyond resumes in technical hiring with a state-of-the-art assessment platform and advanced coding tests codesignal.com level : easy Question: Given the string, check if it is a palindrome. 회문인지를 확인하는 문제 회문 : 거꾸로 읽었을 때도 똑바로 읽었을 때와 결과가 같은 문자열 Example: For inputString = "aabaa", the output should be ..

    [codesignal][python] 1. adjacentElementsProduct

    codesignal.com Coding Tests and Assessments for Technical Hiring | CodeSignal Learn how you can go beyond resumes in technical hiring with a state-of-the-art assessment platform and advanced coding tests codesignal.com level : easy Question: Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. Example: For inputArray = [3, 6, -2, -5..

    1. 선형배열

    선형 배열 (linear array) 배열 (array) : 같은 종류의 데이터(원소)들을 순서대로 늘어 놓은 것 파이썬에는 따로 array가 존재하지 않는다 리스트 (list) : 파이썬에서 array를 대체하는 융통성 있는 내장 자료구조 서로 다른 데이터 타입의 원소들을 한 리스트 안에 담을 수 있다 ex) L=['Bob', 1, 3.14] 리스트 속 원소들의 길이가 달라도 상관 없다 ex) L=['Bob, Cat','Spam','Programmers'] 리스트 연산 append(원소 끝에 붙이기) L=['monkey','cat','dog','elephant'] L.append('gorilla') print(L) >>>['monkey','cat','dog','elephant','gorilla'] O(..