<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-697397625700362612</id><updated>2026-03-22T12:42:14.973+05:30</updated><category term="Hackerrank"/><category term="HackerRank CPP"/><category term="HackerRank Python"/><category term="CodeChef Solution"/><category term="10 Days of JavaScript"/><category term="HackerRank C"/><category term="Go"/><category term="Go Programs"/><category term="30 Days of Code"/><category term="HackerRank Algorithms"/><category term="Blogging"/><category term="Coding Tips"/><category term="Laptops"/><category term="LeetCode"/><title type='text'>Sloth Coders</title><subtitle type='html'>Sloth Coders is a Learning Platform for Developers to learn from the basics to advance of Coding of Go, Python, Java and JavaScript.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default?start-index=26&amp;max-results=25'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>207</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-7500755213974144951</id><published>2021-09-18T01:11:00.001+05:30</published><updated>2022-01-18T12:42:53.679+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Find Factors of a Number</title><summary type="text">
  Hello coders, in this post we are going to learn
    how to find factors of a number using Go Programming language.



  



  A Factor is a number that divides the given number without any
    remainder. For example: 3 is a factor of 72 because 72 is exactly divisible
    by 3 leaving no remainder.


  We will be using the same logic to find factors of a number.&amp;nbsp;


  So, without further </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/7500755213974144951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-find-factors-of-a-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7500755213974144951'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7500755213974144951'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-find-factors-of-a-number.html' title='Go Program To Find Factors of a Number'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCvib_sTxhnsgHLHqRIMhzZpg4byekujXMFQBFot8RQyWSErN_5YRrbQ0X6UbSq9zylrMuG34DffPwWpeVgTib8LH2q3-YVV1jeB_tTGt5Ar_8xHcbqE5h6Fo_zjN7zT-UddDFWZXQspk/s72-c/go-program-to-find-factors-of-a-number-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-8129557432789061626</id><published>2021-09-12T12:15:00.000+05:30</published><updated>2022-01-18T12:42:54.927+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Print Even Numbers From 1 To N</title><summary type="text">
  Hello coders, in this post we are going to learn
    how to print even numbers from 1 to N using Go Programming
    language.



  



  Any number which can be exactly divisible by 2 is known as Even Numbers.
    For example: 2, 8, 64, 512, 1810, . . . , etc.


  This program will take maximum value from the user as input and displays
    even numbers from 1 to maximum value.


  So, without </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/8129557432789061626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-print-even-numbers-from-1-to-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8129557432789061626'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8129557432789061626'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-print-even-numbers-from-1-to-n.html' title='Go Program To Print Even Numbers From 1 To N'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FxIFF5iZgmP0uwmr1oxUl12AgMTTI_NWl1dThKzhrSBo5Hzx3F9EwhXXkKjL5qFjHnL8VjQJl9O46WmsJBsSMAJPmg183kKgiyCGCbd7O6yiZFIZtOu_D2rpiR-Q6yrOEMBdwOpnnC0/s72-c/go-program-to-print-even-numbers-from-1-to-n-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-5142376643196537233</id><published>2021-09-11T23:00:00.003+05:30</published><updated>2022-01-18T12:42:56.127+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Check Whether a Number is Even or Odd</title><summary type="text">
  Hello coders, in this post we will learn how to check whether a number is
    even or odd using Go Programming language.&amp;nbsp;



  



  Any number that can be exactly divided by 2 is called as an
    Even Number. For example: 2, 16, 32, 258, . . . etc.


  Any number that can not be exactly divided by 2 is called as an
    Odd Number. For example:3, 17, 51, 243, . . . etc.


  So, without </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/5142376643196537233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-check-odd-even.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5142376643196537233'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5142376643196537233'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-check-odd-even.html' title='Go Program To Check Whether a Number is Even or Odd'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF5VJIkW4j_zsJ34MShGIZTsEa0ROPxBzU9Uf199LNxB8Uu8HYQSAk6NC6vlzI4uxnYx0kz9emguuzjVaPCGEz0Ey30lGfvxu5ERFkqVm5OL4Qug92xTJUhRZWF3OZW3BNraa8Fu6gFQo/s72-c/go-program-to-check-even-odd-number-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-978958014299715179</id><published>2021-09-10T23:00:00.001+05:30</published><updated>2022-01-18T12:42:57.169+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Calculate Employee Salary </title><summary type="text">
  Hello coders, in this post we will know
    how to calculate salary of an employee using Go Programming
    language.



  



  We will calculate the salary of the employee, including all the perks which
    is provided to him.


  Dearness Allowance = 25% of Basic PayHouse Rent Allowance = 15% of Basic Pay&amp;nbsp;Travelling Allowance = 15% of Basic Pay&amp;nbsp;Provident Fund = 12% of Basic Pay&amp;</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/978958014299715179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-employee-salary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/978958014299715179'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/978958014299715179'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-employee-salary.html' title='Go Program To Calculate Employee Salary '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhza4X2YLiMtAhJLwmqNrt9abM-ncSjD96T6GVOZ0NkGRPOEYTK40JN3fLlionK6EYCdVDhmAswwyOBvlNadLmfRMFJE3BJNMGUtyfUcSQncUx33DICX4fezU8VrWjv5Y5ZwKU3C_arxr0/s72-c/go-program-to-calculate-employee-salary-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-7867572085350183238</id><published>2021-09-10T21:06:00.001+05:30</published><updated>2022-01-18T12:43:00.600+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Calculate Electricity Bill</title><summary type="text">
  Hello coders, in this post we are going to solve
    how to calculate electricity bill using Go Programming
    language.



  



  So, without further delay, let&#39;s begin this tutorial.


  Table Of Contents 👊



  
    Go Program To Calculate Electricity Bill
  
  
    How Does This Program Work ?
  
  
    Conclusion
  



  Go Program To Calculate Electricity Bill

// Go Program To </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/7867572085350183238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-electricity-bill.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7867572085350183238'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7867572085350183238'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-electricity-bill.html' title='Go Program To Calculate Electricity Bill'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAPiyFCgcW3NJc07WGwGVj_rMphyphenhyphenEugdL1eMC9nRfrlihmNGMpbYyt9xqhsRgQQRTeNbr3s9h_A27Lxp8x-QlqYsI7Lh1KOqt-WIUHhFcJM4gOkA8RdNDfKfTcETKNlOKl88zFrEIijgE/s72-c/go-program-to-calculate-electricity-bill-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-193786988694961251</id><published>2021-09-10T10:47:00.000+05:30</published><updated>2022-01-18T12:42:59.674+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Count Total Number of Notes in a Given Amount</title><summary type="text">
  Hello coders, in this post we will learn
      how to calculate total number of notes in a given amount.



  



  We will be using 1, 2, 5, 10, 50,
    100, 500, 2000 Rupee Notes in this program.&amp;nbsp;


  So, without further delay, let&#39;s begin this tutorial.


  Table Of Contents 👊



  
    Go Program To Count Total Number of Notes
  
  
    How Does This Program Work ?
    
  
  
    Go </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/193786988694961251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-count-total-number-of-notes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/193786988694961251'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/193786988694961251'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-count-total-number-of-notes.html' title='Go Program To Count Total Number of Notes in a Given Amount'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixPG1Uy5Q_oCcTDIPHunAbxsYkRew2dsJJ2r5tPbSWWzdyy84cMQpz5bdG8Jkx6wT8LfI-4ZyFpzWUR8rdtx7VK32CdrEKwoQuQFguAftsReSxhnswSDv6AQK7GpGysYny3JOe6BT2qTU/s72-c/go-program-to-count-total-number-of-notes-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-6557661787266683146</id><published>2021-09-09T23:00:00.007+05:30</published><updated>2022-01-18T12:43:02.391+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Calculate Cube of a Number</title><summary type="text">
  Hello coders, in this post we will learn
    how to calculate cube of a number using Go Programming
    language.





  A Cube Number is a number multiplied by itself 3 times. For Example:
    8 is a cube number because it&#39;s 2 x 2 x 2, this is also written as
    2^3.


  A cube number can also be called a number cubed.


  So, without further delay, let&#39;s begin the tutorial.


  Table Of </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/6557661787266683146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-cube-of-a-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/6557661787266683146'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/6557661787266683146'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-cube-of-a-number.html' title='Go Program To Calculate Cube of a Number'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8E-Vy4_ZyzDNH6r4f8kekYddD7eEjrIQOqb_r9PwWxZa05MPq8XoAaPtjeMFmG9FGTCxRKDyI_VKm7bbaSQ0JnKpIMtWeN_z9n9ahzqlDsFwBgjflbVPI8YiU3BNdcMeHCWw_8wLloGc/s72-c/go-program-to-calculate-cube-of-a-number-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-6046376954909812393</id><published>2021-09-07T23:00:00.002+05:30</published><updated>2022-01-18T12:43:04.049+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Count Number of Digits in an Integer</title><summary type="text">
  Hello coders, in this post we will know
    how to count number of digits in an integer using Go Programming
    language.



  




  We will be using for loop to count the number of digits in the
    integer. The for loop condition (num &amp;gt; 0) make sure that the number is
    greater than 0, then we will divide the integer with 10, which will remove
    the last digit of the integer and </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/6046376954909812393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-count-number-of-digits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/6046376954909812393'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/6046376954909812393'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-count-number-of-digits.html' title='Go Program To Count Number of Digits in an Integer'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrAPK_4RpyzhSVreb3y5C0ErEnk9lqqNnlA3lzpmXsPpVTmHRIDN5FK6jvLWnX-XonKssis1W1o5zhN5jMGhAvZK8BpTx5CqidyyMlBmwwYPBpW0ITvGjxbiTxvEvbvlV_1h9QJKAFC6w/s72-c/go-program-to-count-number-of-digits-in-an-integer-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-7922464333322014241</id><published>2021-09-06T23:00:00.003+05:30</published><updated>2022-01-18T12:43:05.925+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Calculate Compound Interest </title><summary type="text">
  Hello coders, in this post we will learn
    how to calculate compound interest using Go Programming
    language.



  



  Compound Interest is the interest calculated based on both the initial
    principal amount and accumulated interest from previous periods.


  Compound Interest is calculated using this formula:


  Compound Interest = Principal Amount * (1 + Interest Rate)^Time


  We</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/7922464333322014241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-compound-interest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7922464333322014241'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7922464333322014241'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-calculate-compound-interest.html' title='Go Program To Calculate Compound Interest '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieX2lmLPSpsxH0o0igTRsuzJM3FixZurBiQAqeHETzBgngwTu_Lz2AgpEtNHR8XVcBZEMOxlFRqLj7oDIV8Tcf5fC1vDVE1wR5Fxuo6e2bsiZRlcYtNc60n95jCmQryTBcEpMMqoBFlYo/s72-c/go-program-to-calculate-compound-interest-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-461268801619485135</id><published>2021-09-06T00:42:00.008+05:30</published><updated>2022-01-18T12:43:07.711+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Go Program To Add Two Numbers</title><summary type="text">
  Hello coders, in this post we will learn how to add two numbers using Go
    Programming language.


  We will be using different methods to add two numbers in Go
    language.&amp;nbsp;


  So, without any delay, let&#39;s begin the tutorial.



  

Table Of Contents 👊



  
    Go Program To Add Two Numbers
  
  
    How Does This Program Work ?
  
  
    Add Two Numbers Using User Input
  
  
    </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/461268801619485135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-add-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/461268801619485135'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/461268801619485135'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/go-program-to-add-two-numbers.html' title='Go Program To Add Two Numbers'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinwjb9U1tjtIYj6oH_F0k-0Zu9EU1V75zZxFvsnlWyAe3rAn44Wf5SM_WjFrmRmyaAz_w4iwRPOT5V_TsBArNJpx09UD4BD62X3HX6UPB8s29-c5MWQhd4KI2h3o86mGGhH3MEAqifkLY/s72-c/go-program-to-add-two-numbers-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-3704710525726770110</id><published>2021-09-04T18:45:00.003+05:30</published><updated>2022-01-18T12:43:10.000+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Go"/><category scheme="http://www.blogger.com/atom/ns#" term="Go Programs"/><title type='text'>Golang Hello World Program</title><summary type="text">
  In this post, we will learn
    how to write hello world program in Go language.


  Hello, World! is the first program any coder writes to know the basic
    syntax of any new programming language.
Similarly, we will be writing our first Go Program which is Hello World Program.

  So, without any delay, let’s begin the tutorial.



  Table Of Contents 👊



  
    Golang Hello World Program
</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/3704710525726770110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/09/golang-hello-world-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/3704710525726770110'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/3704710525726770110'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/09/golang-hello-world-program.html' title='Golang Hello World Program'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd57Yuts7nR0Y8AAo5aMMUr7oRPkCtqn6cyRywwvRlxrpe4Xnv_xvFOKtHtzesMsCA6JfNWzB8llW5i7bHeWYWeO-PmnokpOLV3ccIoUT-CLzLL34KVJ-xYcaBfpaVjxjO3X6uxjOtqYI/s72-c/go-lang-hello-world-program-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-187218402464086615</id><published>2021-08-05T20:34:00.005+05:30</published><updated>2021-08-05T22:22:33.125+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogging"/><title type='text'>How To Add Code Box in Blogger Post</title><summary type="text">
  How To Add Code Box in Blogger Post ? This is one of the major
    problems faced by newbie bloggers. Many Bloggers start their blogging
    Journey with the help of Google Blogger.&amp;nbsp;



  Later on when their blog gets big, they shift their blog to WordPress or
    any third Party Hosting. But in the initial phase, new bloggers have to face
    many problems.&amp;nbsp;



  



  This is </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/187218402464086615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/how-to-add-code-box-in-blogger-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/187218402464086615'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/187218402464086615'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/how-to-add-code-box-in-blogger-post.html' title='How To Add Code Box in Blogger Post'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgghK9fkD6SpiMt7nMdN7si1iOLmIZr9x-hcMnC9anEmaDaZQWs3etbq2MwIU8Zgilpj2IdE5I0D7OVQxY5-2oOrpYdjKC1vl3UikAMhM2jr7eSwx_dtPzkKVlGi4aTy5u2SL-6JziF9W4/s72-c/how-to-add-code-box-in-blogger-post-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-879323541134916044</id><published>2021-08-02T19:30:00.006+05:30</published><updated>2021-08-05T20:46:42.593+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>HackerRank Solutions in C++</title><summary type="text">
  Hello there, today we are going to solve Hacker Rank Solutions in
    C++.



  



  HackerRank Solutions in C++



  
    Say &quot;Hello, World!&quot; With C++
  
  
    Input and Output in C++
  
  
    Basic Data Types in C++
  
  
    Conditional Statements in C++
  
  
    For Loop in C++
  
  
    Functions in C++
  
  
    Pointer in C++
  
  
    Arrays Introduction in C++
  
  
    Variable </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/879323541134916044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/hackerrank-solutions-in-cpp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/879323541134916044'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/879323541134916044'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/hackerrank-solutions-in-cpp.html' title='HackerRank Solutions in C++'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic4BlhrbY2o9iw52TorVYn9ksJSXWy7-XzNgWgJvkFxwe_ZOCuVrmex82QkVfEoXdb27EIQY-uxcC3i9Uqf6_lDnE6VbC0V6Qqvg2uw6PQF-rqGIBUbS3AAURkYzrwkOlalEY-HKXscVw/s72-c/hackerrank-solutions-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-1459423799101985630</id><published>2021-08-02T18:47:00.007+05:30</published><updated>2021-08-02T19:02:35.792+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Variable Sized Arrays in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve
    Variable Sized Arrays Hacker Rank Solution in C++.



  



  Table Of Contents 👊



  
    Task
    
  
  
    Input Format
    
  
  
    Constraints
    
  
  
    Output Format
    
  
  
    Solution
    
  



  Task


  Consider an n-element array, a, where each index i in the array contains a
    reference to an array of ki integers (where </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/1459423799101985630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/variable-sized-arrays-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/1459423799101985630'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/1459423799101985630'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/variable-sized-arrays-in-cpp-solution.html' title='Variable Sized Arrays in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHOXix0JDMgyioBIFG7tav2qTFS_Q_5fGUc1Hr_L6SzeJVcnJEWxYNKnV56JNlhVBmEX-Q4kZk4n_XLet119TDMRbsnIODj65-pH7uaXbyCeIYxHSqIGb1VT8zObCbH1wOlTJe6amcV4I/s72-c/variable-sized-arrays-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-3261014293763033569</id><published>2021-08-02T18:29:00.002+05:30</published><updated>2021-08-02T18:29:23.268+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Bit Array in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve Bit Array Hacker Rank
    Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Output Format
  
  
    Constraints
  
  
    Solution
  



  Problem


  You are given four integers: N, S, P, Q. You will use them in order to create the sequence a with the following
    pseudo-code.

a[0] = S (modulo 2^31)
for i</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/3261014293763033569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/bit-array-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/3261014293763033569'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/3261014293763033569'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/bit-array-in-cpp-solution.html' title='Bit Array in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGkNLaXjuMjaK2KHavuRvLc17szo0tcsFG_loSXffx4wUbTVKBnEiMLwDtCWyJhl5Ja5N17o1O1v3s13FN5LGVLj_HvZWjEDdCP5oC6F4PsA9JH7f7fSeltHCI28DtEpX3VaxxQFjOU14/s72-c/bit-array-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-8678744157620733294</id><published>2021-08-02T13:54:00.005+05:30</published><updated>2021-08-02T13:54:42.069+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>C++ Variadics in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve C++ Variadics Hacker Rank
    Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format
  
  
    Solution
  


Problem

  A template parameter pack is a template parameter that accepts zero or more
    template arguments (non-types, types, or templates).&amp;nbsp;


  reate a </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/8678744157620733294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/cpp-variadics-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8678744157620733294'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8678744157620733294'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/cpp-variadics-in-cpp-solution.html' title='C++ Variadics in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlpumD0QPvto8YzyWP4SjXGUGv9EiBpdaQU6pHaUHKT5T9WPV17NcJMOEBShnNav9XfyI4pzypP7G0bVEIMhGLtam6WlzFNQ-Z8jG0yL3z9h9nOIayNXsnMmx2JnjpabB5pcdCoXm3eW4/s72-c/c%252B%252B-variadics-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-7667916233276764326</id><published>2021-08-02T13:37:00.001+05:30</published><updated>2021-08-02T13:37:02.011+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>C++ Class Template Specialization in C++ | HackerRank Solution </title><summary type="text">
  Hello there, today we are going to solve
      C++ Class Template Specialization
    Hacker Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format
  
  
    Solution
  



  Problem


  You are given a main function which reads the enumeration values for two
    different types as input, then prints out the </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/7667916233276764326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/class-template-specialization-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7667916233276764326'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/7667916233276764326'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/class-template-specialization-in-cpp-solution.html' title='C++ Class Template Specialization in C++ | HackerRank Solution '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCNubjbCtIIxDJ88pPzw1mGTAAHU7FTCAZY98gdog2Qrejz-b_RzlAoBQmgsNDH7w3RreZJd5LGDHpscyFC69X5cR_UIX9ssBgEBL_shfwlmCiK4596cfZivifTrK53IFtKVMfx939TGA/s72-c/class-template-specialization-in-c%252B%252B-soution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-8736963711630222292</id><published>2021-08-02T13:19:00.002+05:30</published><updated>2021-08-02T13:19:10.218+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Attending Workshops in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve Attending Workshops Hacker
    Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format&amp;nbsp;
  
  
    Solution
  


Problem

  A student signed up for&amp;nbsp; workshops and wants to attend the maximum
    number of workshops where no two workshops overlap. You must do the
</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/8736963711630222292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/attending-workshops-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8736963711630222292'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8736963711630222292'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/attending-workshops-in-cpp-solution.html' title='Attending Workshops in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBYcEO6k5ZNcf-XZHLdxT2POF9HbUVjJy4uOayKhmqG0BnU3lBEYKqAoakybTkoYPIeGD70roK_CFGofD05p-B-00L1CI-5gU86cIMEPb39X2Gc1zpYgwwxcR5Ajq3YZFDOUMekscHrcI/s72-c/attending-workshops-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-5817639550137093342</id><published>2021-08-02T12:57:00.000+05:30</published><updated>2021-08-02T12:57:00.145+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Overload Operators in C++ | HackerRank Solution </title><summary type="text">
  Hello there, today we are going to solve Overload Operators Hacker
    Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
    Output Format
  
  
    Solution
  



  Problem


  You are given a class - Complex.

class Complex
{
public:
    int a,b;
};

  Operators are overloaded by means of operator functions, which are regular
    functions with </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/5817639550137093342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/overload-operators-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5817639550137093342'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5817639550137093342'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/overload-operators-in-cpp-solution.html' title='Overload Operators in C++ | HackerRank Solution '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcLMfYCUw_KfM9dhrxylNZ2QK2sg1LIAKBWuLvl2tXcArfUk7N2EYpB4bIOAzRCIy5vdA-XM0V4nEGtnx2cFsS0a3oFHluK0J32U6DC8CNzDc3Lrge81faAlF-E2KV8r7WVYKuUlWACYk/s72-c/overload-operators-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-8580179708643706926</id><published>2021-08-02T12:36:00.001+05:30</published><updated>2021-08-02T12:36:13.564+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Operator Overloading in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve Operator Overloading Hacker
    Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format
  
  
    Solution
  



  Problem


  Classes define new types in C++. Types in C++ not only interact by means of
    constructions and assignments but also via operators. For example:
</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/8580179708643706926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/operator-overloading-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8580179708643706926'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/8580179708643706926'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/operator-overloading-in-cpp-solution.html' title='Operator Overloading in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpw9sITXui_G1UAxPOWKzfEWAknJflhOrHQrabUv3vPprtrcy4hxKkKHgFhDU96X5yc4A3Dc-2qx0OFwnuSsOO-QLhu-wNgjSs6pqg1PLbMkICaOdoF7q1AJjZ6aJb2LsFvGLfsxZFypo/s72-c/operator-overloading-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-2217268612398407294</id><published>2021-08-02T12:17:00.002+05:30</published><updated>2021-08-02T12:17:26.095+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Preprocessor  Solution in C++ | HackerRank Solution </title><summary type="text">
  Hello there, today we are going to solve
    Preprocessor Solution Hacker Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints&amp;nbsp;
  
  
    Output Format
  
  
    Solution
  


Problem

  Preprocessor directives are lines included in the code preceded by a hash
    sign (#). These lines are directives for the preprocessor. The </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/2217268612398407294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/preprocessor-solution-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/2217268612398407294'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/2217268612398407294'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/preprocessor-solution-in-cpp-solution.html' title='Preprocessor  Solution in C++ | HackerRank Solution '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvPAQb62ZGSx5mfpiGcvbQsjRHsCrZVsSDvxcuS4AOZ-iQ63FqruiBLl_kmj7rfY66DWS0TIGkxCv38nXzAmnjCj55C4zJmqm_C_jey8cmSwK3-iUFs9oZ7_AqRd8U-IU-oo0-MCbQG4g/s72-c/preprocessor-solution-in-c%252B%252B-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-5899097840046307221</id><published>2021-08-02T11:54:00.005+05:30</published><updated>2021-08-02T11:54:35.160+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>C++ Class Templates in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve C++ Class Templates Hacker
    Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format&amp;nbsp;
  
  
    Solution
  


Problem

  A class template provides a specification for generating classes based on
    parameters. Class templates are generally used to implement
    </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/5899097840046307221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/cpp-class-template-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5899097840046307221'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/5899097840046307221'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/cpp-class-template-in-cpp-solution.html' title='C++ Class Templates in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXvvBUFIsN7sHylvh9wdfmGASL6maERrZcNW5DFVfJL6fB54j1BDaTbp3DHDYiQE3B_9vql6z6giv9kcQfXJytp7K75y8R2_iQeEojZlJEORT00faDfLssxFYOnWlGEamjnjzbocyI-fI/s72-c/c%252B%252B-class-template-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-466506674504971231</id><published>2021-08-01T23:19:00.000+05:30</published><updated>2021-08-01T23:19:01.064+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Magic Spells in C++ | HackerRank Solution </title><summary type="text">
  Hello there, today we are going to solve Magic Spells Hacker Rank
    Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format
  
  
    Solution
  



  Problem


  While playing a video game, you are battling a powerful dark wizard. He
    casts his spells from a distance, giving you only a few seconds to react and
</summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/466506674504971231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/magic-spells-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/466506674504971231'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/466506674504971231'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/magic-spells-in-cpp-solution.html' title='Magic Spells in C++ | HackerRank Solution '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4I3rQUG_U6IFGoEcKDj7Wx8aq5q1_khUFg7O4QvKMLg-ycp3jZOK-Y2yJ3O9pMPwavpYo1GvUQTGaBYw98jkAxvVIpXPhamRAej_DNzmkYUcYLQk9nDwZYt-nBHPb5BIv1ta9sJuyT9g/s72-c/magic-spells-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-2820689693555361444</id><published>2021-08-01T22:52:00.006+05:30</published><updated>2021-08-01T22:52:48.468+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Accessing Inherited Functions in C++ | HackerRank Solution </title><summary type="text">
  Hello there, today we are going to solve
      Accessing Inherited Functions
    Hacker Rank Solution in C++.



  

Table Of Contents 👊



  
    Problem
  
  
    Input Format
  
  
    Constraints
  
  
    Solution
  



  Problem


  You are given three classes A, B and C. All three
    classes implement their own version of func.


  In class A, func multiplies the value passed as a </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/2820689693555361444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/accessing-inherited-functions-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/2820689693555361444'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/2820689693555361444'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/accessing-inherited-functions-in-cpp-solution.html' title='Accessing Inherited Functions in C++ | HackerRank Solution '/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHMpH8CxgvhVolCGQazEmUCIQPGj6OnACBkmys43RYT5Jl5I-id0YihWgeD-KILEcKjc8ydtwtfjQAoKJAGyWuRMKCB1z5qNFtKC6KPXy1odDOEXY6vwRvoi1Mw5f0zKHWRs0gUwx_BPg/s72-c/accessing-inherited-functions-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-697397625700362612.post-9185076123587282894</id><published>2021-08-01T22:05:00.007+05:30</published><updated>2021-08-01T22:05:56.999+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hackerrank"/><category scheme="http://www.blogger.com/atom/ns#" term="HackerRank CPP"/><title type='text'>Messages Order in C++ | HackerRank Solution</title><summary type="text">
  Hello there, today we are going to solve Messages Order Hacker Rank
    Solution in C++.



  

Table Of Contents 👊



  
    Problem&amp;nbsp;
  
  
    Input Format
  
  
    Constraints
  
  
    Output Format
  
  
    Solution
  



  Problem


  In real life applications and systems, a common component is a messaging
    system. Thea idea is that a sender sends messages to the recipient. </summary><link rel='replies' type='application/atom+xml' href='https://slothcoders.blogspot.com/feeds/9185076123587282894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://slothcoders.blogspot.com/2021/08/messages-order-in-cpp-solution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/9185076123587282894'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/697397625700362612/posts/default/9185076123587282894'/><link rel='alternate' type='text/html' href='https://slothcoders.blogspot.com/2021/08/messages-order-in-cpp-solution.html' title='Messages Order in C++ | HackerRank Solution'/><author><name>Niraj Kumar</name><uri>http://www.blogger.com/profile/05521059862423850115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhilqXUCYxmcaUCwcMTwHBvVNP4o0izujQMMc-G9dOHFNYdw-qQA-xGWqYg4H4EZDA_1jvKcf4SastzFidIAnZXZD-X0NP-D9tOkwb64zbG4BWNKgKRwhIACTXUf16ZYsk/s113/20200926_171231.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWAmJ6wepLNXA7Kb2zkXq5OxulY5Xj-8VIUS6lwY_AlRkz3UbZL4P6OtakZeA0gui4JjEfVTcIvPW92Nt1GWpyEmOUe54EmJ9KAgCL7SvNXL1E8q25bOjtQoYp_aHfugkGpxp1gagiUvc/s72-c/messages-order-in-c%252B%252B-solution-sloth-coders.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>