???? ??? ?? ????? ?? ??????? ??? ?? ?? ????? ?? ???????. ???? ??? ???? ??? ?? ?? ?? ???? ?? ???????.
??
- ??
- ???? ???????
-
?? ??? ??? ??????
- ?????
- ?? ???
- JavaScript? ??
- LeetCode ?? ??
- ??
??
?? ??? ??? ???? ?? ???? ?? ??(?? ?? ?) ??? ????? ???? ?? ??? ??? ??(?? ?)?? ???? ?????? ???? ?? ???????. ?? ??? ??? ??? ? ????? ?????. ? ????? ?? ?? ????, JavaScript ?? ? ?? ?? ??? ???? ??? ?? ??? ???????.
?? ?? ?????? ??????
?? ?? ????? ?? ?? ?? ???????. ?? ??? ? ???? ????.
- ?? ??? ??
- ???? ?? ??? ? ??
????? ???? ?? ???? ?? ?? ??? ????? ???? ?? ??? ???? ?? ??? ???? ??? ??? ???? ?? ?? ??? ??? ? ?? ????? ?????.
?? ??? ??? ??????
?? [64, 25, 12, 22, 11]? ???? ?? ???????.
- ?? ??: [64, 25, 12, 22, 11]
- ??? ??: []
- ???? ?? ??: [64, 25, 12, 22, 11]
- ? ?? ??:
- ???? ?? ??? ??? ??: 11
- 11? ???? ?? ? ?? ??(64)? ??
- ??: [11, 25, 12, 22, 64]
- ??? ??: [11]
- ???? ?? ??: [25, 12, 22, 64]
- ? ?? ??:
- ???? ?? ??? ??? ??: 12
- 12? ???? ?? ? ?? ??(25)? ??
- ??: [11, 12, 25, 22, 64]
- ??? ??: [11, 12]
- ???? ?? ??: [25, 22, 64]
- ? ?? ??:
- ???? ?? ??? ??? ??: 22
- 22? ???? ?? ? ?? ??(25)? ??
- ??: [11, 12, 22, 25, 64]
- ??? ??: [11, 12, 22]
- ???? ?? ??: [25, 64]
- ? ?? ??:
- ???? ?? ??? ??? ??: 25
- 25? ?? ??? ??? ????
- ??: [11, 12, 22, 25, 64]
- ??? ??: [11, 12, 22, 25]
- ???? ?? ??: [64]
- ?? ??:
- ? ??? ??? ???? ???? ??? ??? ?????
- ?? ??: [11, 12, 22, 25, 64]
?? ??? ??? ???????.
?? ???
?? ??? ?? ??(??, ??, ??)?? O(n^2)? ?? ???? ????. ??? n? ??? ?? ????. ? ??? ??? ????.
- ?? ??? n-1? ?????
- ?? ??? ??? ??? ?? ??? n-i-1? ?????(??? i? ?? ??? ?? ?????)
? ??? ?? (n^2)/2 ??? n ???? ????? ?? O(n^2)? ??????.
??? 2? ?? ????? ?? ?? ??? ??? ??? ??? ????? ????. ??? ???? ??? ???? ?? ?? ???? ??? ?? ??, ?? ?? ???? ??? ?? ??? ? ????.
?? ???
?? ??? ??? ????? ???? ??? O(1)? ?? ???? ????. ?? ??? ???? ??? ?? ?? ??? ??? ?????. ?? ??? ???? ?? ???? ??? ???? ??? ? ????.
JavaScript? ??
?? ?? ????? JavaScript ??? ??? ????.
function selectionSort(arr) { const n = arr.length; for (let i = 0; i < n - 1; i++) { let minIndex = i; // Find the minimum element in the unsorted portion for (let j = i + 1; j < n; j++) { if (arr[j] < arr[minIndex]) { minIndex = j; } } // Swap the found minimum element with the first unsorted element if (minIndex !== i) { [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]]; } } return arr; } // Example usage const unsortedArray = [64, 25, 12, 22, 11]; console.log("Unsorted array:", unsortedArray); console.log("Sorted array:", selectionSort(unsortedArray));
??? ??? ?????.
- ??? ???? ???? SelectionSort ??? ?????.
- ??? ??? ???? ?? ?? ??? ??? ???? ?? ??(i)? ???? ??? ?????.
- ? ???? ???? ?? ? ?? ??? ?????? ???? ?? ???? ?????.
- ?? ?? ?? ??(j)? ???? ???? ?? ???? ?? ?? ??? ????.
- ? ?? ??? ??? minIndex? ???????.
- ???? ?? ? ??? ?? ???? ?? ? ?? ??? ????.
- ?? ??? ??? ??? ? ??? ?????.
LeetCode ?? ??
?? ?? ????? ???? ???? ???? ?? ??? ???????. ????
??: ?? ?? [??]
??: ?? ??? ???? ??? ?????? ???? ?????. O(nlog(n)) ?? ????? ?? ??? ???? ?? ??? ?? ?? ?? ???? ??? ???? ???.
???:: ? ??? ???? ?? Selection Sort ????? ?? ??? ? ????. ???? ??? ????, ???? ?? ???? ?? ?? ??? ?? ?? ???? ?? ? ?? ??? ??? ??? ?????. ?? ??? ??? ??? ? ??? ?????.
???:
function selectionSort(arr) { const n = arr.length; for (let i = 0; i < n - 1; i++) { let minIndex = i; // Find the minimum element in the unsorted portion for (let j = i + 1; j < n; j++) { if (arr[j] < arr[minIndex]) { minIndex = j; } } // Swap the found minimum element with the first unsorted element if (minIndex !== i) { [arr[i], arr[minIndex]] = [arr[minIndex], arr[i]]; } } return arr; } // Example usage const unsortedArray = [64, 25, 12, 22, 11]; console.log("Unsorted array:", unsortedArray); console.log("Sorted array:", selectionSort(unsortedArray));
? ???? ?? ??? Selection Sort ????? ?? ?????. ??? ???? ????? ?? ??? O(n^2) ?? ????? ?? ? ???? LeetCode? ??? ??? ?? ?? ??? ??? ? ??? ?? ??? ??? ????. ?? ???? ???? ????? ????? ??? ?????.
??
????? ?? ??? ?? ??? ??? ?? ??? ?? ??? ?? ???? ???? ?? ???????. ????? ?? ???? ????? ?? ????? ??? ?? ??? ???. ??? 2? ?? ??? O(n^2)? ?? ??? ??? ???? ????? ????. ??? ??? ?? ?? ??? ??? ??????? ?? QuickSort, MergeSort ?? ?? ?? ??? ?? ?? ???? ????? ?????.
?? ??? ?? ??? ?????
? ???? ?? ??? ??? ??? ?? ?? ? ?? ?? ???? ??
????? ??(?, ??, ??? ?? ????/???), ???? ?? ??
??? ????, ?? ???? ?? ??? ?? ????? ?? ??????.

??? ??? ?
- ???
- ????
- ??(???)
??? ?? ??? ??? ????. ??? ?? ??? ????
? ??? ????? ?? ???? ?????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











Java ? JavaScript? ?? ?? ????? ??? ?? ?? ?? ???? ????? ?????. Java? ??? ? ??? ?????? ??? ???? JavaScript? ?? ? ??? ??? ?????.

JavaScriptCommentsareEnsentialformaining, ?? ? ???? 1) Single-LinecommentsERUSEDFORQUICKEXPLANATIONS.2) Multi-linecommentSexplaincleClexLogicOrprovidedEdeDDocumentation.3) inlineecommentsClarifySpecificPartSofcode.bestPractic

JavaScript?? ??? ??? ?? ? ? ?? ??? ???????. 1. ?? ??? ??? ???? ?? ??? ????. ISO ?? ???? ???? ???? ???? ?? ????. 2. ?? ??? ?? ???? ??? ?? ???? ??? ? ??? ? ?? 0?? ????? ?? ??????. 3. ?? ?? ???? ???? ???? ?? ?????? ??? ? ????. 4. Luxon? ?? ???? ???? ?????? ???? ?? ????. ??? ?? ???? ????? ???? ??? ????? ?? ? ????.

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

JavaScriptIspreferredforwebDevelopment, whithjavaisbetterforlarge-scalebackendsystemsandandandoidapps.1) javascriptexcelsincreatinginteractivewebexperiences withitsdynatureanddommanipulation.2) javaoffersstrongtypingandobject-Orientededededededededededededededededdec

javascriptassevenfundamentalDatatatypes : ??, ???, ??, unull, ??, ? symbol.1) ?? seAdouble-precisionformat, ??? forwidevaluerangesbutbecautiouswithfatingfointarithmetic.2) stringsareimmutable, useefficientconcatenationmethendsf

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.

JavaScript ?? ????? ??????? ??? ?? ??? ??? ????? ?? ??? ????. ????? ??? ?????. 1. ?? ?? (CodesPlitting) ??, ?? ??? React.lazy ()? ?? ?? ?? ?? ??? ????? ??? ???? ? ?? ????? ??? ?? ??? ???????. 2. ???? ?? ?? (???)? ????, ES6 ?? ????? ???? "Dead Code"? ???? ?? ? ????? ?? ??? ??? ? ???????. 3. ?? ??? ???? ???? GZIP/BROTLI ? TERSER? JS? ???? ??? ????? ???? ?? ???? ??? ? ? ??????. 4. ??? ???? ???? day.js ? fetch? ?? ?? ?????? ??????.
