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