Find Transition Point using C++ | Amazon Interview Question
Вставка
- Опубліковано 14 жов 2024
- 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.geeksforge...
#google #gfg #code #coding #placement #college #amazon #interviewquestions #dataanalytics #engineering #cpp #python #java #facebook #meta #ai
"Promosm" 🤦