title: Count Fibonacci Numbers Given Range Log Time
signature: def count_fibonacci_numbers_given_range_log_time(low, high):
source_py: def count_fibonacci_numbers_given_range_log_time(low, high):
      (f1, f2, f3) = (0, 1, 1)
      result = 0
      while (f1 <= high):
          if (f1 >= low):
              result += 1
          f1 = f2
          f2 = f3
          f3 = (f1 + f2)
      return result
source_cpp: int count_fibonacci_numbers_given_range_log_time(int low, int high) {
    int f1 = 0, f2 = 1, f3 = 1;
    int result = 0;
    while ( f1 <= high ) {
      if ( f1 >= low ) result ++;
      f1 = f2;
      f2 = f3;
      f3 = f1 + f2;
    }
    return result;
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(low, high, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              low, high),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(76, 43, 0)
      print(f"TEST-0...{result}")
  
      result = driver(96, 52, 0)
      print(f"TEST-1...{result}")
  
      result = driver(19, 79, 3)
      print(f"TEST-2...{result}")
  
      result = driver(36, 2, 0)
      print(f"TEST-3...{result}")
  
      result = driver(60, 11, 0)
      print(f"TEST-4...{result}")
  
      result = driver(20, 15, 0)
      print(f"TEST-5...{result}")
  
      result = driver(76, 4, 0)
      print(f"TEST-6...{result}")
  
      result = driver(63, 93, 1)
      print(f"TEST-7...{result}")
  
      result = driver(2, 25, 6)
      print(f"TEST-8...{result}")
  
      result = driver(41, 39, 0)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: count_fibonacci_numbers_given_range_log_time
question_info.test_list: [{"idx": 0, "outputs": 0, "inputs": {"low": 76, "high": 43}}, {"idx": 1, "outputs": 0, "inputs": {"low": 96, "high": 52}}, {"idx": 2, "outputs": 3, "inputs": {"low": 19, "high": 79}}, {"idx": 3, "outputs": 0, "inputs": {"low": 36, "high": 2}}, {"idx": 4, "outputs": 0, "inputs": {"low": 60, "high": 11}}, {"idx": 5, "outputs": 0, "inputs": {"low": 20, "high": 15}}, {"idx": 6, "outputs": 0, "inputs": {"low": 76, "high": 4}}, {"idx": 7, "outputs": 1, "inputs": {"low": 63, "high": 93}}, {"idx": 8, "outputs": 6, "inputs": {"low": 2, "high": 25}}, {"idx": 9, "outputs": 0, "inputs": {"low": 41, "high": 39}}]
question_info.entry_cls_name: Solution