Skip to content
View AmarRich's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report AmarRich

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
AmarRich/README.md
  • 👋 Hi, I’m @AmarRich
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

class Solution { public: int numSquares(int n) { vector dp(n+1); dp[0]=0,dp[1]=1; for (int i=2;i<=n;i++){ int m=INT_MAX; for(int j=1;jj<=i;j++){ int rem=i-jj; m=min(m,dp[rem]); } dp[i]=m+1;// +1 previous } return dp[n]; } };

Popular repositories Loading

  1. AmarRich AmarRich Public

    Config files for my GitHub profile.

  2. Countries-in-react Countries-in-react Public

  3. Learning-Git Learning-Git Public

    HTML

  4. portfolio portfolio Public

    Forked from anuragsinghbam/anuragsinghbam

    HTML

  5. react react Public

    Forked from facebook/react

    The library for web and native user interfaces.

    JavaScript

  6. node_hotels node_hotels Public

    Hotel data

    JavaScript