Sort by

recency

|

1388 Discussions

|

  • + 0 comments
    likes = share = 2
    
        for i in range(2, n+1):
            share = (share * 3)//2
            likes += share
        return likes
    
  • + 0 comments

    Viral advertising is a powerful digital marketing strategy that focuses on creating engaging, shareable content that spreads rapidly across social media and other online platforms. The goal is to capture the audience’s attention through creativity, emotion, or humor, encouraging them to share the content die-cut swing tags for clothing voluntarily with friends and followers. This organic sharing effect helps brands achieve massive reach and visibility without heavy spending on traditional advertising.

  • + 0 comments

    C++

    int viralAdvertising(int n) {
        stack<int> st;
        st.push(0);
        int tmp = 5;
        int t = 0;
        for (int i = 1; i <= n; i++) {
            t = floor(tmp / 2) + st.top();
            tmp = floor(tmp / 2) * 3;
            st.push(t);
        }
    
        return t;
    }
    
  • + 1 comment

    The Viral Advertising challenge reminds me of NGO finance management: one donor inspires many, donations multiply, and NGOs must track restricted vs unrestricted funds, nonprofit accounting, and charity compliance. Transparency, donor reporting, and even Gift Aid accounting follow similar growth models. At NGO Finance Hub we explore smarter ways to manage this. How would you design an algorithm to model viral reach + NGO funds?

  • + 0 comments
    java8********

    public static int viralAdvertising(int n) { // Write your code here int a = 0; int b = 5; for(int i = 1; i <= n; i++ ){ int liked = b /2; a += liked; b = liked * 3; } return a;

    }