Skip to content

๐Ÿงธ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํ† ์ด ๋ฌธ์ œ๋ฅผ ๋ฐœํ‘œํ•˜๊ณ  ์„œ๋กœ ๊ณต์œ  ํ•ฉ๋‹ˆ๋‹ค!

Notifications You must be signed in to change notification settings

useonglee/Algorithm_Study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

166 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

toy

๐Ÿงธ Algorithm_Study

๐ŸŒŸ ์ฝ”๋“œ์Šคํ…Œ์ด์ธ  Toy ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋””์ž…๋‹ˆ๋‹ค!๐ŸŒŸ
๐ŸŒŸ ์•Œ๊ณ ๋ฆฌ์ฆ˜๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ฝ”์Šค ๊ณผ์ •์—์„œ ํ•„์š”ํ•œ ์ž๋ฃŒ๋ฅผ ์„œ๋กœ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค! ๐ŸŒŸ



๐Ÿ‘‰ Rules

  1. ๋ชจ๋“  ๊ทธ๋ฃน์›๋“ค์ด ๋ฐœํ‘œ๋ฅผ ํ•ฉ๋‹ˆ๋‹ค.
    const Algolithm_study = () => {
    let Presenters = ["์šฐ์„ฑ๋‹˜", "์€์šฑ๋‹˜", "์ฃผํ˜„๋‹˜", "์˜ํ˜ธ๋‹˜", "์ˆœ๊ธฐ๋‹˜", "์œ ์›๋‹˜"];
    return Presenters.map(el => `Today's Presenter : ${el}`)
}


  1. ์ž์‹ ์ด ์ž‘์„ฑํ•œ ์ฝ”๋“œ๊ฐ€ ์•„๋‹ˆ๋ผ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ์ž‘์„ฑํ•œ ์ฝ”๋“œ๋ฅผ ๋ฐœํ‘œํ•˜๊ณ  ์—ฌ๋Ÿฌ ๋ฐฉ๋ฉด์—์„œ ์ฝ”๋“œ๋ฅผ ๋ถ„์„ํ•˜๋Š” ์‹ค๋ ฅ์„ ํ‚ค์›๋‹ˆ๋‹ค.
const random_Pr = function (arr) {
    let presenters = arr.slice();

    for (let i = 0; i < arr.length; i++) {
      const whoAreYou = Math.floor(Math.random() * arr.length);
      let me = presenters[i];

      presenters[i] = presenters[whoAreYou];
      presenters[whoAreYou] = me;
    }

    return presenters;
  };
  
  const presenters = ["์šฐ์„ฑ๋‹˜", "์€์šฑ๋‹˜", "์ฃผํ˜„๋‹˜", "์˜ํ˜ธ๋‹˜", "์ˆœ๊ธฐ๋‹˜", "์œ ์›๋‹˜"];
  const result = random_Pr(presenters)

  const study_Start = [
  `์šฐ์„ฑ๋‹˜ ์ฝ”๋“œ=> ${result[0]} ๋‹น์ฒจ!` ,
  `์€์šฑ๋‹˜ ์ฝ”๋“œ=> ${result[1]} ๋‹น์ฒจ!` ,
  `์ฃผํ˜„๋‹˜ ์ฝ”๋“œ=> ${result[2]} ๋‹น์ฒจ!` ,
  `์˜ํ˜ธ๋‹˜ ์ฝ”๋“œ=> ${result[3]} ๋‹น์ฒจ!` ,
  `์ˆœ๊ธฐ๋‹˜ ์ฝ”๋“œ=> ${result[4]} ๋‹น์ฒจ!` ,
  `์œ ์›๋‹˜ ์ฝ”๋“œ=> ${result[5]} ๋‹น์ฒจ!`
  ]
  console.log(study_Start)


  1. ์Šคํ„ฐ๋”” ๊ทธ๋ฃน์ด ๋๋‚œ ํ›„์—๋Š” ๋ฐฐ์šด์ , ๋А๋‚€์ ์„ ๊ธฐ๋กํ•ฉ๋‹ˆ๋‹ค!
class Review {
    constructor(name, date, content) {
        this.name = name
        this.date = date
        this.content = content
    }
}

const today_i_learned = new Review ("์ด๋ฆ„์„ ์ ์–ด์ฃผ์„ธ์š”", "๋‚ ์งœ๋ฅผ ์ ์–ด์ฃผ์„ธ์š”", "๋‚ด์šฉ์„ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”")

About

๐Ÿงธ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํ† ์ด ๋ฌธ์ œ๋ฅผ ๋ฐœํ‘œํ•˜๊ณ  ์„œ๋กœ ๊ณต์œ  ํ•ฉ๋‹ˆ๋‹ค!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors