#238

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

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

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

    can you made a separate video for this type of competitive programming concept ( like 1LL , 1e9+7 , ......)

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

    pls could u help me in java code .. some test cases are failing ...
    class Solution {
    int Maximize(int arr[]) {
    Arrays.sort(arr);
    long ans=0;
    for(int i=0;i

    • @maskedcoder-dy1ub
      @maskedcoder-dy1ub  2 месяца назад +1

      In mod value ig one zero is less

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

      @@maskedcoder-dy1ub tq so muchhhh .. it was a silly mistakee

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

    i have a doubt why have you used 1LL?

    • @maskedcoder-dy1ub
      @maskedcoder-dy1ub  2 месяца назад +1

      To convert right hand side into long long to avoid overflowing

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

      @@maskedcoder-dy1ub can you made a separate video for this type of competitive programming concept

    • @AthrvChattopadhyay-mu8oh
      @AthrvChattopadhyay-mu8oh 2 месяца назад

      yeah i also felt that plz make a seprate video.