본문 바로가기
  • soldonii's devlog

자바스크립트110

자바스크립트 알고리즘(9) - steps *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Write a function that accepts a positive number N. // The function should console log a step shape // with N levels using the # character. Make sure the // step has spaces o.. 2019. 8. 26.
자바스크립트 알고리즘(8) - sentence capitalization *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Write a function that accepts a string. The function should // capitalize the first letter of each word in the string then // return the capitalized string. // --- Examples .. 2019. 8. 26.
자바스크립트 알고리즘(7) - reverseString *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Given a string, return a new string with the reversed // order of characters // --- Examples // reverse('apple') === 'leppa' // reverse('hello') === 'olleh' // reverse('Gree.. 2019. 8. 26.
자바스크립트 알고리즘(6) - reverseInt *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Given an integer, return an integer that is the reverse // ordering of numbers. // --- Examples // reverseInt(15) === 51 // reverseInt(981) === 189 // reverseInt(500) === 5 .. 2019. 8. 26.
자바스크립트 알고리즘(5) - palindrome *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Given a string, return true if the string is a palindrome // or false if it is not. Palindromes are strings that // form the same word if it is reversed. *Do* include spaces.. 2019. 8. 26.
자바스크립트 알고리즘(4) - maxChar *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Given a string, return the character that is most // commonly used in the string. // --- Examples // maxChar("abcccccccd") === "c" // maxChar("apple 1231111") === "1" 1번 풀이 .. 2019. 8. 26.
자바스크립트 알고리즘(3) - fizzbuzz *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Write a program that console logs the numbers // from 1 to n. But for multiples of three print // “fizz” instead of the number and for the multiples // of five print “buzz”... 2019. 8. 26.
자바스크립트 알고리즘(2) - chunk *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 // Given an array and chunk size, divide the array into many subarrays // where each subarray is of length size // --- Examples // chunk([1, 2, 3, 4], 2) --> [[ 1, 2], [3, 4]] .. 2019. 8. 26.
자바스크립트 알고리즘(1) - anagram *Udemy의 "The Coding Interview Bootcamp: Algorithms + Data Structures" 강의에서 학습한 내용을 정리한 포스팅입니다. *https://soldonii.github.io에서 작성한 글을 티스토리로 옮겨온 포스팅입니다. *자바스크립트를 배우는 단계라 오류가 있을 수 있습니다. 틀린 내용은 댓글로 말씀해주시면 수정하겠습니다. 감사합니다. :) 지문 / Check to see if two provided strings are anagrams of eachother. // One string is an anagram of another if it uses the same characters // in the same quantity. Only consider c.. 2019. 8. 26.