for (i = 0; i < n; i++){
          cnt = 1;
          for (j = i + 1; j < n; j++){
            if (array[i] == array[j]){
              cnt++;
              temp[j] = 0;
            }
          }
          if (temp[i] != 0){
            temp[i] = cnt;
          }
        }
      
      Apex language logo

      postma

      0

      0

      avatar
      Yatharth Garg

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.