{"id":327,"date":"2023-12-13T13:39:43","date_gmt":"2023-12-13T13:39:43","guid":{"rendered":"https:\/\/pranavmani.com\/?p=327"},"modified":"2023-12-21T18:27:57","modified_gmt":"2023-12-21T18:27:57","slug":"problem-solving-with-python","status":"publish","type":"post","link":"https:\/\/pranavmani.com\/?p=327","title":{"rendered":"Problem Solving with Python"},"content":{"rendered":"\n<p>I have been practicing with getting better at solving LeetCode style problems that require use of data structures and algorithms. As the difficulty of the problems start getting harder, the I notice, that very good fluency of programming languages is required to solve the problems in a short period of time. I used C++ as a language of choice since it&#8217;s the most familiar to me, but as the difficulty levels of the problems increase, I&#8217;ve noticed that the solutions tend to get quite verbose in terms of the code in C++, making debugging more and more difficult. When I compare similar solutions in a programming language such as python, the number of lines of code sometimes reduce by a factor of 10! When the number of lines of code is lesser, debugging is more easier and the solution looks more intuitive in terms of the code. So, I&#8217;ve decided to stop using C++ for now and experiment with Python a bit. I am not an expert in the language and using this looks like a good opportunity to get better at Python as well. I&#8217;ve decided to give the problems in Advent of Code 2023 a try with Python.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been practicing with getting better at solving LeetCode style problems that require use of data structures and algorithms. As the difficulty of the problems start getting harder, the I notice, that very good fluency of programming languages is required to solve the problems in a short period of time. I used C++ as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"categories":[16],"tags":[15],"_links":{"self":[{"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/posts\/327"}],"collection":[{"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pranavmani.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":3,"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/pranavmani.com\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/pranavmani.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pranavmani.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pranavmani.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}