Find Transition Point using C++ | Amazon Interview Question

Поделиться
HTML-код
  • Опубликовано: 24 дек 2023
  • Question :-
    Given a sorted array containing only 0s and 1s, find the transition point, i.e., the first index where 1 was observed, and before that, only 0 was observed.
    Example :-
    Input:
    N = 5
    arr[] = {0,0,0,1,1}
    Output: 3
    Explanation: index 3 is the transition
    point where 1 begins.
    Link for question :-
    www.geeksforgeeks.org/problem...
    #google #gfg #code #coding #placement #college #amazon #interviewquestions #dataanalytics #engineering #cpp #python #java #facebook #meta #ai

Комментарии • 1