title: How To Turn Off A Particular Bit In A Number
signature: class Solution {
  
      public Integer howToTurnOffAParticularBitInANumber(Integer n, Integer k) {
source_py: def how_to_turn_off_a_particular_bit_in_a_number(n, k):
      if (k <= 0):
          return n
      return (n & (~ (1 << (k - 1))))
source_cpp: int how_to_turn_off_a_particular_bit_in_a_number(int n, int k) {
    if ( k <= 0 ) return n;
    return ( n & ~ ( 1 << ( k - 1 ) ) );
  }
question_info.extension: java
question_info.entry_fn_name: howToTurnOffAParticularBitInANumber
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 49, "inputs": {"n": 49, "k": 15}}, {"idx": 1, "outputs": 59, "inputs": {"n": 59, "k": 69}}, {"idx": 2, "outputs": 76, "inputs": {"n": 76, "k": 20}}, {"idx": 3, "outputs": 27, "inputs": {"n": 27, "k": 76}}, {"idx": 4, "outputs": 61, "inputs": {"n": 61, "k": 60}}, {"idx": 5, "outputs": 67, "inputs": {"n": 67, "k": 27}}, {"idx": 6, "outputs": 63, "inputs": {"n": 63, "k": 71}}, {"idx": 7, "outputs": 85, "inputs": {"n": 85, "k": 25}}, {"idx": 8, "outputs": 90, "inputs": {"n": 90, "k": 64}}, {"idx": 9, "outputs": 24, "inputs": {"n": 24, "k": 55}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer n, Integer k, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n, k,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(49, 15, 49);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(59, 69, 59);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(76, 20, 76);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(27, 76, 27);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(61, 60, 61);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(67, 27, 67);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(63, 71, 63);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(85, 25, 85);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(90, 64, 90);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(24, 55, 24);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer n, Integer k, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n, k),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__