title: Decimal Binary Conversion Without Using Arithmetic Operators
signature: decimalBinaryConversionWithoutUsingArithmeticOperators(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(String actual, String expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(n, String expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          35, 
          "100011")
      }");
  
      print("TEST-1...${driver(
          17, 
          "10001")
      }");
  
      print("TEST-2...${driver(
          8, 
          "1000")
      }");
  
      print("TEST-3...${driver(
          99, 
          "1100011")
      }");
  
      print("TEST-4...${driver(
          57, 
          "111001")
      }");
  
      print("TEST-5...${driver(
          39, 
          "100111")
      }");
  
      print("TEST-6...${driver(
          99, 
          "1100011")
      }");
  
      print("TEST-7...${driver(
          14, 
          "1110")
      }");
  
      print("TEST-8...${driver(
          22, 
          "10110")
      }");
  
      print("TEST-9...${driver(
          7, 
          "111")
      }");
  
      return 0;
  }
source_py: def decimal_binary_conversion_without_using_arithmetic_operators(n):
      if (n == 0):
          return '0'
      bin = ''
      while (n > 0):
          if ((n & 1) == 0):
              bin = ('0' + bin)
          else:
              bin = ('1' + bin)
          n = (n >> 1)
      return bin
source_cpp: string decimal_binary_conversion_without_using_arithmetic_operators(int n) {
    if ( n == 0 ) return "0";
    string bin = "";
    while ( n > 0 ) {
      bin = ( ( n & 1 ) == 0 ? '0' : '1' ) + bin;
      n >>= 1;
    }
    return bin;
  }