-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><link rel="icon" href="/static/favicon.png"/><title>404: This page could not be found</title><meta name="next-head-count" content="4"/><link rel="preload" href="/_next/static/css/d3df112486f97f47.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d3df112486f97f47.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0c4f9232f14a6276.js" defer=""></script><script src="/_next/static/chunks/framework-ecc4130bc7a58a64.js" defer=""></script><script src="/_next/static/chunks/main-f61746aa183f4a64.js" defer=""></script><script src="/_next/static/chunks/pages/_app-51b02aad583cab51.js" defer=""></script><script src="/_next/static/chunks/pages/_error-77823ddac6993d35.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_buildManifest.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_ssgManifest.js" defer=""></script><style id="__jsx-57cb4033e68b180a">.page.jsx-57cb4033e68b180a{max-height:600px}</style><style id="__jsx-272cd06a1589a4e8">.nav-link{color:white}.active{color:green!important}.navbar-expand{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.nav-container{margin-right:20px;margin-left:20px}.nav-link:hover{color:green}.footer{background-color:purple;font-size:20px;color:white;border-top:1px solid#e7e7e7;text-align:center;padding:20px;position:fixed;left:0;bottom:0;height:60px;width:100%}.blue-colorr{color:blue}body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:800px;margin:2em auto;padding:2em;background-color:#fff;-webkit-box-shadow:0 0 10px rgba(0,0,0,.1);-moz-box-shadow:0 0 10px rgba(0,0,0,.1);box-shadow:0 0 10px rgba(0,0,0,.1)}h1{color:#333}p{line-height:1.6}pre{background-color:#282c34;color:#61dafb;padding:1em;overflow-x:auto}code{font-family:"Courier New",Courier,monospace}footer{text-align:center;padding:1em 0;background-color:#333;color:#fff}</style></head><body><div id="__next"><header><nav class="navbar navbar-expand navbar-light bg-dark"><div class="nav-container"><a class="nav-link" href="/">Home</a></div>.<div class="nav-container"><button aria-controls="basic-navbar-nav" type="button" aria-label="Toggle navigation" class="navbar-toggler collapsed"><span class="navbar-toggler-icon"></span></button><div class="navbar-collapse collapse" id="basic-navbar-nav"><div class="mr-auto navbar-nav"><div class="nav-item"><a class="nav-link" href="/">Home</a></div><div class="nav-item"><a class="nav-link" href="/articles">Articles</a></div><div class="nav-item"><a class="nav-link" href="/about">About</a></div></div></div></div></nav></header><section><main role="main" class="jsx-57cb4033e68b180a"><div class="jsx-57cb4033e68b180a col-sm-12 page"><div class="jsx-57cb4033e68b180a container"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div></div></main></section><footer class="footer mt-auto py-3 text-white"><div class="container">Place sticky footer content here.</div></footer></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"sM8Molobxdh7vj1dALkXa","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"pageProps":{"articles":["bucket-sort.md","xor-cipher.md"]},"__N_SSG":true} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"pageProps":{"article":"# 🪣 Bucket Sort Algorithm 🪣\n\nBucket Sort is a comparison sort algorithm that distributes elements into a number of buckets. Each bucket is then sorted individually, either using a different sorting algorithm or by recursively applying the bucket sort. After sorting each bucket, the elements are concatenated to form the final sorted array.\n\nWe needed Bucket Sort to effectively solve the [Top K frequent elements problem](https://leetcode.com/problems/top-k-frequent-elements)\n\nMore specifically we \n* calculated the frequency of each element | O(n)\n* initialize frequency buckets | O(n)\n* collect the top k frequent elements | k\n\n\n```java\nclass Solution {\n public int[] topKFrequent(int[] nums, int k) {\n // calculate frequency of each element\n Map<Integer, Integer> freq = new HashMap<>();\n for (int num : nums) {\n freq.put(num, freq.getOrDefault(num, 0) + 1);\n }\n // initialize frequency buckets\n List<Integer>[] frequencyBuckets = new List[nums.length + 1];\n for(int num : freq.keySet()) {\n Integer frequency = freq.get(num);\n List<Integer> frequencyBucket = frequencyBuckets[frequency];\n if(frequencyBucket == null) {\n frequencyBuckets[frequency] = new ArrayList<>(List.of(num));\n } else {\n frequencyBuckets[frequency].add(num);\n }\n }\n // collect the top k frequent elements\n int[] answer = new int[k];\n int pos = k - 1;\n int index = frequencyBuckets.length - 1;\n do{\n\n if(frequencyBuckets[index] != null) {\n for (Integer num : frequencyBuckets[index]) {\n answer[pos] = num;\n pos--;\n }\n }\n index--;\n } while (pos >= 0);\n\n return answer;\n }\n}\n```"},"__N_SSG":true} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"pageProps":{"article":"# Hello I will tell you about basic encryption "},"__N_SSG":true} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>Bjj Surveys</title><link rel="icon" href="/static/favicon.png"/><meta name="next-head-count" content="4"/><link rel="preload" href="/_next/static/css/d3df112486f97f47.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d3df112486f97f47.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0c4f9232f14a6276.js" defer=""></script><script src="/_next/static/chunks/framework-ecc4130bc7a58a64.js" defer=""></script><script src="/_next/static/chunks/main-f61746aa183f4a64.js" defer=""></script><script src="/_next/static/chunks/pages/_app-51b02aad583cab51.js" defer=""></script><script src="/_next/static/chunks/pages/about-69d14759a812b147.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_buildManifest.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_ssgManifest.js" defer=""></script><style id="__jsx-57cb4033e68b180a">.page.jsx-57cb4033e68b180a{max-height:600px}</style><style id="__jsx-272cd06a1589a4e8">.nav-link{color:white}.active{color:green!important}.navbar-expand{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.nav-container{margin-right:20px;margin-left:20px}.nav-link:hover{color:green}.footer{background-color:purple;font-size:20px;color:white;border-top:1px solid#e7e7e7;text-align:center;padding:20px;position:fixed;left:0;bottom:0;height:60px;width:100%}.blue-colorr{color:blue}body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:800px;margin:2em auto;padding:2em;background-color:#fff;-webkit-box-shadow:0 0 10px rgba(0,0,0,.1);-moz-box-shadow:0 0 10px rgba(0,0,0,.1);box-shadow:0 0 10px rgba(0,0,0,.1)}h1{color:#333}p{line-height:1.6}pre{background-color:#282c34;color:#61dafb;padding:1em;overflow-x:auto}code{font-family:"Courier New",Courier,monospace}footer{text-align:center;padding:1em 0;background-color:#333;color:#fff}</style></head><body><div id="__next"><header><nav class="navbar navbar-expand navbar-light bg-dark"><div class="nav-container"><a class="nav-link" href="/">Home</a></div>.<div class="nav-container"><button aria-controls="basic-navbar-nav" type="button" aria-label="Toggle navigation" class="navbar-toggler collapsed"><span class="navbar-toggler-icon"></span></button><div class="navbar-collapse collapse" id="basic-navbar-nav"><div class="mr-auto navbar-nav"><div class="nav-item"><a class="nav-link" href="/">Home</a></div><div class="nav-item"><a class="nav-link" href="/articles">Articles</a></div><div class="active nav-item"><a class="active nav-link" href="/about">About</a></div></div></div></div></nav></header><section><main role="main" class="jsx-57cb4033e68b180a"><div class="jsx-57cb4033e68b180a col-sm-12 page"><div class="jsx-57cb4033e68b180a container"><div><h3 class="blue-colorr">About Page</h3></div></div></div></main></section><footer class="footer mt-auto py-3 text-white"><div class="container">Place sticky footer content here.</div></footer></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"sM8Molobxdh7vj1dALkXa","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>Bjj Surveys</title><link rel="icon" href="/static/favicon.png"/><meta name="next-head-count" content="4"/><link rel="preload" href="/_next/static/css/d3df112486f97f47.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d3df112486f97f47.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0c4f9232f14a6276.js" defer=""></script><script src="/_next/static/chunks/framework-ecc4130bc7a58a64.js" defer=""></script><script src="/_next/static/chunks/main-f61746aa183f4a64.js" defer=""></script><script src="/_next/static/chunks/pages/_app-51b02aad583cab51.js" defer=""></script><script src="/_next/static/chunks/pages/articles-8fb850e2f21f159b.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_buildManifest.js" defer=""></script><script src="/_next/static/sM8Molobxdh7vj1dALkXa/_ssgManifest.js" defer=""></script><style id="__jsx-57cb4033e68b180a">.page.jsx-57cb4033e68b180a{max-height:600px}</style><style id="__jsx-272cd06a1589a4e8">.nav-link{color:white}.active{color:green!important}.navbar-expand{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.nav-container{margin-right:20px;margin-left:20px}.nav-link:hover{color:green}.footer{background-color:purple;font-size:20px;color:white;border-top:1px solid#e7e7e7;text-align:center;padding:20px;position:fixed;left:0;bottom:0;height:60px;width:100%}.blue-colorr{color:blue}body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:800px;margin:2em auto;padding:2em;background-color:#fff;-webkit-box-shadow:0 0 10px rgba(0,0,0,.1);-moz-box-shadow:0 0 10px rgba(0,0,0,.1);box-shadow:0 0 10px rgba(0,0,0,.1)}h1{color:#333}p{line-height:1.6}pre{background-color:#282c34;color:#61dafb;padding:1em;overflow-x:auto}code{font-family:"Courier New",Courier,monospace}footer{text-align:center;padding:1em 0;background-color:#333;color:#fff}</style></head><body><div id="__next"><header><nav class="navbar navbar-expand navbar-light bg-dark"><div class="nav-container"><a class="nav-link" href="/">Home</a></div>.<div class="nav-container"><button aria-controls="basic-navbar-nav" type="button" aria-label="Toggle navigation" class="navbar-toggler collapsed"><span class="navbar-toggler-icon"></span></button><div class="navbar-collapse collapse" id="basic-navbar-nav"><div class="mr-auto navbar-nav"><div class="nav-item"><a class="nav-link" href="/">Home</a></div><div class="active nav-item"><a class="active nav-link" href="/articles">Articles</a></div><div class="nav-item"><a class="nav-link" href="/about">About</a></div></div></div></div></nav></header><section><main role="main" class="jsx-57cb4033e68b180a"><div class="jsx-57cb4033e68b180a col-sm-12 page"><div class="jsx-57cb4033e68b180a container"><div><div><table class="table"><thead><tr><th class="display-none-small-screen" scope="col"> <!-- -->#<!-- --> </th><th scope="col"> article Name</th><th scope="col"> Created Date</th></tr></thead><tbody><tr><th class="display-none-small-screen" scope="row">1</th><td>bucket-sort.md</td><td>30/5</td><td><a href="/articles/bucket-sort.md">Link</a></td></tr><tr><th class="display-none-small-screen" scope="row">2</th><td>xor-cipher.md</td><td>30/5</td><td><a href="/articles/xor-cipher.md">Link</a></td></tr></tbody></table></div></div></div></div></main></section><footer class="footer mt-auto py-3 text-white"><div class="container">Place sticky footer content here.</div></footer></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"articles":["bucket-sort.md","xor-cipher.md"]},"__N_SSG":true},"page":"/articles","query":{},"buildId":"sM8Molobxdh7vj1dALkXa","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> |