[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-727273-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-727273-en":130,"doc-similar-727273":216},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","algorithmic-toolbox-course-statements-and-programming-challenges","Algorithmic Toolbox - Course Statements and Programming Challenges","","Algorithmic Toolbox course materials present the statements of 32 programming challenges covering efficient, reliable coding for a wide range of algorithmic problems. The text emphasizes implementing algorithms as a key computer science skill and practice across 12 programming languages, including C++, Java, Python, and others. It also highlights interview preparation and teaching philosophy, references additional resources such as slides and videos, and includes a structured contents overview by topic and challenge.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/algorithmic-toolbox-course-statements-and-programming-challenges/727273/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/algorithmic-toolbox-course-statements-and-programming-challenges/727273.png","ImageObject",300,407,{"name":42,"@type":43},"（）","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-11-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the Algorithmic Toolbox course focus on?","Question",{"text":63,"@type":64},"The course focuses on practicing efficient and reliable code by implementing algorithms, emphasizing algorithmic problem solving as a core computer science skill.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How many programming challenges are included in this file?",{"text":68,"@type":64},"This file contains the statements of 32 programming challenges.",{"name":70,"@type":61,"acceptedAnswer":71},"Which programming languages are supported for solving the challenges?",{"text":72,"@type":64},"The materials support 12 programming languages, including C++, Java, Python, C, C#, Go, Haskell, JavaScript, Kotlin, Ruby, Rust, and Scala.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},727273,1795232714,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,99,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":101,"show_sort_weight":102,"slug":103},6,"Technology",50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":145,"preview_urls":146},5909898202386,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Welcome to the Algorithmic Toolbox course at Coursera! This file contains the statements of 32 programming challenges.  \nPractice writing efficient and reliable code. The programming challenges represent the most important feature of this course: we believe that implementing an algorithm is a crucial computer science skill. You can learn more about our teaching philosophy here. You will be practicing writing efficient and reliable code for a multitude of algorithmic problems using any of 12 programming languages: C++, Java, Python, C, C\\#, Go, Haskell, JavaScript, Kotlin, Ruby, Rust, Scala.  \nAdditional useful resources. You may download all slides and video recordings from this course here.  \nPrepare for you next coding interview. Many students use our “Algorithmic Toolbox”MOOC to prepare for their next coding interview. Our interactive textbook “Ace Your Next Coding Interview by Learning Algorithms through Programming and Puzzle Solving” prepares you fora coding interview by covering all programming challenges and puzzles in “Algorithmic Toolbox”. It further extends them by describing many challenges that you are likely to encounter on your next interview. The book also discusses good programming practices that will help you to become a better programmer and illustrates their use by providing Python solutions for all problems in the “Algorithmic Toolbox”. It also has a Teaching Assistant who responds to your comments to answer whatever questions you may have about algorithms.  \nContents  \n1 Programming Challenges 7  \n1.1 Sum of Two Digits ........................ 8  \n1.1.1 Solutions in Various Programming Languages .... 9  \n1.1.2 Submitting to the Grading System at Coursera ... 11  \n1.2 Maximum Pairwise Product .................. 12  \n1.2.1 Naive Algorithm ..................... 13  \n1.2.2 Fast Algorithm ...................... 17  \n1.2.3 Testing and Debugging ................. 18  \n1.2.4 Can You Tell Me What Error Have I Made? ...... 20  \n1.2.5 Stress Testing ...................... 20  \n1.2.6 Even Faster Algorithm ................. 25  \n1.2.7 A More Compact Algorithm .............. 26  \n1.3 Solving a Programming Challenge in Five Easy Steps .... 26  \n1.3.1 Reading Problem Statement .............. 26  \n1.3.2 Designing an Algorithm ................ 26  \n1.3.3 Implementing an Algorithm .............. 27  \n1.3.4 Testing and Debugging ................. 27  \n1.3.5 Submitting to the Grading System .......... 28  \n2 Algorithmic Warm Up 31  \n2.1 Programming Challenges .................... 33  \n2.1.1 Fibonacci Number .................... 33  \n2.1.2 Last Digit of Fibonacci Number ............ 35  \n2.1.3 Huge Fibonacci Number ................ 37  \n2.1.4 Last Digit of the Sum of Fibonacci Numbers ..... 39  \n2.1.5 Last Digit of the Partial Sum of Fibonacci Numbers . 40  \n2.1.6 Last Digit of the Sum of Squares of Fibonacci Numbers 41  \n2.1.7 Greatest Common Divisor ............... 43  \n2.1.8 Least Common Multiple ................ 44  \n2.2 Summary of Algorithmic Ideas ................. 46  \n2.3 Interview Questions ....................... 46  \n2.3.1 Josephus ......................... 47  \n2.3.2 Range Sum Queries ................... 47  \n3 Greedy Algorithms 49  \n3.1 The Main Idea .......................... 52  \n3.1.1 Examples ......................... 52  \n3.1.2 Proving Correctness of Greedy Algorithms ..... 53  \n3.1.3 Implementation ..................... 54  \n3.2 Programming Challenges .................... 56  \n3.2.1 Money Change ...................... 56  \n3.2.2 Maximum Value of the Loot .............. 57  \n3.2.3 Car Fueling ....................... 59  \n3.2.4 Maximum Advertisement Revenue .......... 61  \n3.2.5 Collecting Signatures .................. 63  \n3.2.6 Maximum Number of Prizes .............. 65  \n3.2.7 Maximum Salary .................... 67  \n3.3 Interview Questions ....................... 68  \n3.3.1 Job Scheduling ...................... 69  \n3.3.2 Mice and a Fox ..................... 70  \n3.3.3 Party Planning at Work ..............","cbCaigzGK9RAV4yg","https://ap.wps.com/l/cbCaigzGK9RAV4yg","pdf",1523000,157,"English","# Programming Challenges\n## Sum of Two Digits\n## Maximum Pairwise Product\n## Solving a Programming Challenge in Five Easy Steps\n# Algorithmic Warm Up\n## Fibonacci Number\n## Greatest Common Divisor\n## Interview Questions\n# Greedy Algorithms\n## The Main Idea\n## Programming Challenges\n## Interview Questions\n# Divide-and-Conquer\n## The Main Idea\n## Programming Challenges\n## Interview Questions\n# Dynamic Programming","[{\"question\":\"What does the Algorithmic Toolbox course focus on?\",\"answer\":\"The course focuses on practicing efficient and reliable code by implementing algorithms, emphasizing algorithmic problem solving as a core computer science skill.\"},{\"question\":\"How many programming challenges are included in this file?\",\"answer\":\"This file contains the statements of 32 programming challenges.\"},{\"question\":\"Which programming languages are supported for solving the challenges?\",\"answer\":\"The materials support 12 programming languages, including C++, Java, Python, C, C#, Go, Haskell, JavaScript, Kotlin, Ruby, Rust, and Scala.\"}]","Algorithmic Toolbox - Course Statements and Programming Challenges | PDF",396,16,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/215af282f65dc2e1f2f085a8a6dff785.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/83868b0bb234187012cd27fdddaaaf04.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/65889dd45134a43dc5a75624104ebe25.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/d4fc170e0b41960c1778dd7a18f1ea51.webp",980,1268,{"page_no":55,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/0fcba96a43163ba8ac0a0877f2d80242.webp",979,1267,{"page_no":100,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/9d46832afa4889c14d8624992c4329b3.webp",978,1265,{"page_no":105,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/d31ab3fca3cde50088d3df8ce4fab66b.webp",977,1264,{"page_no":110,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/ffcf0d382a950aa1a6d9fdc679640f18.webp",976,1263,{"page_no":115,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/6a031de7f9809de6c5d7e7624a1e8a93.webp",975,1261,{"page_no":123,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/f1a52a896f58733bc53d3839738c6eb9.webp",974,1260,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/5635fa0daa0f4664f2a94cff4f770161.webp",973,1259,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/1018018ca2d173aad0e83d6b5ba41e8e.webp",972,1257,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/c513fb2eef493114eb5fc5132ce02875.webp",971,1256,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/5355d8b08f899876b3589ca21d5ce8be.webp",970,1255,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/402dbcc31abefa51adf8e58010d9be7f.webp",969,1254,{"page_no":145,"url":213,"width":214,"height":215},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/acb9fa5ef087f7965682cef2bf1d700c.webp",968,1252,{"list":217,"token":11},[218,225,231,238,244,250,256,262,268,274],{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":29,"create_tm":224},391412,"Company Specific Preparation - Placement Test Preparation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917681183/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=L4egRkSSZ6e0DAnfOvAbLgGsyTg%3D","company-specific-preparation-placement-test-preparation",25,1790353157,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":208,"category_name":29,"create_tm":230},440942,"AP® Computer Science Principles - Sample Syllabus - 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924543986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=u%2FQthFgxQcMT%2FLC%2Bc%2FKsfLQ%2FoXo%3D","ap-computer-science-principles-sample-syllabus-1",1790694029,{"doc_id":232,"doc_title":233,"file_type":137,"home_preview_img_url":234,"slug":235,"view_count":236,"category_name":29,"create_tm":237},18760,"Coding Interview 1000 Questions & Answers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229708598182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=EDxDoVfLdDnmwwdmThvqEobmbT8%3D","coding-interview-1000-questions-answers",45,1777070339,{"doc_id":239,"doc_title":240,"file_type":137,"home_preview_img_url":241,"slug":242,"view_count":105,"category_name":29,"create_tm":243},314670,"A Gamified Multi-Format Assessment for High School Programming Camps","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907673229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=n8rJub723%2Fn7ADEpewmPAriFMTU%3D","a-gamified-multi-format-assessment-for-high-school-programming-camps",1789901424,{"doc_id":245,"doc_title":246,"file_type":137,"home_preview_img_url":247,"slug":248,"view_count":145,"category_name":29,"create_tm":249},391283,"How To Ace The Interview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917375117/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=fborN6pS87bn9Nd4HulA0bdBjjU%3D","how-to-ace-the-interview",1790351068,{"doc_id":251,"doc_title":252,"file_type":137,"home_preview_img_url":253,"slug":254,"view_count":127,"category_name":29,"create_tm":255},208274,"GCSE Computer Science Options 2022 - Course Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229883623321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=wod9Dg3mmr1K8EwGxXkww4aBPbU%3D","gcse-computer-science-options-2022-course-overview",1788603216,{"doc_id":257,"doc_title":258,"file_type":137,"home_preview_img_url":259,"slug":260,"view_count":193,"category_name":29,"create_tm":261},391217,"50+ Data Structure and Algorithms Interview Questions for Programmers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917653939/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=WPVCCv6DJRFRwzQIgQ8o5%2BPZZNk%3D","50-data-structure-and-algorithms-interview-questions-for-programmers",1790350190,{"doc_id":263,"doc_title":264,"file_type":137,"home_preview_img_url":265,"slug":266,"view_count":203,"category_name":29,"create_tm":267},341441,"AP Computer Science Principles Create Task - Sample A","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910324726/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=FoF%2B5eDZQ%2FG2kBcbAZuGjibB8hw%3D","ap-computer-science-principles-create-task-sample-a",1790041900,{"doc_id":269,"doc_title":270,"file_type":137,"home_preview_img_url":271,"slug":272,"view_count":223,"category_name":29,"create_tm":273},391616,"Interview Questions to Ask a Data Scientist - Xobin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917694568/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=AaKAMXBV3yqooBb1vLbaccKVVHw%3D","interview-questions-to-ask-a-data-scientist-xobin",1790355802,{"doc_id":275,"doc_title":276,"file_type":137,"home_preview_img_url":277,"slug":278,"view_count":188,"category_name":29,"create_tm":279},207525,"Practice Paper 2023 - GCSE (9–1) Computer Science J277/02 - Computational thinking, algorithms and programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229883585351/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205719&Signature=qkO05ANWv1E0MPUdqCprvVZGErc%3D","practice-paper-2023-gcse-91-computer-science-j27702-computational-thinking-algorithms-and-programming",1788599890]