LeetCode, CodeChef for Blockchain (Solidity)
Tags: solidity, programming, excercise, blockchain
Published: 2023-02-13 07:57:43

Want to solve competitive problems in blockchain (solidity) ?

Are you a competitive programmer? and solved many problem statements from platforms like leetcode, chedchef and recently started with solidity in the blockchain.

If you are looking for competitive problem statements, I have just the perfect platform for you!

## Competitive programming for blockchain
**The Platform**
The [DApp World Assessments](https://dapp-world.com/assessments) is where you can practice the solidity problem statements.

Just visit the website and register to create the account. Pick any problem statement for example there are many problem statements -

- [Storage Smart Contract](https://dapp-world.com/assessment/storage-smart-contract-udht/problem)
- [Calculate greatest](https://dapp-world.com/assessment/math-calculate-greatest-uiop/problem)
- [Calculate factorial](https://dapp-world.com/assessment/math-calculate-factorial-tvfh/problem)
- [Compare strings](https://dapp-world.com/assessment/compare-strings-vbnm/problem)
- etc
Let’s pick the Storage Smart Contract.

Click on the Solve Challenge button. Then click on the Start Assessment button.

Now you will be presented with the following screen -

**The Problem**
Now let’s discuss the points here


![The coding environment](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i2fo0699v1wwaco1hytc.png)

**1. The problem statement:** Here, you’ll get a complete idea of what you’re going to solve with objective and task.

**2. The code editor:** You have to write your answer in this code editor.

**3. Compile:** It’s always good to compile the code before submitting the answer to check if there are any syntax or compilation errors in the code.

**4. Submit:** Once you are confident on your answer you can submit the code.

**5. Report:** If you have any problem regarding the execution process or anything else you can report the error to the team from here.

Now let’s write the answer and submit the code.

**The Result**

![The score or answer results](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esuzq3yb6p3i6mhgqlsf.png)
Once you have submitted the answer you will get the complete result like this.

Here you can see we have 4 tabs, output, compile, deploy, and testcases. The complete score is breakdown in 3 parts the compile score + deploy score + testcases score.



Here the testcases are the details. Here you’ll get a detailed analysis of your answer. You can check what went wrong and correct it for the next attempt.

**The Leaderboard**

![dapp world assessments leaderboard description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cm7ts6ves02tqcr7tui5.png)

In the leaderboard tab, you can check where you stand in the competition. The position is calculated with respect to the number of attempts, the total score, and the total gas used. If you want to top the leaderboard then you must have a higher score with fewer attempts and less gas used.

If you have any suggestions or exciting problem statements, you can write to us at contact@dapp-world.com

Thank you.