본문 바로가기

전체 글94

[Hash] 전화번호 목록 문제 설명 전화번호부에 적힌 전화번호 중, 한 번호가 다른 번호의 접두어인 경우가 있는지 확인하려 합니다. 전화번호가 다음과 같을 경우, 구조대 전화번호는 영석이의 전화번호의 접두사입니다. 구조대 : 119 박준영 : 97 674 223 지영석 : 11 9552 4421 전화번호부에 적힌 전화번호를 담은 배열 phone_book 이 solution 함수의 매개변수로 주어질 때, 어떤 번호가 다른 번호의 접두어인 경우가 있으면 false를 그렇지 않으면 true를 return 하도록 solution 함수를 작성해주세요. 제한 사항 phone_book의 길이는 1 이상 1,000,000 이하입니다. 각 전화번호의 길이는 1 이상 20 이하입니다. 같은 전화번호가 중복해서 들어있지 않습니다. 입출력 예제 ph.. 2021. 7. 9.
[Hash] 완주하지 못한 선수 문제 설명 수많은 마라톤 선수들이 마라톤에 참여하였습니다. 단 한 명의 선수를 제외하고는 모든 선수가 마라톤을 완주하였습니다. 마라톤에 참여한 선수들의 이름이 담긴 배열 participant와 완주한 선수들의 이름이 담긴 배열 completion이 주어질 때, 완주하지 못한 선수의 이름을 return 하도록 solution 함수를 작성해주세요. 제한사항 마라톤 경기에 참여한 선수의 수는 1명 이상 100,000명 이하입니다. completion의 길이는 participant의 길이보다 1 작습니다. 참가자의 이름은 1개 이상 20개 이하의 알파벳 소문자로 이루어져 있습니다. 참가자 중에는 동명이인이 있을 수 있습니다. 입출력 예 participantcompletionreturn ["leo", "kiki".. 2021. 7. 8.
알고리즘 공부를 시작하며 저번주 토요일에 있었던 네이버웹툰 알고리즘 테스트 3개 중에 2개 풀었는데 바로 광탈했다. 못푼 문제를 돌아보니 이해를 했으면 풀 수 있는 문제였다. 공부의 필요성을 절감한다. 이제 하루에 한 개의 알고리즘은 반드시 풀어보고 못풀면 답안을 이해해 보려고 한다. 알고리즘 안하면 자료구조라도 해서 매일 매일 하나씩은 하자! 2021. 7. 8.
대소문자와 프로그래밍 한글에는 대소문자라는 구분이 없지만, 알파벳과 같은 서구권의 문자에는 대문자(큰글자)와 소문자(작은글자)라는 구분이 있다. 예를 들어, 영어의 경우 다음과 같이 큰 글자와 작은 글자의 구분이 있다. 대문자: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 소문자: a b c d e f g h i j k l m n o p q r s t u v w x y z 대문자를 표현하는 영어 표현이 여러가지 있지만, Capital letter라는 표현이 일생 생활에서 자주 사용된다면, 프로그래밍에서는 주로 uppercase라는 표현을 주로 사용한다. 소문자 역시 Small letter라는 표현이 있지만, 프로그래밍에서는 lowercase라는 표현을 주로 사용한다. 대문자를 .. 2021. 7. 8.
JavaScript Promises https://www.w3schools.com/js/js_promise.asp JavaScript Promises JavaScript Promises "I Promise a Result!" "Producing code" is code that can take some time "Consuming code" is code that must wait for the result A Promise is a JavaScript object that links producing code and consuming code JavaScript Promise Object A Java www.w3schools.com JavaScript Promises 자바스크립트 프라미스 "I Promise a Result!" "저는 결.. 2021. 7. 8.
Slot 이란 무엇인가? https://kr.vuejs.org/v2/guide/components-slots.html 슬롯(Slots) — Vue.js Vue.js - 프로그레시브 자바스크립트 프레임워크 kr.vuejs.org 2021. 7. 7.
JavaScript const 변수 https://www.w3schools.com/js/js_const.asp JavaScript const JavaScript Const The const keyword was introduced in ES6 (2015). Variables defined with const cannot be Redeclared. Variables defined with const cannot be Reassigned. Variables defined with const have Block Scope. Cannot be Reassigned Example const PI = 3. www.w3schools.com The const keyword was introduced in ES6 (2015). Variables define.. 2021. 6. 30.
JavaScript let 변수 https://www.w3schools.com/js/js_let.asp JavaScript Let JavaScript Let The let keyword was introduced in ES6 (2015). Variables defined with let cannot be Redeclared. Variables defined with let must be Declared before use. Variables defined with let have Block Scope. Cannot be Redeclared Variables defined with l www.w3schools.com The let keyword was introduced in ES6 (2015). Variables defined with.. 2021. 6. 30.
JavaScript var 변수 https://www.w3schools.com/js/js_variables.asp JavaScript Variables JavaScript Variables There are 3 ways to declare a JavaScript variable: Using var Using let Using const This chapter uses var. The let and const keywords are explained in the next chapters. Variables Variables are containers for storing data (values). In t www.w3schools.com JavaScript Variables There are 3 ways to declare a JavaS.. 2021. 6. 30.
HTML meta 요소는 무엇일까? https://www.w3schools.com/html/html_head.asp HTML head Elements HTML - The Head Element The HTML element is a container for the following elements: , , , , , and . The HTML Element The element is a container for metadata (data about data) and is placed between the tag and the tag. HTML metadata is data about the HTML d www.w3schools.com The HTML Element HTML 요소 The element is typically used to s.. 2021. 6. 29.