250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- Animation
- 비전공자
- hover
- MAC
- CSS
- 풀스택
- iPhone
- html5
- 자바스크립트
- image
- css3
- 애니메이션
- 프론트엔드
- iOS 개발자
- IOS
- HTML
- effect
- 비전공 개발자
- SWIFT
- button
- jQuery
- ipad
- 개발자
- xcode
- javascript
- php
- react
- keyframes
- front-end
- 백엔드
Archives
- Today
- Total
목록sort (1)
비전공자 개발일기
Javascript bubble & selection & insertion sort
Bubble sort (버블 정렬) 두 인접한 원소를 검사하여 정렬 let array = [11, 2, 20, 3, 13 ,0, -20, 100, 1]; // [11, 2, 20, 3, 13 ,0, -20, 100, 1]를 버블정렬(내림차순) console.log(array) console.log("======================") for (let i = 0; i < array.length - 1; i++) { let temp; for (let j = 0; j < array.length - 1 - i; j++){ if (array[j] < array[j + 1]) { temp = array[j]; array[j] = array[j + 1]; array[j + 1] = temp; } consol..
Javascript
2021. 9. 5. 01:29