\ No newline at end of file
+404: This page could not be found
404
This page could not be found.
\ No newline at end of file
diff --git a/docs/_next/static/_VlBr_kOygObGgcBDgQ8x/_buildManifest.js b/docs/_next/static/IO84UVlTMRRUbweKGYE9P/_buildManifest.js
similarity index 80%
rename from docs/_next/static/_VlBr_kOygObGgcBDgQ8x/_buildManifest.js
rename to docs/_next/static/IO84UVlTMRRUbweKGYE9P/_buildManifest.js
index 111cae6..a337f86 100644
--- a/docs/_next/static/_VlBr_kOygObGgcBDgQ8x/_buildManifest.js
+++ b/docs/_next/static/IO84UVlTMRRUbweKGYE9P/_buildManifest.js
@@ -1 +1 @@
-self.__BUILD_MANIFEST=function(s,e,a,o,t,b){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-de0ea15d1960934068dd.js"],"/_error":["static/chunks/pages/_error-a0e21b9b223f827fe1f2.js"],"/about":[s,"static/chunks/pages/about-69d6dd3f12016844b0b7.js"],"/blogs/algorithms":[s,e,a,o,t,b,"static/chunks/pages/blogs/algorithms-64cc8a79a4a314125cf9.js"],"/blogs/algorithms/big-o-notations":[s,e,a,t,"static/chunks/pages/blogs/algorithms/big-o-notations-bdd6ccb759dc2c4e4751.js"],"/blogs/data-structures":[s,e,a,o,t,b,"static/chunks/pages/blogs/data-structures-3e0b26b5b3edf34b6f79.js"],"/blogs/data-structures/stack":[s,e,a,"static/chunks/pages/blogs/data-structures/stack-b6dc47a1cf32b45fe917.js"],"/blogs/data-structures/tree":[s,e,a,"static/chunks/pages/blogs/data-structures/tree-916cf9135bdbe9a2b935.js"],"/blogs/html":[s,e,a,o,t,b,"static/chunks/pages/blogs/html-94a68e877b0741e522c9.js"],"/blogs/html/storage-api":[s,e,"static/chunks/pages/blogs/html/storage-api-1ce8d131310c2611a5f2.js"],"/blogs/js":[s,e,a,o,t,b,"static/chunks/pages/blogs/js-c72ee0c1dcb79d876aa2.js"],"/blogs/js/promises":[s,e,"static/chunks/pages/blogs/js/promises-6a1773c1ca5738397d37.js"],"/blogs/js/promises-part-2":[s,e,"static/chunks/pages/blogs/js/promises-part-2-59c155233663ff5c0fa1.js"],"/blogs/mobile":[s,e,a,o,t,b,"static/chunks/pages/blogs/mobile-e038540762a8781e2af4.js"],"/blogs/mobile/deep-link":[s,e,"static/chunks/pages/blogs/mobile/deep-link-adcfdf36d39a5c1dbf45.js"],"/blogs/performance":[s,e,a,o,t,b,"static/chunks/pages/blogs/performance-ca74bd3650f5d545d82a.js"],"/blogs/performance/optimize-web-bundles":[s,e,"static/chunks/pages/blogs/performance/optimize-web-bundles-8981031187ac30978b32.js"],"/blogs/problems":[s,e,a,o,t,b,"static/chunks/pages/blogs/problems-4b2d34fb808ea4d8dc3f.js"],"/blogs/problems/array-intersection":[s,e,a,"static/chunks/pages/blogs/problems/array-intersection-1035e124b6905b61ba39.js"],"/blogs/problems/facebook-passing-year-books":[s,e,a,"static/chunks/pages/blogs/problems/facebook-passing-year-books-e05a412d3482912f9de5.js"],"/blogs/problems/facebook-reverse-to-make-equal-array":[s,e,a,"static/chunks/pages/blogs/problems/facebook-reverse-to-make-equal-array-4969e5cc1f2d2c27ad5a.js"],"/blogs/problems/fibonacci":[s,e,a,o,"static/chunks/pages/blogs/problems/fibonacci-c4a11b80dd656dbd5de4.js"],"/blogs/problems/missing-element-in-permutation":[s,e,a,"static/chunks/pages/blogs/problems/missing-element-in-permutation-cb42fae86bdf6f3396d8.js"],"/blogs/problems/palindrome":[s,e,a,"static/chunks/pages/blogs/problems/palindrome-12436d8bac40b2b779d7.js"],"/blogs/problems/simple-frog-jump":[s,e,a,"static/chunks/pages/blogs/problems/simple-frog-jump-ef2f58ea09425a641df7.js"],"/blogs/problems/tape-equilibrium":[s,e,a,"static/chunks/pages/blogs/problems/tape-equilibrium-aac755806088be644ff1.js"],"/blogs/programming":[s,e,a,o,t,b,"static/chunks/pages/blogs/programming-630f0d4331ad229008e3.js"],"/blogs/programming/10-things-should-know":[s,e,"static/chunks/pages/blogs/programming/10-things-should-know-bf749c990a706e31041e.js"],"/blogs/react":[s,e,a,o,t,b,"static/chunks/pages/blogs/react-076693883c5bded17fae.js"],"/blogs/react/use-effect":[s,e,"static/chunks/pages/blogs/react/use-effect-839b8a16ccb3aa08f064.js"],"/blogs/security":[s,e,a,o,t,b,"static/chunks/pages/blogs/security-2bfe1fae43761686e3f9.js"],"/blogs/security/prevent-ssrf-attacks":[s,e,"static/chunks/pages/blogs/security/prevent-ssrf-attacks-e2d6a1c4c864f0a0d8b6.js"],"/coming-soon":[s,"static/chunks/pages/coming-soon-8452b69e0465342e6dd5.js"],sortedPages:["/","/_app","/_error","/about","/blogs/algorithms","/blogs/algorithms/big-o-notations","/blogs/data-structures","/blogs/data-structures/stack","/blogs/data-structures/tree","/blogs/html","/blogs/html/storage-api","/blogs/js","/blogs/js/promises","/blogs/js/promises-part-2","/blogs/mobile","/blogs/mobile/deep-link","/blogs/performance","/blogs/performance/optimize-web-bundles","/blogs/problems","/blogs/problems/array-intersection","/blogs/problems/facebook-passing-year-books","/blogs/problems/facebook-reverse-to-make-equal-array","/blogs/problems/fibonacci","/blogs/problems/missing-element-in-permutation","/blogs/problems/palindrome","/blogs/problems/simple-frog-jump","/blogs/problems/tape-equilibrium","/blogs/programming","/blogs/programming/10-things-should-know","/blogs/react","/blogs/react/use-effect","/blogs/security","/blogs/security/prevent-ssrf-attacks","/coming-soon"]}}("static/chunks/329-cd81a01206a495facbfb.js","static/chunks/358-aed3775a865b17a3f77d.js","static/chunks/638-4160c0bde2c3a538daf1.js","static/chunks/366-f71de40baace0cdcfa96.js","static/chunks/150-161084659dbbfdf9241f.js","static/chunks/369-ade5a919b84b4eb09814.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
+self.__BUILD_MANIFEST=function(s,e,a,o,b,t){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-de0ea15d1960934068dd.js"],"/_error":["static/chunks/pages/_error-a0e21b9b223f827fe1f2.js"],"/about":[s,"static/chunks/pages/about-69d6dd3f12016844b0b7.js"],"/blogs/algorithms":[s,e,a,o,b,t,"static/chunks/pages/blogs/algorithms-64cc8a79a4a314125cf9.js"],"/blogs/algorithms/big-o-notations":[s,e,a,b,"static/chunks/pages/blogs/algorithms/big-o-notations-bdd6ccb759dc2c4e4751.js"],"/blogs/data-structures":[s,e,a,o,b,t,"static/chunks/pages/blogs/data-structures-3e0b26b5b3edf34b6f79.js"],"/blogs/data-structures/stack":[s,e,a,"static/chunks/pages/blogs/data-structures/stack-04f2b3c45f285307c016.js"],"/blogs/data-structures/tree":[s,e,a,"static/chunks/pages/blogs/data-structures/tree-916cf9135bdbe9a2b935.js"],"/blogs/html":[s,e,a,o,b,t,"static/chunks/pages/blogs/html-94a68e877b0741e522c9.js"],"/blogs/html/storage-api":[s,e,"static/chunks/pages/blogs/html/storage-api-1ce8d131310c2611a5f2.js"],"/blogs/js":[s,e,a,o,b,t,"static/chunks/pages/blogs/js-c72ee0c1dcb79d876aa2.js"],"/blogs/js/promises":[s,e,"static/chunks/pages/blogs/js/promises-6a1773c1ca5738397d37.js"],"/blogs/js/promises-part-2":[s,e,"static/chunks/pages/blogs/js/promises-part-2-59c155233663ff5c0fa1.js"],"/blogs/mobile":[s,e,a,o,b,t,"static/chunks/pages/blogs/mobile-e038540762a8781e2af4.js"],"/blogs/mobile/deep-link":[s,e,"static/chunks/pages/blogs/mobile/deep-link-adcfdf36d39a5c1dbf45.js"],"/blogs/performance":[s,e,a,o,b,t,"static/chunks/pages/blogs/performance-ca74bd3650f5d545d82a.js"],"/blogs/performance/optimize-web-bundles":[s,e,"static/chunks/pages/blogs/performance/optimize-web-bundles-8981031187ac30978b32.js"],"/blogs/problems":[s,e,a,o,b,t,"static/chunks/pages/blogs/problems-4b2d34fb808ea4d8dc3f.js"],"/blogs/problems/array-intersection":[s,e,a,"static/chunks/pages/blogs/problems/array-intersection-1035e124b6905b61ba39.js"],"/blogs/problems/facebook-passing-year-books":[s,e,a,"static/chunks/pages/blogs/problems/facebook-passing-year-books-e05a412d3482912f9de5.js"],"/blogs/problems/facebook-reverse-to-make-equal-array":[s,e,a,"static/chunks/pages/blogs/problems/facebook-reverse-to-make-equal-array-4969e5cc1f2d2c27ad5a.js"],"/blogs/problems/fibonacci":[s,e,a,o,"static/chunks/pages/blogs/problems/fibonacci-c4a11b80dd656dbd5de4.js"],"/blogs/problems/missing-element-in-permutation":[s,e,a,"static/chunks/pages/blogs/problems/missing-element-in-permutation-cb42fae86bdf6f3396d8.js"],"/blogs/problems/palindrome":[s,e,a,"static/chunks/pages/blogs/problems/palindrome-12436d8bac40b2b779d7.js"],"/blogs/problems/simple-frog-jump":[s,e,a,"static/chunks/pages/blogs/problems/simple-frog-jump-ef2f58ea09425a641df7.js"],"/blogs/problems/tape-equilibrium":[s,e,a,"static/chunks/pages/blogs/problems/tape-equilibrium-aac755806088be644ff1.js"],"/blogs/programming":[s,e,a,o,b,t,"static/chunks/pages/blogs/programming-630f0d4331ad229008e3.js"],"/blogs/programming/10-things-should-know":[s,e,"static/chunks/pages/blogs/programming/10-things-should-know-bf749c990a706e31041e.js"],"/blogs/react":[s,e,a,o,b,t,"static/chunks/pages/blogs/react-076693883c5bded17fae.js"],"/blogs/react/use-effect":[s,e,"static/chunks/pages/blogs/react/use-effect-839b8a16ccb3aa08f064.js"],"/blogs/security":[s,e,a,o,b,t,"static/chunks/pages/blogs/security-2bfe1fae43761686e3f9.js"],"/blogs/security/prevent-ssrf-attacks":[s,e,"static/chunks/pages/blogs/security/prevent-ssrf-attacks-e2d6a1c4c864f0a0d8b6.js"],"/coming-soon":[s,"static/chunks/pages/coming-soon-8452b69e0465342e6dd5.js"],sortedPages:["/","/_app","/_error","/about","/blogs/algorithms","/blogs/algorithms/big-o-notations","/blogs/data-structures","/blogs/data-structures/stack","/blogs/data-structures/tree","/blogs/html","/blogs/html/storage-api","/blogs/js","/blogs/js/promises","/blogs/js/promises-part-2","/blogs/mobile","/blogs/mobile/deep-link","/blogs/performance","/blogs/performance/optimize-web-bundles","/blogs/problems","/blogs/problems/array-intersection","/blogs/problems/facebook-passing-year-books","/blogs/problems/facebook-reverse-to-make-equal-array","/blogs/problems/fibonacci","/blogs/problems/missing-element-in-permutation","/blogs/problems/palindrome","/blogs/problems/simple-frog-jump","/blogs/problems/tape-equilibrium","/blogs/programming","/blogs/programming/10-things-should-know","/blogs/react","/blogs/react/use-effect","/blogs/security","/blogs/security/prevent-ssrf-attacks","/coming-soon"]}}("static/chunks/329-cd81a01206a495facbfb.js","static/chunks/358-aed3775a865b17a3f77d.js","static/chunks/638-4160c0bde2c3a538daf1.js","static/chunks/366-f71de40baace0cdcfa96.js","static/chunks/150-161084659dbbfdf9241f.js","static/chunks/369-01a32bd2aed58c359a83.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/docs/_next/static/_VlBr_kOygObGgcBDgQ8x/_ssgManifest.js b/docs/_next/static/IO84UVlTMRRUbweKGYE9P/_ssgManifest.js
similarity index 100%
rename from docs/_next/static/_VlBr_kOygObGgcBDgQ8x/_ssgManifest.js
rename to docs/_next/static/IO84UVlTMRRUbweKGYE9P/_ssgManifest.js
diff --git a/docs/_next/static/chunks/369-01a32bd2aed58c359a83.js b/docs/_next/static/chunks/369-01a32bd2aed58c359a83.js
new file mode 100644
index 0000000..8952d4b
--- /dev/null
+++ b/docs/_next/static/chunks/369-01a32bd2aed58c359a83.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[369],{8145:function(t,e,n){"use strict";n.d(e,{Y:function(){return l}});var r=n(5893),a=n(5988),i=n(1664),o=n(7610),l=function(t){var e=t.type,n=t.post,l=n.link,s=n.module.meta,p="/blogs/".concat(e)+l;return(0,r.jsxs)("article",{className:"jsx-3233879758",children:[(0,r.jsx)(o.F,{meta:s,link:p}),(0,r.jsx)(i.default,{href:p,children:(0,r.jsx)("a",{className:"jsx-3233879758",children:"Read more \u2192"})}),(0,r.jsx)(a.default,{id:"3233879758",children:["article.jsx-3233879758{margin-bottom:3rem;}"]})]})}},3988:function(t,e,n){"use strict";function r(t){return t.keys().map((function(e){return{link:e.substr(1).replace(/\.mdx$/,""),module:t(e)}}))}n.d(e,{Lc:function(){return a},$F:function(){return i},R_:function(){return o},hx:function(){return l},TM:function(){return s},Di:function(){return p},yB:function(){return u},MC:function(){return m},qH:function(){return c},Bl:function(){return k}});var a=r(n(2900)),i=r(n(3735)),o=r(n(1304)),l=r(n(7312)),s=r(n(6126)),p=r(n(4417)),u=r(n(5501)),m=r(n(805)),c=r(n(1706)),k=r(n(6399))},2587:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return m},default:function(){return d}});var r=n(6156),a=n(7375),i=(n(7294),n(4137)),o=n(2052),l=n(2919),s=(n(3042),n(9087));n(4070);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e {\n storage[count] = value;\n count++;\n }\n const pop = () => {\n if(count === 0) {\n return undefined;\n }\n count--;\n const lastValue = storage[count];\n delete storage[count]\n return lastValue;\n }\n const size = () => {\n return count;\n }\n const peek = () => {\n return storage[count-1]\n }\n return {\n push,\n pop,\n size,\n peek\n }\n}\n"),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Complexity Table",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the complexity table for Stack."),(0,i.kt)("hr",null),(0,i.kt)("table",null,(0,i.kt)("thead",{parentName:"table"},(0,i.kt)("tr",{parentName:"thead"},(0,i.kt)("th",u({parentName:"tr"},{align:null})),(0,i.kt)("th",u({parentName:"tr"},{align:"center"}),"Operation"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Best"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Average"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Worst"))),(0,i.kt)("tbody",{parentName:"table"},(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"1"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Access"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"2"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Search"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"3"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Insertion"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"4"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Deletion"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"5"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Space Complexity"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")))),(0,i.kt)("hr",null),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"When do we use Stack",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Real Time Problems",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h3",null,(0,i.kt)(s.Z,{label:"$Problem-1$",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the problem and its solution."),(0,i.kt)(l.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Other Possible Questions",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h3",null,(0,i.kt)(s.Z,{label:"$Question-1$",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the Question and its solution."),(0,i.kt)(l.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()))}d.isMDXComponent=!0},8440:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return c},default:function(){return h}});var r=n(6156),a=n(7375),i=(n(7294),n(4137)),o=n(2052),l=n(2919),s=(n(3042),n(9087)),p=n(4070);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e a -b);\n const sortedArray = arr.sort((a,b) => a -b);\n // Iterate Target Elements.\n for(let index = 0;index a + b, 0)\n return sumOfN - sumOfAll\n}\n"),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Points to be Taken",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("ol",null,(0,i.kt)("li",{parentName:"ol"},"Array problem expect empty array condition check and single element check."),(0,i.kt)("li",{parentName:"ol"},(0,i.kt)(p.Z,{url:"https://en.wikipedia.org/wiki/Arithmetic_progression",mdxType:"ExternalLink"},"Arithmetic progression"))))}h.isMDXComponent=!0},103:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return c},default:function(){return h}});var r=n(6156),a=n(7375),i=(n(7294),n(4137)),o=n(2052),l=n(2919),s=n(3042),p=n(9087);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e {\n storage[count] = value;\n count++;\n }\n const pop = () => {\n if(count === 0) {\n return undefined;\n }\n count--;\n const lastValue = storage[count];\n delete storage[count]\n return lastValue;\n }\n const size = () => {\n return count;\n }\n const peek = () => {\n return storage[count-1]\n }\n return {\n push,\n pop,\n size,\n peek\n }\n}\n".trim()),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Complexity Table",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the complexity table for Stack."),(0,i.kt)("hr",null),(0,i.kt)("table",null,(0,i.kt)("thead",{parentName:"table"},(0,i.kt)("tr",{parentName:"thead"},(0,i.kt)("th",u({parentName:"tr"},{align:null})),(0,i.kt)("th",u({parentName:"tr"},{align:"center"}),"Operation"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Best"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Average"),(0,i.kt)("th",u({parentName:"tr"},{align:"right"}),"Worst"))),(0,i.kt)("tbody",{parentName:"table"},(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"1"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Access"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"2"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Search"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"3"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Insertion"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"4"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Deletion"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,i.kt)("tr",{parentName:"tbody"},(0,i.kt)("td",u({parentName:"tr"},{align:null}),"5"),(0,i.kt)("td",u({parentName:"tr"},{align:"center"}),"Space Complexity"),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"})),(0,i.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")))),(0,i.kt)("hr",null),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"When do we use Stack",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Real Time Problems",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h3",null,(0,i.kt)(s.Z,{label:"$Problem-1$",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the problem and its solution."),(0,i.kt)(l.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Other Possible Questions",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"We can use it for this problems."),(0,i.kt)("h3",null,(0,i.kt)(s.Z,{label:"$Question-1$",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("p",null,"Below is the Question and its solution."),(0,i.kt)(l.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()))}d.isMDXComponent=!0},8440:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return c},default:function(){return h}});var r=n(6156),a=n(7375),i=(n(7294),n(4137)),o=n(2052),l=n(2919),s=(n(3042),n(9087)),p=n(4070);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e a -b);\n const sortedArray = arr.sort((a,b) => a -b);\n // Iterate Target Elements.\n for(let index = 0;index a + b, 0)\n return sumOfN - sumOfAll\n}\n"),(0,i.kt)("h2",null,(0,i.kt)(s.Z,{label:"Points to be Taken",name:!0,mdxType:"AnchorLink"})),(0,i.kt)("ol",null,(0,i.kt)("li",{parentName:"ol"},"Array problem expect empty array condition check and single element check."),(0,i.kt)("li",{parentName:"ol"},(0,i.kt)(p.Z,{url:"https://en.wikipedia.org/wiki/Arithmetic_progression",mdxType:"ExternalLink"},"Arithmetic progression"))))}h.isMDXComponent=!0},103:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return c},default:function(){return h}});var r=n(6156),a=n(7375),i=(n(7294),n(4137)),o=n(2052),l=n(2919),s=n(3042),p=n(9087);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return t?"/blogs/".concat(t):"/"},o=[{label:"Home",url:"/"},{label:"JavaScript",url:i("js")},{label:"HTML5",url:i("html")},{label:"React",url:i("react")},{label:"Programming",url:i("programming")},{label:"About",url:"/about"}];function s(){var t=(0,a.Z)(["\n width: 82%;\n margin-top: 35px;\n"]);return s=function(){return t},t}var c=n(9163).ZP.div(s());var u=function(t){var e=t.noStyle,n=void 0===e||e?c:l.Fragment;return(0,r.jsx)(n,{children:o.map((function(t,e){return(0,r.jsxs)("span",{children:[e>0&&" | ",(null===t||void 0===t?void 0:t.label)&&(0,r.jsx)("a",{href:null===t||void 0===t?void 0:t.url,children:null===t||void 0===t?void 0:t.label})]},null===t||void 0===t?void 0:t.label)}))})}},2587:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return p},default:function(){return h}});var r=n(6156),a=n(7375),l=(n(7294),n(4137)),i=n(2052),o=n(2919),s=(n(3042),n(9087));n(4070);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e {\n storage[count] = value;\n count++;\n }\n const pop = () => {\n if(count === 0) {\n return undefined;\n }\n count--;\n const lastValue = storage[count];\n delete storage[count]\n return lastValue;\n }\n const size = () => {\n return count;\n }\n const peek = () => {\n return storage[count-1]\n }\n return {\n push,\n pop,\n size,\n peek\n }\n}\n".trim()),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Complexity Table",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the complexity table for Stack."),(0,l.kt)("hr",null),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",u({parentName:"tr"},{align:null})),(0,l.kt)("th",u({parentName:"tr"},{align:"center"}),"Operation"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Best"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Average"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Worst"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"1"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Access"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"2"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Search"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"3"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Insertion"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"4"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Deletion"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"5"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Space Complexity"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")))),(0,l.kt)("hr",null),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"When do we use Stack",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Real Time Problems",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h3",null,(0,l.kt)(s.Z,{label:"$Problem-1$",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the problem and its solution."),(0,l.kt)(o.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Other Possible Questions",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h3",null,(0,l.kt)(s.Z,{label:"$Question-1$",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the Question and its solution."),(0,l.kt)(o.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()))}h.isMDXComponent=!0},2403:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs/data-structures/stack",function(){return n(2587)}])}},function(t){t.O(0,[329,358,638,774,888,179],(function(){return e=2403,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[320],{4070:function(t,e,n){"use strict";var r=n(5893),a=(n(7294),{1:{notation:"Constant",value:"1"},"log log n":{notation:"Double Logarithmic",value:"Log Log n"},"log n":{notation:"Logarithmic",value:"Log n"},"\u221an":{notation:"Square Root",value:"\u221an"},n:{notation:"Linear",value:"n"},n2:{notation:"Quadratic",value:(0,r.jsxs)(r.Fragment,{children:["n",(0,r.jsx)("sup",{children:"2"})]})},"2n":{notation:"Exponential",value:(0,r.jsxs)(r.Fragment,{children:["2",(0,r.jsx)("sup",{children:"n"})]})},"n!":{notation:"Factorial",value:"n!"}});e.Z=function(t){var e=t.type,n=void 0===e?"time":e,l=t.value,i=t.children,o=a[l]||{},s=o.notation,c=o.value;return s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("strong",{children:["time"===n?"Time Complexity":"Space Complexity",": "]}),"O(",c,") - ",s,i,(0,r.jsx)("br",{})]}):null}},2919:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var r=n(5893),a=n(6156),l=(n(7294),n(2465)),i=n(9163);function o(){var t=(0,l.Z)(["\n display: table-cell;\n"]);return o=function(){return t},t}function s(){var t=(0,l.Z)(["\n display: table-cell;\n text-align: right;\n padding-right: 1em;\n user-select: none;\n opacity: 0.5;\n"]);return s=function(){return t},t}function c(){var t=(0,l.Z)(["\n display: table-row;\n"]);return c=function(){return t},t}function u(){var t=(0,l.Z)(["\n text-align: left;\n margin: 1em 0;\n padding: 0.5em;\n overflow: scroll;\n\n & .token-line {\n line-height: 1.3em;\n height: 1.3em;\n }\n"]);return u=function(){return t},t}function p(){var t=(0,l.Z)(["\n font-family: sans-serif;\n text-align: center;\n"]);return p=function(){return t},t}var m=i.ZP.div(p()),d=i.ZP.pre(u()),h=i.ZP.div(c()),k=i.ZP.span(s()),g=i.ZP.span(o()),f=n(9235),b=n(5424);function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return t?"/blogs/".concat(t):"/"},o=[{label:"Home",url:"/"},{label:"JavaScript",url:i("js")},{label:"HTML5",url:i("html")},{label:"React",url:i("react")},{label:"Programming",url:i("programming")},{label:"About",url:"/about"}];function s(){var t=(0,a.Z)(["\n width: 82%;\n margin-top: 35px;\n"]);return s=function(){return t},t}var c=n(9163).ZP.div(s());var u=function(t){var e=t.noStyle,n=void 0===e||e?c:l.Fragment;return(0,r.jsx)(n,{children:o.map((function(t,e){return(0,r.jsxs)("span",{children:[e>0&&" | ",(null===t||void 0===t?void 0:t.label)&&(0,r.jsx)("a",{href:null===t||void 0===t?void 0:t.url,children:null===t||void 0===t?void 0:t.label})]},null===t||void 0===t?void 0:t.label)}))})}},2587:function(t,e,n){"use strict";n.r(e),n.d(e,{meta:function(){return p},default:function(){return h}});var r=n(6156),a=n(7375),l=(n(7294),n(4137)),i=n(2052),o=n(2919),s=(n(3042),n(9087));n(4070);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e {\n storage[count] = value;\n count++;\n }\n const pop = () => {\n if(count === 0) {\n return undefined;\n }\n count--;\n const lastValue = storage[count];\n delete storage[count]\n return lastValue;\n }\n const size = () => {\n return count;\n }\n const peek = () => {\n return storage[count-1]\n }\n return {\n push,\n pop,\n size,\n peek\n }\n}\n"),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Complexity Table",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the complexity table for Stack."),(0,l.kt)("hr",null),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",u({parentName:"tr"},{align:null})),(0,l.kt)("th",u({parentName:"tr"},{align:"center"}),"Operation"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Best"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Average"),(0,l.kt)("th",u({parentName:"tr"},{align:"right"}),"Worst"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"1"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Access"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"2"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Search"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"3"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Insertion"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"4"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Deletion"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",u({parentName:"tr"},{align:null}),"5"),(0,l.kt)("td",u({parentName:"tr"},{align:"center"}),"Space Complexity"),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"})),(0,l.kt)("td",u({parentName:"tr"},{align:"right"}),"O(n)")))),(0,l.kt)("hr",null),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"When do we use Stack",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Real Time Problems",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h3",null,(0,l.kt)(s.Z,{label:"$Problem-1$",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the problem and its solution."),(0,l.kt)(o.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()),(0,l.kt)("h2",null,(0,l.kt)(s.Z,{label:"Other Possible Questions",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"We can use it for this problems."),(0,l.kt)("h3",null,(0,l.kt)(s.Z,{label:"$Question-1$",name:!0,mdxType:"AnchorLink"})),(0,l.kt)("p",null,"Below is the Question and its solution."),(0,l.kt)(o.Z,{mdxType:"CodeBlock"},"\nCode goes here...\n".trim()))}h.isMDXComponent=!0},2403:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs/data-structures/stack",function(){return n(2587)}])}},function(t){t.O(0,[329,358,638,774,888,179],(function(){return e=2403,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
\ No newline at end of file
diff --git a/docs/_next/static/css/1d6713d868a30bd53c27.css b/docs/_next/static/css/ed53f6e7f7199c897a54.css
similarity index 76%
rename from docs/_next/static/css/1d6713d868a30bd53c27.css
rename to docs/_next/static/css/ed53f6e7f7199c897a54.css
index 7a673ed..d663a0a 100644
--- a/docs/_next/static/css/1d6713d868a30bd53c27.css
+++ b/docs/_next/static/css/ed53f6e7f7199c897a54.css
@@ -1 +1 @@
-@import url(https://fonts.googleapis.com/css?family=Open+Sans&display=swap);*{scroll-behavior:smooth}body{font-family:Open Sans,sans-serif}.page{text-align:center}.header-logo{width:250px}.header-logo,.link{cursor:pointer}.photo{border-radius:50%}.postItemList{margin:0 35px}table thead tr th{border-bottom:1px solid grey}table tbody tr td,table thead tr th{padding:5px 10px}
\ No newline at end of file
+@import url(https://fonts.googleapis.com/css?family=Open+Sans&display=swap);*{scroll-behavior:smooth}body{font-family:Open Sans,sans-serif}.page{text-align:center}.header-logo{width:250px}.header-logo,.link{cursor:pointer}.photo{border-radius:50%}.postItemList{margin:0 35px}table thead tr th{border-bottom:1px solid grey}table tbody tr td,table thead tr th{padding:5px 10px}.token-line:not(:last-child){min-height:1rem}
\ No newline at end of file
diff --git a/docs/about.html b/docs/about.html
index 123a62e..279f002 100644
--- a/docs/about.html
+++ b/docs/about.html
@@ -1 +1 @@
-About Webslate
Happy to see you visting WebSlate.IO. I'm a JavaScript and web developer living in sunny Singapore creator of WebSlate.IO.
With a passion for teaching, I started making lot of training materials for free. during pandemic 2020, i started helping people who lose jobs through offline now its online called WebSlate.IO.
Happy to see you visting WebSlate.IO. I'm a JavaScript and web developer living in sunny Singapore creator of WebSlate.IO.
With a passion for teaching, I started making lot of training materials for free. during pandemic 2020, i started helping people who lose jobs through offline now its online called WebSlate.IO.
I'm just getting started.
\ No newline at end of file
diff --git a/docs/blogs/algorithms.html b/docs/blogs/algorithms.html
index 3520058..f4cff1c 100644
--- a/docs/blogs/algorithms.html
+++ b/docs/blogs/algorithms.html
@@ -1 +1 @@
-Webslate.io - Algorithms
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann.
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann.
\ No newline at end of file
diff --git a/docs/blogs/algorithms/big-o-notations.html b/docs/blogs/algorithms/big-o-notations.html
index 9aab78b..7235f03 100644
--- a/docs/blogs/algorithms/big-o-notations.html
+++ b/docs/blogs/algorithms/big-o-notations.html
@@ -1 +1 @@
-Big-O Notations
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity.
Big O is a member of a family of notations invented by Paul Bachmann son of Johann Friedrich Bachmann (1799-1876) and a Lutheran minister (teachings of Jesus Christ and was founded by Martin Luther),
It represents the algorithm’s scalability and performance.
Not every computer hardware is same. Due to this, efficient code takes long time to execute in old machine or in-efficient code execute quickly in high end machine. but that doesn't meant your code is efficient or in-efficient by evaluating through running time. so we need common notation for better evaluation.
Time Complexity is computational complexity that describes the amount of time required to perform the computation.
Its helps to estimate the running time of a program.
Performing an accurate calculation on program's operation time is labour-intensive process because its depends on the hardware spec like compiler, processor speed.
Its important note about Dominant operations are always considered those operation performed largest number of times depends on specific input data.
1. Constant Time O(1)
This takes constant / same time regardless of the number of inputs. always execute in same amount of time, doesn't matter about input size.
Example 1.1: function return whether number is odd or even.
1functionisEvenOrOdd(n){
2return n %2?'Odd':'Even';
3}
Example 1.2: Look-up table - function return exist key's value.
Space complexity is the amount of memory required to perform the computation by Algorithm
Algorithm / Program consider Variables, Program Instruction and Execution, contents of the stack if its recursion.
Speed will rely on the computing power of the machine on which it’s executed.
Memory limits are crucial and this will share info on expected space complexity.
When there is constant numbers of variables, which means you have constant space complexity.
In algorithmics, space and time are like two separate poles. Increasing speed will most often lead to increased memory consumption and vice-versa. for example: merge sort, which is extremely fast but requires a lot of memory and bubble sort, a slow algorithm but one that occupies minimal space.
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity.
Big O is a member of a family of notations invented by Paul Bachmann son of Johann Friedrich Bachmann (1799-1876) and a Lutheran minister (teachings of Jesus Christ and was founded by Martin Luther),
It represents the algorithm’s scalability and performance.
Not every computer hardware is same. Due to this, efficient code takes long time to execute in old machine or in-efficient code execute quickly in high end machine. but that doesn't meant your code is efficient or in-efficient by evaluating through running time. so we need common notation for better evaluation.
Time Complexity is computational complexity that describes the amount of time required to perform the computation.
Its helps to estimate the running time of a program.
Performing an accurate calculation on program's operation time is labour-intensive process because its depends on the hardware spec like compiler, processor speed.
Its important note about Dominant operations are always considered those operation performed largest number of times depends on specific input data.
1. Constant Time O(1)
This takes constant / same time regardless of the number of inputs. always execute in same amount of time, doesn't matter about input size.
Example 1.1: function return whether number is odd or even.
1functionisEvenOrOdd(n){
2return n %2?'Odd':'Even';
3}
Example 1.2: Look-up table - function return exist key's value.
Space complexity is the amount of memory required to perform the computation by Algorithm
Algorithm / Program consider Variables, Program Instruction and Execution, contents of the stack if its recursion.
Speed will rely on the computing power of the machine on which it’s executed.
Memory limits are crucial and this will share info on expected space complexity.
When there is constant numbers of variables, which means you have constant space complexity.
In algorithmics, space and time are like two separate poles. Increasing speed will most often lead to increased memory consumption and vice-versa. for example: merge sort, which is extremely fast but requires a lot of memory and bubble sort, a slow algorithm but one that occupies minimal space.
\ No newline at end of file
diff --git a/docs/blogs/data-structures.html b/docs/blogs/data-structures.html
index a73d756..a0e5dc3 100644
--- a/docs/blogs/data-structures.html
+++ b/docs/blogs/data-structures.html
@@ -1 +1 @@
-Webslate.io - Data Structures
\ No newline at end of file
diff --git a/docs/blogs/data-structures/stack.html b/docs/blogs/data-structures/stack.html
index 76139f0..536665a 100644
--- a/docs/blogs/data-structures/stack.html
+++ b/docs/blogs/data-structures/stack.html
@@ -1 +1 @@
-Stack
\ No newline at end of file
diff --git a/docs/blogs/data-structures/tree.html b/docs/blogs/data-structures/tree.html
index 885983a..6cf0883 100644
--- a/docs/blogs/data-structures/tree.html
+++ b/docs/blogs/data-structures/tree.html
@@ -1 +1 @@
-Tree
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
You're given a list of n integers arr[1..n], which is guaranteed to be a permutation of 1..n (in other words, it includes the integers from 1 to n exactly once each, in some order). The meaning of this list is described below.
Initially, each student is holding their own yearbook. The students will then repeat the following two steps each minute: Each student i will first sign the yearbook that they're currently holding (which may either belong to themselves or to another student), and then they'll pass it to student arr[i-1]. It's possible that arr[i-1] = i for any given i, in which case student i will pass their yearbook back to themselves. Once a student has received their own yearbook back, they will hold on to it and no longer participate in the passing process.
It's guaranteed that, for any possible valid input, each student will eventually receive their own yearbook back and will never end up holding more than one yearbook at a time.
You must compute a list of n integers output, whose element at i-1 is equal to the number of signatures that will be present in student i's yearbook once they receive it back.
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
You're given a list of n integers arr[1..n], which is guaranteed to be a permutation of 1..n (in other words, it includes the integers from 1 to n exactly once each, in some order). The meaning of this list is described below.
Initially, each student is holding their own yearbook. The students will then repeat the following two steps each minute: Each student i will first sign the yearbook that they're currently holding (which may either belong to themselves or to another student), and then they'll pass it to student arr[i-1]. It's possible that arr[i-1] = i for any given i, in which case student i will pass their yearbook back to themselves. Once a student has received their own yearbook back, they will hold on to it and no longer participate in the passing process.
It's guaranteed that, for any possible valid input, each student will eventually receive their own yearbook back and will never end up holding more than one yearbook at a time.
You must compute a list of n integers output, whose element at i-1 is equal to the number of signatures that will be present in student i's yearbook once they receive it back.
\ No newline at end of file
diff --git a/docs/blogs/html/storage-api.html b/docs/blogs/html/storage-api.html
index 839e229..84fe83b 100644
--- a/docs/blogs/html/storage-api.html
+++ b/docs/blogs/html/storage-api.html
@@ -1 +1 @@
-Storage API
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
What is Promises/A and Promises/A+ ?
Both are specification for open standard but Javascript currently uses Promise/A+.
The main three reason for using Promise/A+ is Three different states, Value for Fulfilment and for Rejection and thenable object. for more detail see Differences from Promises/A
These Promise/A+ organisation occasionally revise and address the corner cases in to new Specification.
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
What is Promises/A and Promises/A+ ?
Both are specification for open standard but Javascript currently uses Promise/A+.
The main three reason for using Promise/A+ is Three different states, Value for Fulfilment and for Rejection and thenable object. for more detail see Differences from Promises/A
These Promise/A+ organisation occasionally revise and address the corner cases in to new Specification.
I would like to continue with an examination of JavaScript Promise API. Let’s have a look at Promise evolution by various libraries. below three libraries which we are going to explore on this article.
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
I would like to continue with an examination of JavaScript Promise API. Let’s have a look at Promise evolution by various libraries. below three libraries which we are going to explore on this article.
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
I would like to continue with an examination of JavaScript Promise API. Let’s have a look at Promise evolution by various libraries. below three libraries which we are going to explore on this article.
Q.js Library
When.js Library
RSVP.js Library
Using q.js
The q.js is best one for promise implementation by Kris Kowal. It is more evident of promise evolution.
Lets have a look, What makes it special.
It provides two ways to define the promise. one is very famous by Q.defer() and another one is Q.Promise().
The Q.defer() method is custom and flexible way to define promise like defining anywhere in the code likevar deferred = Q.defer(); and any time that can be resolved, rejected and notified (deferred.resolve, deferred.reject, deferred.notify).
\ No newline at end of file
+JS Promise (Part 2 - Q.js, When.js and RSVP.js)
I would like to continue with an examination of JavaScript Promise API. Let’s have a look at Promise evolution by various libraries. below three libraries which we are going to explore on this article.
Q.js Library
When.js Library
RSVP.js Library
Using q.js
The q.js is best one for promise implementation by Kris Kowal. It is more evident of promise evolution.
Lets have a look, What makes it special.
It provides two ways to define the promise. one is very famous by Q.defer() and another one is Q.Promise().
The Q.defer() method is custom and flexible way to define promise like defining anywhere in the code likevar deferred = Q.defer(); and any time that can be resolved, rejected and notified (deferred.resolve, deferred.reject, deferred.notify).
\ No newline at end of file
diff --git a/docs/blogs/js/promises.html b/docs/blogs/js/promises.html
index dd367f3..8ec9d72 100644
--- a/docs/blogs/js/promises.html
+++ b/docs/blogs/js/promises.html
@@ -1 +1 @@
-JS Promises Basics (Part 1)
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
What is Promises/A and Promises/A+ ?
Both are specification for open standard but Javascript currently uses Promise/A+.
The main three reason for using Promise/A+ is Three different states, Value for Fulfilment and for Rejection and thenable object. for more detail see Differences from Promises/A
These Promise/A+ organisation occasionally revise and address the corner cases in to new Specification.
One of the good Features in ES6 is Promises Object and their useful methods and they are called software abstraction helps to works smoothly with asynchronous operations. Promise API followed Promises/A+ Specification prior to this, there was Promise/A.
What is Promises/A and Promises/A+ ?
Both are specification for open standard but Javascript currently uses Promise/A+.
The main three reason for using Promise/A+ is Three different states, Value for Fulfilment and for Rejection and thenable object. for more detail see Differences from Promises/A
These Promise/A+ organisation occasionally revise and address the corner cases in to new Specification.
Rejection triggers catch method, if errors thrown.
In short, running continuation-passing style. Let me shoot few bullets with simple diagram on Promises below.
\ No newline at end of file
diff --git a/docs/blogs/mobile.html b/docs/blogs/mobile.html
index 2a9cde3..9fd6adb 100644
--- a/docs/blogs/mobile.html
+++ b/docs/blogs/mobile.html
@@ -1 +1 @@
-Webslate.io - Mobile Articles
\ No newline at end of file
diff --git a/docs/blogs/mobile/deep-link.html b/docs/blogs/mobile/deep-link.html
index 32b3429..4bb782c 100644
--- a/docs/blogs/mobile/deep-link.html
+++ b/docs/blogs/mobile/deep-link.html
@@ -1 +1 @@
-Deep Linking
\ No newline at end of file
diff --git a/docs/blogs/performance/optimize-web-bundles.html b/docs/blogs/performance/optimize-web-bundles.html
index e5dc28d..70343fe 100644
--- a/docs/blogs/performance/optimize-web-bundles.html
+++ b/docs/blogs/performance/optimize-web-bundles.html
@@ -1 +1 @@
-Optimize Web Bundles
\ No newline at end of file
diff --git a/docs/blogs/problems.html b/docs/blogs/problems.html
index dd2131d..ef5860e 100644
--- a/docs/blogs/problems.html
+++ b/docs/blogs/problems.html
@@ -1 +1 @@
-Webslate.io - Problems
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
\ No newline at end of file
diff --git a/docs/blogs/problems/array-intersection.html b/docs/blogs/problems/array-intersection.html
index 213eef6..34c9e52 100644
--- a/docs/blogs/problems/array-intersection.html
+++ b/docs/blogs/problems/array-intersection.html
@@ -1 +1 @@
-$Title$
\ No newline at end of file
diff --git a/docs/blogs/problems/facebook-passing-year-books.html b/docs/blogs/problems/facebook-passing-year-books.html
index d2b933b..3f19464 100644
--- a/docs/blogs/problems/facebook-passing-year-books.html
+++ b/docs/blogs/problems/facebook-passing-year-books.html
@@ -1 +1 @@
-Passing Yearbooks
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
You're given a list of n integers arr[1..n], which is guaranteed to be a permutation of 1..n (in other words, it includes the integers from 1 to n exactly once each, in some order). The meaning of this list is described below.
Initially, each student is holding their own yearbook. The students will then repeat the following two steps each minute: Each student i will first sign the yearbook that they're currently holding (which may either belong to themselves or to another student), and then they'll pass it to student arr[i-1]. It's possible that arr[i-1] = i for any given i, in which case student i will pass their yearbook back to themselves. Once a student has received their own yearbook back, they will hold on to it and no longer participate in the passing process.
It's guaranteed that, for any possible valid input, each student will eventually receive their own yearbook back and will never end up holding more than one yearbook at a time.
You must compute a list of n integers output, whose element at i-1 is equal to the number of signatures that will be present in student i's yearbook once they receive it back.
There are n students, numbered from 1 to n, each with their own yearbook. They would like to pass their yearbooks around and get them signed by other students.
You're given a list of n integers arr[1..n], which is guaranteed to be a permutation of 1..n (in other words, it includes the integers from 1 to n exactly once each, in some order). The meaning of this list is described below.
Initially, each student is holding their own yearbook. The students will then repeat the following two steps each minute: Each student i will first sign the yearbook that they're currently holding (which may either belong to themselves or to another student), and then they'll pass it to student arr[i-1]. It's possible that arr[i-1] = i for any given i, in which case student i will pass their yearbook back to themselves. Once a student has received their own yearbook back, they will hold on to it and no longer participate in the passing process.
It's guaranteed that, for any possible valid input, each student will eventually receive their own yearbook back and will never end up holding more than one yearbook at a time.
You must compute a list of n integers output, whose element at i-1 is equal to the number of signatures that will be present in student i's yearbook once they receive it back.
\ No newline at end of file
diff --git a/docs/blogs/problems/facebook-reverse-to-make-equal-array.html b/docs/blogs/problems/facebook-reverse-to-make-equal-array.html
index f842528..a302963 100644
--- a/docs/blogs/problems/facebook-reverse-to-make-equal-array.html
+++ b/docs/blogs/problems/facebook-reverse-to-make-equal-array.html
@@ -1,5 +1,5 @@
-Reverse to Make Equal
On High level note, It worth to read in detail for a better understanding.
This is one of the Facebook interview question and Leet code problem as well - 1460. Make Two Arrays Equal by Reversing Sub-arrays
Below solution sort both array then iterate the first array to check each index value is same, method returns false if there is no match with same index in both array.
Basically, this stores the elements value in hashmap as property name and value as number of occurence and then iterate the second array to check the hashmap is exist with greater than zero and then decrement the hashmap property value when occurence if exist in second array.
Below solution sort both array then iterate the first array to check each index value is same, method returns false if there is no match with same index in both array.
Basically, this stores the elements value in hashmap as property name and value as number of occurence and then iterate the second array to check the hashmap is exist with greater than zero and then decrement the hashmap property value when occurence if exist in second array.
\ No newline at end of file
diff --git a/docs/blogs/problems/fibonacci.html b/docs/blogs/problems/fibonacci.html
index 4502b43..1f240e3 100644
--- a/docs/blogs/problems/fibonacci.html
+++ b/docs/blogs/problems/fibonacci.html
@@ -1,7 +1,7 @@
-Fibonacci Series
The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones.
Leonardo Bonacci, Italian Mathemetician from the Republic of Pisa studied with Muslim schoolmaster who introduced him to the Hindu-Arabic system of Enumeration along with computation. later he investigated various arithmetic sytems in Egypt, France, Greece, Rome and Syria.
In 1202, he published his Liber Abaci (Book of Abacus), Practice of Geometry (1220), Book of Square Numbers (1225) and others etc.
This sequence of numbers (0,1,1,2,3,5,8,13,21,34...) called Fibonacci Sequence which is contraction of Filius Bonacci (son of Bonacci).
Problem is about a person who has a pair of newborn rabbits (different gender). here problem to determine the numbers of pairs after a year. at the end of each month, a newborn pair grows to maturity.
Finding the great common divisor of F5 = 5 and F6 = 8 is 1. This is due to the fact that only positive integer that divide F5 = 5 are 1 and 5 (denoted as gcd(F5, F6) = 1 likewise, F6 = 8 are 1,2,4 and 8 (denoted as gcd(F9, F10) = 1) there are common properties available. lets look at them.
For n>=0, GCD(Fn, Fn+1) = 1
For n>=0, GCD(Fn, Fn+2) = 1
Sum of any six consecutive fibonacci numbers is divisible by 4
Sum of 10 consecutive fibonacci numbers is divisible by 11
The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones.
Leonardo Bonacci, Italian Mathemetician from the Republic of Pisa studied with Muslim schoolmaster who introduced him to the Hindu-Arabic system of Enumeration along with computation. later he investigated various arithmetic sytems in Egypt, France, Greece, Rome and Syria.
In 1202, he published his Liber Abaci (Book of Abacus), Practice of Geometry (1220), Book of Square Numbers (1225) and others etc.
This sequence of numbers (0,1,1,2,3,5,8,13,21,34...) called Fibonacci Sequence which is contraction of Filius Bonacci (son of Bonacci).
Problem is about a person who has a pair of newborn rabbits (different gender). here problem to determine the numbers of pairs after a year. at the end of each month, a newborn pair grows to maturity.
Finding the great common divisor of F5 = 5 and F6 = 8 is 1. This is due to the fact that only positive integer that divide F5 = 5 are 1 and 5 (denoted as gcd(F5, F6) = 1 likewise, F6 = 8 are 1,2,4 and 8 (denoted as gcd(F9, F10) = 1) there are common properties available. lets look at them.
For n>=0, GCD(Fn, Fn+1) = 1
For n>=0, GCD(Fn, Fn+2) = 1
Sum of any six consecutive fibonacci numbers is divisible by 4
Sum of 10 consecutive fibonacci numbers is divisible by 11
Let's take a problem to find a N-th value of the Fibonacci sequence?
There is various kinds of approaches in order to get this sequence and there is many solutions available. lets see each of them with solutions written in javascript.
Before, lets look at the formulae.
Basically, this approach call itself creating more and more branches of the tree until it hits the base case.
Below is the recursive solution in Javascript.
Time Complexity: O(2n) - Exponential Space Complexity: O(n) - Linear (considering function call stack size, otherwise O(1) Constant.)
Dynamic Programming is mainly an optimization over plain recursion. Wherever we see a recursive solution that has repeated calls for same inputs, we can optimize it using Dynamic Programming.
The idea is to simply store the results of sub problems to prevent re-computations of same inputs.
This helps to reduces time complexities from exponential to polynomial.
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities where F(n+1) / Fn is most of the time is 1.618
Golden ratio everywhere like example below.
Flower petals
Spiral of Pine Cone, Pineapple
Storms spin in golden sequence
Wave can be measured in this ratio.
Planet alignment and spirals of our Milky way galaxy
Shoulder to elbow and elbow to fingertips will be 1:1.6
Finger tips to wrist and wrist to elbow
bottom of fingertips to wrist
Even your ears, brains, lungs system even helix of our DNA that forms rhythm of our hearbeat.
Fibonacci extensions are a tool that traders can use to establish profit targets or estimate how far a price may travel after a retracement/pullback is finished. Extension levels are also possible areas where the price may reverse.
In finance, Fibonacci retracement is a method of technical analysis for determining support and resistance levels.[1] They are named after their use of the Fibonacci sequence.
\ No newline at end of file
+Space Complexity: O(1)
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities where F(n+1) / Fn is most of the time is 1.618
Golden ratio everywhere like example below.
Flower petals
Spiral of Pine Cone, Pineapple
Storms spin in golden sequence
Wave can be measured in this ratio.
Planet alignment and spirals of our Milky way galaxy
Shoulder to elbow and elbow to fingertips will be 1:1.6
Finger tips to wrist and wrist to elbow
bottom of fingertips to wrist
Even your ears, brains, lungs system even helix of our DNA that forms rhythm of our hearbeat.
Fibonacci extensions are a tool that traders can use to establish profit targets or estimate how far a price may travel after a retracement/pullback is finished. Extension levels are also possible areas where the price may reverse.
In finance, Fibonacci retracement is a method of technical analysis for determining support and resistance levels.[1] They are named after their use of the Fibonacci sequence.
\ No newline at end of file
diff --git a/docs/blogs/problems/missing-element-in-permutation.html b/docs/blogs/problems/missing-element-in-permutation.html
index c6b5be0..6a883e1 100644
--- a/docs/blogs/problems/missing-element-in-permutation.html
+++ b/docs/blogs/problems/missing-element-in-permutation.html
@@ -1 +1 @@
-Missing element in Permutation.
An array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing.
Your goal is to find that missing element.
Write a function:
1functionsolution(A){
2}
that, given an array A, returns the value of the missing element.
For example, given array A such that:
A[0] = 2
A[1] = 3
A[2] = 1
A[3] = 5
the function should return 4, as it is the missing element.
Write an efficient algorithm for the following assumptions:
N is an integer within the range [0..100,000];
the elements of A are all distinct;
each element of array A is an integer within the range [1..(N + 1)].
An array A consisting of N different integers is given. The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing.
Your goal is to find that missing element.
Write a function:
1functionsolution(A){
2}
that, given an array A, returns the value of the missing element.
For example, given array A such that:
A[0] = 2
A[1] = 3
A[2] = 1
A[3] = 5
the function should return 4, as it is the missing element.
Write an efficient algorithm for the following assumptions:
N is an integer within the range [0..100,000];
the elements of A are all distinct;
each element of array A is an integer within the range [1..(N + 1)].
\ No newline at end of file
diff --git a/docs/blogs/problems/palindrome.html b/docs/blogs/problems/palindrome.html
index d20c15c..14d32be 100644
--- a/docs/blogs/problems/palindrome.html
+++ b/docs/blogs/problems/palindrome.html
@@ -1,2 +1,2 @@
-Palindrome Solutions
\ No newline at end of file
diff --git a/docs/blogs/problems/simple-frog-jump.html b/docs/blogs/problems/simple-frog-jump.html
index 2c7730e..c22dcc7 100644
--- a/docs/blogs/problems/simple-frog-jump.html
+++ b/docs/blogs/problems/simple-frog-jump.html
@@ -1 +1 @@
-Frog Jump Solution
A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D.
Count the minimal number of jumps that the small frog must perform to reach its target.
Write a function:
1functionsolution(X, Y, D){
2// write your code in JavaScript (Node.js 8.9.4)
3}
that, given three integers X, Y and D, returns the minimal number of jumps from position X to a position equal to or greater than Y.
For example, given:
X = 10
Y = 85
D = 30
the function should return 3, because the frog will be positioned as follows:
after the first jump, at position 10 + 30 = 40
after the second jump, at position 10 + 30 + 30 = 70
after the third jump, at position 10 + 30 + 30 + 30 = 100
Write an efficient algorithm for the following assumptions:
X, Y and D are integers within the range [1..1,000,000,000];
A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D.
Count the minimal number of jumps that the small frog must perform to reach its target.
Write a function:
1functionsolution(X, Y, D){
2// write your code in JavaScript (Node.js 8.9.4)
3}
that, given three integers X, Y and D, returns the minimal number of jumps from position X to a position equal to or greater than Y.
For example, given:
X = 10
Y = 85
D = 30
the function should return 3, because the frog will be positioned as follows:
after the first jump, at position 10 + 30 = 40
after the second jump, at position 10 + 30 + 30 = 70
after the third jump, at position 10 + 30 + 30 + 30 = 100
Write an efficient algorithm for the following assumptions:
X, Y and D are integers within the range [1..1,000,000,000];
Solution need division check with modulo operator whether its remainder is zero.
\ No newline at end of file
diff --git a/docs/blogs/problems/tape-equilibrium.html b/docs/blogs/problems/tape-equilibrium.html
index 6e79009..d07b7b0 100644
--- a/docs/blogs/problems/tape-equilibrium.html
+++ b/docs/blogs/problems/tape-equilibrium.html
@@ -1 +1 @@
-Tape Equilibrium
Tattarrattat (Sound of knocking at the door used by James Joyce in Ulysses, modernist novel)
Some Phrases
Top spot
Able was i ere I Saw Elba
A man, A Plan, A Canal: Panama
\ No newline at end of file
diff --git a/docs/blogs/programming.html b/docs/blogs/programming.html
index f68179d..394d060 100644
--- a/docs/blogs/programming.html
+++ b/docs/blogs/programming.html
@@ -1 +1 @@
-Webslate.io - Programming
\ No newline at end of file
diff --git a/docs/blogs/programming/10-things-should-know.html b/docs/blogs/programming/10-things-should-know.html
index e78619b..d6bb501 100644
--- a/docs/blogs/programming/10-things-should-know.html
+++ b/docs/blogs/programming/10-things-should-know.html
@@ -1 +1 @@
-10 Things you should know
\ No newline at end of file
diff --git a/docs/blogs/security/prevent-ssrf-attacks.html b/docs/blogs/security/prevent-ssrf-attacks.html
index 3e3c6f5..95a754d 100644
--- a/docs/blogs/security/prevent-ssrf-attacks.html
+++ b/docs/blogs/security/prevent-ssrf-attacks.html
@@ -1,2 +1,2 @@
-Preventing SSRF Attacks
SSRF stands for Server-Side Request Forgery. Its one type of exploit to server where hacker attempts to gather user information by various way in functionality which is not recommended.
Types
There are mainly two types.
Basic SSRF - Server accept the attacker request and respond.
Blind SSRF - Server
Subjects
We have two subjects.
Attacker / Hacker - Their motives can be money, info or get paid service for free.
Vulnerable App - App accepts invalid URLs or params.
Solutions
Whitelisting
Questions
What is difference between CSRF and SSRF?
-CSRF attack user and browser where SSRF target server directly.
\ No newline at end of file
+Preventing SSRF Attacks
SSRF stands for Server-Side Request Forgery. Its one type of exploit to server where hacker attempts to gather user information by various way in functionality which is not recommended.
Types
There are mainly two types.
Basic SSRF - Server accept the attacker request and respond.
Blind SSRF - Server
Subjects
We have two subjects.
Attacker / Hacker - Their motives can be money, info or get paid service for free.
Vulnerable App - App accepts invalid URLs or params.
Solutions
Whitelisting
Questions
What is difference between CSRF and SSRF?
+CSRF attack user and browser where SSRF target server directly.
\ No newline at end of file
diff --git a/docs/coming-soon.html b/docs/coming-soon.html
index 23d8e4c..df8e64c 100644
--- a/docs/coming-soon.html
+++ b/docs/coming-soon.html
@@ -1 +1 @@
-Webslate - Coming Soon...
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index d70858b..73e52de 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1 +1 @@
-Welcome to Webslate