μ λ ¬ μκ³ λ¦¬μ¦Beginner
μ ν μ λ ¬
κ°μ₯ μμ μμλ₯Ό μ°Ύμ λ°λ³΅μ μΌλ‘ μμΌλ‘ μ΄λμν΅λλ€. κ° λ°λ³΅λ§λ€ λ¨μ μμ μ€μμ μ΅μκ°μ "μ ν"νκ³ μ λ ¬λ λΆλΆ λ€μ λ°°μΉν©λλ€. μ΅μνμ λ©λͺ¨λ¦¬ μ¬μ©μΌλ‘ ꡬνμ΄ κ°λ¨νμ§λ§ μ λ ₯μ κ΄κ³μμ΄ νμ O(nΒ²) μκ°μ΄ 걸립λλ€.
#sorting#comparison#in-place#unstable
Complexity Analysis
Time (Average)
O(nΒ²)Expected case performance
Space
O(1)Memory requirements
Time (Best)
O(nΒ²)Best case performance
Time (Worst)
O(nΒ²)Worst case performance
Step: 1 / 0
500ms
SlowFast
Keyboard Shortcuts
Space Play/Pauseβ β StepR Reset1-4 Speed
Real-time Statistics
Algorithm Performance Metrics
Progress0%
Comparisons
0
Swaps
0
Array Accesses
0
Steps
1/ 0
Algorithm Visualization
Step 1 of 0
Initialize array to begin
Default
Comparing
Swapped
Sorted
Code Execution
Currently executing
Previously executed
Implementation