<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ashis Kumar Pradhan</title>
    <description>The latest articles on DEV Community by Ashis Kumar Pradhan (@akp111).</description>
    <link>https://dev.to/akp111</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F658698%2F9f8501d4-7dea-4bab-af43-a187e6d16b21.jpeg</url>
      <title>DEV Community: Ashis Kumar Pradhan</title>
      <link>https://dev.to/akp111</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akp111"/>
    <language>en</language>
    <item>
      <title>1. Check For Palindrome Number</title>
      <dc:creator>Ashis Kumar Pradhan</dc:creator>
      <pubDate>Mon, 31 Oct 2022 10:03:35 +0000</pubDate>
      <link>https://dev.to/akp111/1-check-for-palindrome-number-50i0</link>
      <guid>https://dev.to/akp111/1-check-for-palindrome-number-50i0</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SOlOIjo0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2h53yys7s68ux8e8844.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SOlOIjo0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2h53yys7s68ux8e8844.png" alt="Palindrome meme" width="880" height="934"&gt;&lt;/a&gt;&lt;br&gt;
 When you see a beautiful lady, a &lt;strong&gt;wow&lt;/strong&gt; comes out of you, isn't it, or if you are scared of palindromes (Just like the image above)? Now, unconsciously you omitted a palindrome word. So, a palindrome word is a word that reads the same when you reverse it. The palindrome algorithm is used mainly in DNA sequence compression. &lt;/p&gt;

&lt;p&gt;Now, we will see how to check whether a number is a palindrome. We will be using C++ to implement the logic. Here is the thought process:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Store the original number (&lt;code&gt;n&lt;/code&gt;) in another variable. Let's call it &lt;code&gt;dup&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Initialize a variable with zero. Let's call it &lt;code&gt;rev&lt;/code&gt; (to prevent garbage values). &lt;/li&gt;
&lt;li&gt;While the number &lt;code&gt;n&lt;/code&gt; is not zero:

&lt;ol&gt;
&lt;li&gt;Get the last digit and add it to the &lt;code&gt;rev*10&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Remove the digit from the number.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;After this check if &lt;code&gt;rev&lt;/code&gt; is equal to &lt;code&gt;dup&lt;/code&gt; or not. If yes then return true or else return false.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Code implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Solution&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;isPalindrome&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;long&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// -ve will never be a palindrome. ex: -121 is not equal to 121-&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;long&lt;/span&gt; &lt;span class="n"&gt;dup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;long&lt;/span&gt; &lt;span class="n"&gt;rev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="c1"&gt;// loop till n is not 0. Here we don't know how long the loop will run so we are using a while loop instead of for&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;// This helps us get the last digit and add it to the rev variable and the rev*10 helps maintain the place value&lt;/span&gt;
            &lt;span class="n"&gt;rev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rev&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="c1"&gt;// Remove the last digit from the number `n`&lt;/span&gt;
            &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;rev&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;dup&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, time to talk about the time and space complexity. I will leave it to you to come up with the answers!&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>beginners</category>
      <category>programming</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>Chainwhiz — A new bounty marketplace for Web3 projects</title>
      <dc:creator>Ashis Kumar Pradhan</dc:creator>
      <pubDate>Tue, 15 Feb 2022 18:42:03 +0000</pubDate>
      <link>https://dev.to/akp111/chainwhiz-a-new-bounty-marketplace-for-web3-projects-4df7</link>
      <guid>https://dev.to/akp111/chainwhiz-a-new-bounty-marketplace-for-web3-projects-4df7</guid>
      <description>&lt;p&gt;Want to work in Web3? Here’s a great place to start right away!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0m2mosa8h4frecs69ko.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0m2mosa8h4frecs69ko.jpeg" alt="Chainwhiz Image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Over the past decade, bounties have proven to be the fastest way for projects to scale without friction. Be it bug fixes or CSS changes in your website or an interesting feature update — projects can outsource these quickly using bounties and cut short the hassles of a long hiring process while freeing up more time for core tasks.&lt;/p&gt;

&lt;p&gt;The demand for talent is hitting the roof in Web3 and bounties provide a leeway to hire good talent, get work done without hampering the organizational flow. This is the fundamental reason why the bounties market is valued at &lt;strong&gt;223.1M USD&lt;/strong&gt; and is projected to grow at a &lt;strong&gt;CAGR of 54%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app.chainwhiz.app/" rel="noopener noreferrer"&gt;Chainwhiz&lt;/a&gt; is an open-source bounty marketplace that helps Web3 projects connect with independent developers and communities. If you’re a bounty hunter or are looking to do some freelancing gigs to earn a few extra bucks in crypto, &lt;a href="https://app.chainwhiz.app/" rel="noopener noreferrer"&gt;&lt;strong&gt;then you must check out the platform&lt;/strong&gt;&lt;/a&gt;. Using &lt;a href="https://app.chainwhiz.app/" rel="noopener noreferrer"&gt;Chainwhiz&lt;/a&gt;, developers like us can help projects fix bugs, implement interesting features, and issues faster with the help of our skills, and get paid in cryptocurrency.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgosuo0b9x8t1d3gyemjo.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgosuo0b9x8t1d3gyemjo.jpeg" alt="Coder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Having just launched last month, the competition on &lt;a href="https://app.chainwhiz.app/solve" rel="noopener noreferrer"&gt;bounties&lt;/a&gt; is significantly low compared to other established marketplaces like Gitcoin, Upwork, etc. This means this is a golden opportunity for everyone to contribute to the bounties and become early users of this platform. Contributing to bounties is much cheaper as Chainwhiz runs on the Polygon Mainnet, which allows for near to zero network fees. &lt;a href="https://app.chainwhiz.app/solve" rel="noopener noreferrer"&gt;&lt;strong&gt;Start solving bounties Now!&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Chainwhiz has also &lt;strong&gt;announced a pool of 50 MATIC&lt;/strong&gt; tokens to be shared among the developers who submit a solution to one or more of the bounties posted on their platform, presently. &lt;strong&gt;&lt;a href="https://app.chainwhiz.app/solve" rel="noopener noreferrer"&gt;Get Started Now!&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffzndbp30xoopmqx9reiv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffzndbp30xoopmqx9reiv.png" alt="Chainwhiz Tweet"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Chainwhiz introduces a new concept called solution voting. This helps projects posting bounties discover the best solutions faster than ever. Normally, when a project posts an open-source bounty on any marketplace, there are a lot of interested developers submitting solutions. Once the time for the bounty runs out, the project needs to inspect all the solutions and figure out the best ones. This is a time-consuming process and is not at all optimized for projects with limited teams and resources.&lt;/p&gt;

&lt;p&gt;Now, this problem is eradicated completely with the help of a system where community members on the platform can vote on solutions submitted to a bounty. Once the time runs out, the project posting the bounty has a list of solutions along with voting scores for each of them. The project’s job is 10x faster and easier. It can now easily identify the best ones of the lot using the scores as a reference. From hours to just minutes of work.&lt;/p&gt;

&lt;p&gt;The community receives incentives in the form of tokens for voting and participating in the solution validation process. &lt;strong&gt;&lt;a href="https://medium.com/articles-more-every-week/community-voting-defining-the-future-of-public-goods-6054fc2f81b5" rel="noopener noreferrer"&gt;Learn more about Community Voting&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi-chain&lt;/strong&gt; is a necessity for defining an interoperable and open web in the future. &lt;strong&gt;&lt;a href="https://app.chainwhiz.app/" rel="noopener noreferrer"&gt;Chainwhiz&lt;/a&gt;&lt;/strong&gt; aims to become the first bounty marketplace to support projects from all across the ecosystem. Be it a project from Solana, or a DAO from NEAR, every project can use Chainwhiz to post bounties in their native tokens without having to bridge or swap any tokens whatsoever.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Journey so far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Chainwhiz wins a bounty in the &lt;strong&gt;&lt;a href="https://hackfs.com/" rel="noopener noreferrer"&gt;EthGlobal HackFS&lt;/a&gt;&lt;/strong&gt; Hackathon&lt;/li&gt;
&lt;li&gt;Chainwhiz is awarded a grant from the &lt;strong&gt;&lt;a href="https://polygon.technology/]" rel="noopener noreferrer"&gt;Polygon Team&lt;/a&gt;&lt;/strong&gt; after launching the marketplace on Testnet&lt;/li&gt;
&lt;li&gt;Chainwhiz is awarded a grant from &lt;strong&gt;&lt;a href="https://near.org/" rel="noopener noreferrer"&gt;NEAR Protocol&lt;/a&gt;&lt;/strong&gt; to help the team build on the NEAR chain&lt;/li&gt;
&lt;li&gt;Chainwhiz announces a collaboration with open-source project &lt;strong&gt;&lt;a href="https://www.devprotocol.xyz/" rel="noopener noreferrer"&gt;Devprotocol&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Chainwhiz Platform launches on &lt;strong&gt;Polygon Mainnet&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://app.chainwhiz.app/solve" rel="noopener noreferrer"&gt;Bounties from Devprotocol&lt;/a&gt;&lt;/strong&gt; posted on the marketplace&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Useful Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.youtube.com/watch?v=LEEmFvCBqoc" rel="noopener noreferrer"&gt;How to use the Chainwhiz Platform&lt;/a&gt; and submit solutions to bounties&lt;/li&gt;
&lt;li&gt;&lt;a href="https://app.chainwhiz.app/" rel="noopener noreferrer"&gt;Visit the Chainwhiz Platform&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://akpradhan.notion.site/Polygon-mainnet-6e84dec8946949a1b15178d3323eb227" rel="noopener noreferrer"&gt;How to set up your Metamask Wallet to receive the rewards&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://hello.chainwhiz@gmail.com/" rel="noopener noreferrer"&gt;Drop-in an email&lt;/a&gt; to share anything about the platform&lt;/li&gt;
&lt;li&gt;&lt;a href="https://medium.com/articles-more-every-week/chainwhiz-smashes-the-benchmarks-of-project-building-with-a-grant-from-near-protocol-42322e39d005" rel="noopener noreferrer"&gt;Read about the NEAR Grant&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Join in the conversation!
&lt;/h2&gt;

&lt;p&gt;Want to join our community of projects and builders? Hop in one of Chainwhiz’s channels and say hi!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/chainwhiz" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; | &lt;a href="https://discord.gg/Pgq7zuXmwE" rel="noopener noreferrer"&gt;Discord&lt;/a&gt; | &lt;a href="https://chainwhiz.substack.com/" rel="noopener noreferrer"&gt;Newsletter&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
