[Slot 1 - 9th Aug 2024] Accenture Today Actual Coding Question Discussed | Accenture Assessment Test

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

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

  • @CodeBashers
    @CodeBashers  2 месяца назад +2

    ✅✅Join Our Telegram Group for Accenture 2025 Batch Discussion : t.me/placement_batch_2025
    ✅✅Important IT Interview Subject Notes: topmate.io/code_bashers/1026390

  • @rohithm5155
    @rohithm5155 2 месяца назад +12

    return max(arr)💀

  • @marathi_vishwa
    @marathi_vishwa 2 месяца назад +1

    It can be solved using largest element or simply sorting array

  • @samarthbhabak2315
    @samarthbhabak2315 2 месяца назад +2

    sir can we do like this
    def get_peek(nums):
    a,b=0,1
    while b nums[b]:
    return nums[a]
    break
    else:
    a+=1
    b+=1

    • @supercellburner8779
      @supercellburner8779 2 месяца назад +1

      This might be simple
      def peak(n,arr):
      for i in range(len(arr)-1):
      if arr[i]>arr[i+1]:
      print(arr[i])
      break

  • @4053_SaihiteshKumarSangisetty
    @4053_SaihiteshKumarSangisetty 2 месяца назад +4

    Can we solve this by largest element ..?

  • @subhambhattacharjee8260
    @subhambhattacharjee8260 23 дня назад

    Sir how many questions do we need to solve in Accenture coding assessment

  • @HARSHA-k3h
    @HARSHA-k3h 2 месяца назад +1

    yes

  • @mashapoguajay3322
    @mashapoguajay3322 2 месяца назад +5

    2 questions 😂are very easy ig no need of preparation

  • @engineers_cake
    @engineers_cake 2 месяца назад

    Mera 9 August 2024 m exam tha ..or mera cognitive assessment clear b ho gya .... Pr coding round k liye login hi nahi hua ...
    M kya karun ab... please help me

  • @Santanu-v4u
    @Santanu-v4u 2 месяца назад +1

    00:03 Discussing coding questions from 9th August Accenture Assessment Test slot 1
    02:01 Identifying the peak element in ascending-descending arrays
    03:52 Identifying peak elements in ascending and descending arrays
    05:42 Identifying peak element in array based on surrounding elements
    07:31 Identifying peak element in an array with ascending order
    09:16 Discussed logic for identifying the peak element in an array
    11:00 The peak of the array is discussed with ascending and descending arrays.
    12:52 Repetition coding question strategy
    Crafted by Merlin AI.

  • @yaswanth........3721
    @yaswanth........3721 2 месяца назад

    Please tell other programming languages like java

  • @dali-rannabanna
    @dali-rannabanna 2 месяца назад +20

    This can be simply done by finding the largest element . Isn't it?

    • @viswadeepreddy8347
      @viswadeepreddy8347 2 месяца назад +2

      even I got this idea..

    • @viswadeepreddy8347
      @viswadeepreddy8347 2 месяца назад

      @Devaratha6823 we should go less than bigO(n)

    • @yashodeeppatil9645
      @yashodeeppatil9645 2 месяца назад

      exactly

    • @Abhi53268
      @Abhi53268 2 месяца назад +4


      ​@Devaratha6823but sir give the solution it's also take O(n) complexity ,u may say that at some time edge case reduce the complexity but the overall is O(n)

    • @yereneager
      @yereneager 2 месяца назад

      ​@Devaratha6823just use binary search tc will reduce to Logn

  • @manasreddyvenkat1574
    @manasreddyvenkat1574 2 месяца назад

    What if we max of the list
    max[1,2,3,4,3,2,1]

  • @androiddev884
    @androiddev884 2 месяца назад +4

    Binary search

  • @shrushti5795
    @shrushti5795 2 месяца назад +1

    Please tell me if we have to write the code from scratch or just write the function in coding round ? Pls clarify I am confused because on some sites they are saying that you have to write from scratch..

    • @CodeBashers
      @CodeBashers  2 месяца назад +2

      Just implement the function

  • @Shantisingh-tz5sr
    @Shantisingh-tz5sr 2 месяца назад +3

    #include
    using namespace std;
    int peakaddress(int arr[],int n){
    int temp=arr[0];
    for(int i=1;itemp){
    temp=arr[i];
    }
    }
    return temp;
    }
    int main(){
    int n;
    cin>>n;
    int arr[n];
    for(int i=0;i>arr[i];
    }
    cout

    • @OptimusKika
      @OptimusKika 2 месяца назад

      What if there are only two values in an array then peak doesn't form right

  • @aishithedutta
    @aishithedutta 2 месяца назад

    return *max_element(arr,arr+n);

  • @VamsiDevendrakumar__
    @VamsiDevendrakumar__ 2 месяца назад +1

    Hi, can you please reply?
    Can I use Python built-in methods in the Accenture exam? Are built-in methods allowed?
    Example : reverse(), find(), index() ect.....

  • @71_debduttaburman99
    @71_debduttaburman99 2 месяца назад

    We can use BS in this question

    • @Enam0607
      @Enam0607 2 месяца назад

      But BS uses for finding index of specific element.how will you use it here.

  • @mashapoguajay3322
    @mashapoguajay3322 2 месяца назад

    This is on campus exam or off

  • @venkatasai5285
    @venkatasai5285 2 месяца назад +1

    Send more videos

    • @CodeBashers
      @CodeBashers  2 месяца назад +2

      Uploading in few minutes 🙂

  • @yadvendra_shukla
    @yadvendra_shukla 2 месяца назад +1

    Ye to bahut easy hai

    • @CodeBashers
      @CodeBashers  2 месяца назад +1

      Yes bro , totally depends on slot

  • @sourajitakar840
    @sourajitakar840 2 месяца назад +6

    we can actually do it by many ways but what if we just do Arrays.sort(arr) return arr[arr.length-1]; 😂😂

    • @SahilVanarse-n4x
      @SahilVanarse-n4x 2 месяца назад

      No we can't do like that...tc will be O(nlogn)...we can do it in Binary search for tc will be logn

    • @sourajitakar840
      @sourajitakar840 2 месяца назад +2

      @@SahilVanarse-n4x ofc I do know!! I am just saying that it can be solved in simple 2 lines 😂

    • @Shantisingh-tz5sr
      @Shantisingh-tz5sr 2 месяца назад

      @@sourajitakar840 Apply Upper_Bound Theory in Binary Search

    • @AbhaySingh-uq7lx
      @AbhaySingh-uq7lx 2 месяца назад

      it can be also solved by using max function

    • @sourajitakar840
      @sourajitakar840 2 месяца назад

      @@AbhaySingh-uq7lx much better😂😂

  • @itsme2601
    @itsme2601 2 месяца назад +2

    is it on campus questions

    • @CodeBashers
      @CodeBashers  2 месяца назад +1

      No off campus

    • @sonamsingh7284
      @sonamsingh7284 2 месяца назад

      ​@@CodeBashers is Accenture hiring for 2025 batch through off campus?.....if not then when will it most likely to start off campus hiring?

    • @CodeBashers
      @CodeBashers  2 месяца назад

      @@sonamsingh7284 no , oncampus.24 batch off campus

  • @konariyuvaraju2312
    @konariyuvaraju2312 2 месяца назад +1

    Is it real

  • @supercellburner8779
    @supercellburner8779 2 месяца назад

    *This might be helpful for those who are searching for this question in python.*
    def peak(n,arr):
    for i in range(len(arr)-1):
    if arr[i]>arr[i+1]:
    print(arr[i])
    break

  • @4053_SaihiteshKumarSangisetty
    @4053_SaihiteshKumarSangisetty 2 месяца назад +1

    Can we solve this by largest element ..?