{"id":35737,"date":"2022-07-09T21:01:01","date_gmt":"2022-07-10T01:01:01","guid":{"rendered":""},"modified":"2022-07-10T08:07:16","modified_gmt":"2022-07-10T12:07:16","slug":"script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges","status":"publish","type":"post","link":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/","title":{"rendered":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges"},"content":{"rendered":"<div style=\"padding: 2%;\" align=\"center\"><iframe loading=\"lazy\" title=\"Greedy Algorithms Tutorial \u2013 Solve Coding Challenges\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/bC7o8P_Ste4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<blockquote style=\"text-align: left; background-color: #E4E4E4; border: 3px dotted gray; padding:2%;\"><p>\n<a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/p>\n<h3>Greedy Algorithms Tutorial \u2013 Solve Coding Challenges<\/h3>\n<p><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><\/a><\/p>\n<p>By <a href=\"https:\/\/www.youtube.com\/channel\/UC8butISFwT-Wl7EV0hUK0BQ\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><strong>freeCodeCamp.org<\/strong><\/a><br \/>\n<strong>Published<\/strong>: Jun 27, 2022<\/p>\n<p><em style=\"font-family: 'Times New Roman',Times,serif; color: #666;\"><span style=\"font-size: 3.5em; font-weight: bold;\">\u201c<\/span><\/em><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg\" class=\"alignright\" alt=\"freeCodeCamp.org\" style=\"width: 200px; height: auto;\" align=\"right\"\/><\/a> Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews and many of the challenges can be solved using a greedy algorithm. A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage.<\/p>\n<p>Course from Tanishq Chaudhary. Check out his channel: <a href=\"https:\/\/www.interviewbit.com\/problems\/highest-product\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.youtube.com\/c\/TanishqChau&#8230;<\/a><\/p>\n<ul><strong>Links to coding challenges on InterviewBit:<\/strong><\/p>\n<li>Highest product: <a href=\"https:\/\/www.interviewbit.com\/problems\/highest-product\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Bulbs: <a href=\"https:\/\/www.interviewbit.com\/problems\/interview-questions\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Disjoint intervals: <a href=\"https:\/\/www.interviewbit.com\/problems\/disjoint-intervals\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Largest permutation: <a href=\"https:\/\/www.interviewbit.com\/problems\/largest-permutation\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Meeting rooms: <a href=\"https:\/\/www.interviewbit.com\/problems\/meeting-rooms\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Distribute candy: <a href=\"https:\/\/www.interviewbit.com\/problems\/distribute-candy\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Seats: <a href=\"https:\/\/www.interviewbit.com\/problems\/seats\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Assign mice to holes: <a href=\"https:\/\/www.interviewbit.com\/problems\/assign-mice-to-holes\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Majority element: <a href=\"https:\/\/www.interviewbit.com\/problems\/majority-element\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<li>Gas station: <a href=\"https:\/\/www.interviewbit.com\/problems\/gas-station\/\" target=\"offsite\" rel=\"nofollow noopener noreferrer\">https:\/\/www.interviewbit.com\/problems&#8230;<\/a><\/li>\n<\/ul>\n<ul><strong>Course contents<\/strong><\/p>\n<li>(0:00:00) Greedy introduction<\/li>\n<li>(0:04:32) Bulbs<\/li>\n<li>(0:12:11) Highest product<\/li>\n<li>(0:17:08) Disjoint intervals<\/li>\n<li>(0:28:43) Largest permutation<\/li>\n<li>(0:38:30) Meeting rooms<\/li>\n<li>(0:49:25) Distribute candy<\/li>\n<li>(1:03:13) Seats<\/li>\n<li>(1:19:13) Assign mice to holes<\/li>\n<li>(1:24:19) Majority element<\/li>\n<li>(1:35:28) Gas station<\/li>\n<li>(1:52:39) End<\/li>\n<\/ul>\n<div style=\"text-align: center; font-weight: bold\">[<a href=\"https:\/\/www.youtube.com\/watch?v=bC7o8P_Ste4\" target=\"offsite\" rel=\"nofollow noopener noreferrer\" title=\"Read More on YouTube\">READ MORE<\/a>]<\/div>\n<p><em style=\"font-family: 'Times New Roman',Times,serif; color: #666;\"><span style=\"font-size: 3.5em; font-weight: bold;\">\u201d<\/span><\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[109,380],"tags":[1695,191,1756,2155,2156,190,2157,2154],"class_list":["post-35737","post","type-post","status-publish","format-standard","hentry","category-scripting-and-coding","category-video-tutorials","tag-algorithm","tag-coding","tag-freecodecamp","tag-greedy","tag-problem","tag-scripting","tag-solving","tag-tanishq-chaudhary"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!<\/title>\n<meta name=\"description\" content=\"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!\" \/>\n<meta property=\"og:description\" content=\"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/\" \/>\n<meta property=\"og:site_name\" content=\"WHUZZUP!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/EricBrooksDotComWeb\/\" \/>\n<meta property=\"article:author\" content=\"EricBrooksDotComWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-10T01:01:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-10T12:07:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg\" \/>\n<meta name=\"author\" content=\"Eric Brooks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EricBrooksCom\" \/>\n<meta name=\"twitter:site\" content=\"@EricBrooksCom\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eric Brooks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/\"},\"author\":{\"name\":\"Eric Brooks\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#\\\/schema\\\/person\\\/3b162468e1f9814f6e9f61460db00a3a\"},\"headline\":\"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges\",\"datePublished\":\"2022-07-10T01:01:01+00:00\",\"dateModified\":\"2022-07-10T12:07:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/\"},\"wordCount\":201,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i3.ytimg.com\\\/vi\\\/bC7o8P_Ste4\\\/hqdefault.jpg\",\"keywords\":[\"Algorithm\",\"coding\",\"freecodecamp\",\"Greedy\",\"Problem\",\"scripting\",\"Solving\",\"Tanishq Chaudhary\"],\"articleSection\":[\"Scripting and Coding\",\"Video Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/\",\"url\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/\",\"name\":\"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i3.ytimg.com\\\/vi\\\/bC7o8P_Ste4\\\/hqdefault.jpg\",\"datePublished\":\"2022-07-10T01:01:01+00:00\",\"dateModified\":\"2022-07-10T12:07:16+00:00\",\"description\":\"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i3.ytimg.com\\\/vi\\\/bC7o8P_Ste4\\\/hqdefault.jpg\",\"contentUrl\":\"https:\\\/\\\/i3.ytimg.com\\\/vi\\\/bC7o8P_Ste4\\\/hqdefault.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#website\",\"url\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/\",\"name\":\"WHUZZUP!\",\"description\":\"What&#039;s new at EricBrooks.Com plus news and gossip all over CyberTown\",\"publisher\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#organization\",\"name\":\"WHUZZUP!\",\"url\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ericbrooks.com\\\/images\\\/posts\\\/cropped-favicon_64-1.png\",\"contentUrl\":\"https:\\\/\\\/ericbrooks.com\\\/images\\\/posts\\\/cropped-favicon_64-1.png\",\"width\":512,\"height\":512,\"caption\":\"WHUZZUP!\"},\"image\":{\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/EricBrooksDotComWeb\\\/\",\"https:\\\/\\\/x.com\\\/EricBrooksCom\",\"https:\\\/\\\/www.instagram.com\\\/ericbrooksdotcom\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ericbrooksdotcom\",\"https:\\\/\\\/myspace.com\\\/ericbrooksdotcom\",\"https:\\\/\\\/www.pinterest.com\\\/ericbrookscom\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/ericbrooksdotcom\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/#\\\/schema\\\/person\\\/3b162468e1f9814f6e9f61460db00a3a\",\"name\":\"Eric Brooks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x\",\"caption\":\"Eric Brooks\"},\"description\":\"Web &amp; Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.\",\"sameAs\":[\"https:\\\/\\\/ericbrooks.com\",\"EricBrooksDotComWeb\",\"ericbrooksdotcom\",\"ericbrookscom\\\/\",\"https:\\\/\\\/x.com\\\/EricBrooksCom\"],\"url\":\"https:\\\/\\\/ericbrooks.com\\\/whuzzup\\\/author\\\/site-admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!","description":"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/","og_locale":"en_US","og_type":"article","og_title":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!","og_description":"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...","og_url":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/","og_site_name":"WHUZZUP!","article_publisher":"https:\/\/www.facebook.com\/EricBrooksDotComWeb\/","article_author":"EricBrooksDotComWeb","article_published_time":"2022-07-10T01:01:01+00:00","article_modified_time":"2022-07-10T12:07:16+00:00","og_image":[{"url":"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg","type":"","width":"","height":""}],"author":"Eric Brooks","twitter_card":"summary_large_image","twitter_creator":"@EricBrooksCom","twitter_site":"@EricBrooksCom","twitter_misc":{"Written by":"Eric Brooks","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#article","isPartOf":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/"},"author":{"name":"Eric Brooks","@id":"https:\/\/ericbrooks.com\/whuzzup\/#\/schema\/person\/3b162468e1f9814f6e9f61460db00a3a"},"headline":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges","datePublished":"2022-07-10T01:01:01+00:00","dateModified":"2022-07-10T12:07:16+00:00","mainEntityOfPage":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/"},"wordCount":201,"commentCount":0,"publisher":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/#organization"},"image":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#primaryimage"},"thumbnailUrl":"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg","keywords":["Algorithm","coding","freecodecamp","Greedy","Problem","scripting","Solving","Tanishq Chaudhary"],"articleSection":["Scripting and Coding","Video Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/","url":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/","name":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges - WHUZZUP!","isPartOf":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#primaryimage"},"image":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#primaryimage"},"thumbnailUrl":"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg","datePublished":"2022-07-10T01:01:01+00:00","dateModified":"2022-07-10T12:07:16+00:00","description":"Learn how to use greedy algorithms to solve coding challenges. Many tech companies want people to solve coding challenges during interviews...","breadcrumb":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#primaryimage","url":"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg","contentUrl":"https:\/\/i3.ytimg.com\/vi\/bC7o8P_Ste4\/hqdefault.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/ericbrooks.com\/whuzzup\/script-coding-greedy-algorithms-tutorial-ndash-solve-coding-challenges\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ericbrooks.com\/whuzzup\/"},{"@type":"ListItem","position":2,"name":"[#Script #Coding] Greedy Algorithms Tutorial &ndash; Solve Coding Challenges"}]},{"@type":"WebSite","@id":"https:\/\/ericbrooks.com\/whuzzup\/#website","url":"https:\/\/ericbrooks.com\/whuzzup\/","name":"WHUZZUP!","description":"What&#039;s new at EricBrooks.Com plus news and gossip all over CyberTown","publisher":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ericbrooks.com\/whuzzup\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ericbrooks.com\/whuzzup\/#organization","name":"WHUZZUP!","url":"https:\/\/ericbrooks.com\/whuzzup\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ericbrooks.com\/whuzzup\/#\/schema\/logo\/image\/","url":"https:\/\/ericbrooks.com\/images\/posts\/cropped-favicon_64-1.png","contentUrl":"https:\/\/ericbrooks.com\/images\/posts\/cropped-favicon_64-1.png","width":512,"height":512,"caption":"WHUZZUP!"},"image":{"@id":"https:\/\/ericbrooks.com\/whuzzup\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/EricBrooksDotComWeb\/","https:\/\/x.com\/EricBrooksCom","https:\/\/www.instagram.com\/ericbrooksdotcom\/","https:\/\/www.linkedin.com\/in\/ericbrooksdotcom","https:\/\/myspace.com\/ericbrooksdotcom","https:\/\/www.pinterest.com\/ericbrookscom\/","https:\/\/www.youtube.com\/user\/ericbrooksdotcom"]},{"@type":"Person","@id":"https:\/\/ericbrooks.com\/whuzzup\/#\/schema\/person\/3b162468e1f9814f6e9f61460db00a3a","name":"Eric Brooks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x","url":"https:\/\/secure.gravatar.com\/avatar\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62114f8baf9a3737e7686125b69907010ad6aff5dfc07c12707e8a18bb49bc34?s=96&d=blank&r=x","caption":"Eric Brooks"},"description":"Web &amp; Graphic Designer, Blogger, Musician, Evil Clown. I also code websites and promote people for a living. Still kind of a jerk, though. Approach with food.","sameAs":["https:\/\/ericbrooks.com","EricBrooksDotComWeb","ericbrooksdotcom","ericbrookscom\/","https:\/\/x.com\/EricBrooksCom"],"url":"https:\/\/ericbrooks.com\/whuzzup\/author\/site-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/posts\/35737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/comments?post=35737"}],"version-history":[{"count":2,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/posts\/35737\/revisions"}],"predecessor-version":[{"id":35742,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/posts\/35737\/revisions\/35742"}],"wp:attachment":[{"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/media?parent=35737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/categories?post=35737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ericbrooks.com\/whuzzup\/wp-json\/wp\/v2\/tags?post=35737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}