diff --git a/404.html b/404.html index 9ac5e2c..d56c498 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.Valgo — Watch how sorting actually works

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Valgo — Watch how sorting actually works

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/QVGvhUZu_Nj2KJYrInz74/_buildManifest.js b/_next/static/IOhG0g-uKnlJoOEZjqvgt/_buildManifest.js similarity index 100% rename from _next/static/QVGvhUZu_Nj2KJYrInz74/_buildManifest.js rename to _next/static/IOhG0g-uKnlJoOEZjqvgt/_buildManifest.js diff --git a/_next/static/QVGvhUZu_Nj2KJYrInz74/_ssgManifest.js b/_next/static/IOhG0g-uKnlJoOEZjqvgt/_ssgManifest.js similarity index 100% rename from _next/static/QVGvhUZu_Nj2KJYrInz74/_ssgManifest.js rename to _next/static/IOhG0g-uKnlJoOEZjqvgt/_ssgManifest.js diff --git a/index.html b/index.html index 74b33d2..ca41c3c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Valgo — Watch how sorting actually works

Valgo

Watch how sorting actually works.

7
33
7
60
70
91
24
17
2
69
30
39
1
62
8
82
16
88
27
8
81
71
98
28

What's happening

Array size24 elements

Live stats

Comparisons0
Writes0
Step0 / 0
Sorted0 / 24

Bubble Sort

Time: O(n^2)
Space: O(1)

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.

How the work grows

Same n, wildly different amounts of work.

O(n + k)
O(n log n)
O(n log² n)
O(n²)
\ No newline at end of file +Valgo — Watch how sorting actually works

Valgo

Watch how sorting actually works.

63
32
62
71
36
71
81
94
40
76
66
44
87
84
28
2
96
20
48
98
83
44
53
34

What's happening

Array size24 elements

Live stats

Comparisons0
Writes0
Step0 / 0
Sorted0 / 24

Bubble Sort

Time: O(n^2)
Space: O(1)

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.

How the work grows

Same n, wildly different amounts of work.

O(n + k)
O(n log n)
O(n log² n)
O(n²)
\ No newline at end of file diff --git a/index.txt b/index.txt index a5a9289..e3e538a 100644 --- a/index.txt +++ b/index.txt @@ -12,7 +12,7 @@ f:"$Sreact.suspense" :HL["/_next/static/media/bb3ef058b751a6ad-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/css/dcd60ba58dbab2a4.css","style"] -0:{"P":null,"b":"QVGvhUZu_Nj2KJYrInz74","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/dcd60ba58dbab2a4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"antialiased font-sans __variable_f367f3 __variable_3c557b","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +0:{"P":null,"b":"IOhG0g-uKnlJoOEZjqvgt","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/dcd60ba58dbab2a4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"className":"antialiased font-sans __variable_f367f3 __variable_3c557b","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","searchParams":{},"params":{},"promises":["$@6","$@7"]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} 6:{} 7:"$0:f:0:1:2:children:1:props:children:0:props:params" d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]