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
- 자바스크립트
- keyframes
- 비전공 개발자
- javascript
- front-end
- HTML
- 프론트엔드
- 애니메이션
- Animation
- SWIFT
- button
- effect
- hover
- html5
- jQuery
- 개발자
- xcode
- css3
- MAC
- 백엔드
- react
- 비전공자
- IOS
- iPhone
- CSS
- 풀스택
- image
- ipad
- iOS 개발자
- php
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