CODING SOLUTION - Placement Jobs & Materials

Logo of telegram channel codingsolution_it — CODING SOLUTION - Placement Jobs & Materials
Topics from channel:
Job
Internship
Zerocost
Include
Include
Include
Include
Print
Include
Include
All tags
Logo of telegram channel codingsolution_it — CODING SOLUTION - Placement Jobs & Materials
Topics from channel:
Job
Internship
Zerocost
Include
Include
Include
Include
Print
Include
Include
All tags
Channel address: @codingsolution_it
Categories: Technologies
Language: English
Subscribers: 236.89K
Description from channel

🌀 ” Our Only Aim Is To Let Get Placed To You In A Reputed Company. “
Contact Admin:
Instagram.com/codingsolution_it/

Ratings & Reviews

4.00

3 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

2

4 stars

0

3 stars

0

2 stars

1

1 stars

0


The latest Messages 8

2022-10-09 18:11:21 def getLargestString(s, k):
    frequency_array = [0] * 26

    for i in range(len(s)):

        frequency_array[ord(s[i]) -
                        ord('a')] += 1
    ans = ""
    i = 25
    while i >= 0:
        if (frequency_array[i] > k):
            temp = k
            st = chr( i + ord('a'))
            
            while (temp > 0):
                ans += st
                temp -= 1
          
            frequency_array[i] -= k
            j = i - 1
            
            while (frequency_array[j] <= 0 and
                   j >= 0):
                j -= 1
            if (frequency_array[j] > 0 and
                j >= 0):
                str1 = chr(j + ord( 'a'))
                ans += str1
                frequency_array[j] -= 1
            
            else:
                break
        elif (frequency_array[i] > 0):
            temp = frequency_array[i]
            frequency_array[i] -= temp
            st = chr(i + ord('a'))
            while (temp > 0):
                ans += st
                temp -= 1
        else:
            i -= 1
            
    return ans          

if name == "main":
  
    S = input()
    k = 3
    print (getLargestString(S, k))


Python
Bob gave and alex code
Telegram - t.me/codingsolution_IT
12.9K views15:11
Open / Comment
2022-10-09 17:52:20
Java
Bike Running Code
Telegram - t.me/codingsolution_IT
11.4K views14:52
Open / Comment
2022-10-09 17:47:19
C++
Event Management Code
Telegram - t.me/codingsolution_IT
11.3K views14:47
Open / Comment
2022-10-09 17:46:14
Mr Rao Code
Telegram - t.me/codingsolution_IT
12.8K views14:46
Open / Comment
2022-10-09 17:43:36
C++
Piggy Bank Code
Telegram - t.me/codingsolution_IT
12.9K views14:43
Open / Comment
2022-10-09 09:22:44 TCS NQT EXAM SOLUTION GROUP:

telegram.me/codingsolution_IT

1) telegram.me/+V7_OuuZWqTAwZWZl

2) telegram.me/+wxfAMtYpHoMxZjNl

Share post in ur college Whatsapp grps.
4.2K views06:22
Open / Comment
2022-10-09 09:20:42
Python
Alice code
Telegram - t.me/codingsolution_IT
4.9K views06:20
Open / Comment
2022-10-09 09:16:18
C++
Telegram - t.me/codingsolution_IT
5.2K views06:16
Open / Comment
2022-10-09 09:14:44
Python (Write & Wait)
Chess Tournament code
Telegram - t.me/codingsolution_IT
4.5K views06:14
Open / Comment
2022-10-09 09:11:42
Java
Telegram - t.me/codingsolution_IT
4.6K views06:11
Open / Comment