Sort by

recency

|

140 Discussions

|

  • + 0 comments

    This challenge is a great way to practice handling flexible arguments and improve problem-solving skill. Khiladi adda

  • + 0 comments
    template<bool...bits>
    int reversed_binary_value(){
        
        bool binary[] = {bits...};
        int dec = 0, base = 1;
        
        for(bool bit : binary){
            dec += bit*base;
            base*=2;
        }
        
        return dec;
    }
    
  • + 0 comments

    template int reversed_binary_value() { vector v {binary...}; int size = v.size(); int sum{}; for(int i=0; i

  • + 0 comments

    Here is C++ Variadics problem solution - https://programmingoneonone.com/hackerrank-cpp-variadics-solution.html

  • + 0 comments

    Hours later, I still can understand how reversed_binary_value() function contributes towards getting the desired string output!!!!

    I wonder if the author also understands what he wrote as a challenge.