Sort by

recency

|

1346 Discussions

|

  • + 1 comment

    Here is my c++ solution, you can watch the explanation here : https://youtu.be/SbHCdf_c7ss

    int viralAdvertising(int n) {
        int ans = 0, shared = 5;
        for(int i = 1; i <= n; i++){
            ans += shared / 2;
            shared = (shared/2)*3;
        }
        return ans;
    }  
    
  • + 0 comments

    Viral advertising is a marketing strategy designed to generate rapid and widespread awareness of a product, service, or idea through organic sharing among audiences. By leveraging the power of social media platforms, emails, or word-of-mouth communication, viral campaigns aim to captivate viewers with engaging, relatable, or emotionally compelling content that encourages them to share it with others. This method often relies on creative storytelling, humor, or unexpected twists to capture attention. Successful viral advertising not only boosts brand visibility but also fosters a sense of community among audiences, as they actively participate in spreading car wrap advertising the message. However, creating content that resonates broadly while aligning with brand values is crucial to ensure the campaign's positive impact.

  • + 0 comments

    Check this out via javascript

    const adSpam = (n) => {
        let cumulative = 0;
        let shared = 5;
        let liked = 0;
        for (let i = 1; i <= n; i++) {
            liked = Math.floor(shared / 2)
            shared = liked * 3
            cumulative += liked
        }
    
        return cumulative;
    }
    
    console.log(adSpam(3))
    
  • + 1 comment

    Viral advertising is such a fascinating topic! It’s amazing how creative campaigns can capture attention and spread like wildfire. Speaking of making things stand out, I recently tried Dog Grooming Thinning Shears, and they’ve been a total game-changer for keeping my pup’s coat looking fresh and fabulous. Sometimes, it's all about the right tools to make an impact, whether it’s in advertising or dog grooming!

  • + 0 comments

    here is my solution for java 8

    double acumulados = 0;
        int shared = 5;
        for (int dia =1; dia <=n; dia ++){
            
           double operacion = Math.floor(shared/2);
           acumulados = acumulados + operacion; 
           shared = (int)(operacion * 3);
                
            
        } return  (int)acumulados;