CODING SOLUTIONS | IBM | AMAZON CODING SOLUTIONS
Открыть в Telegram
8 815
Подписчики
Нет данных24 часа
-207 дней
-11730 дней
Архив постов
🛑5th, 6th September
🟪ACCENTURE all slot Available
🟦 IBM
💯% clearance✅✅
⭕Anyone have ACCENTURE contact : @Jackson_437 to book slot
Note : paid
⭕ Accenture 2PM slot Done ✅ Successfully💯 😍✅
@Jackson_437
Share✅ @coding_solutions_all
for upcoming slots contact @Jackson_437 to book your slot
SOTI Exam all codes uploaded join👇👇👇❤🔥
https://t.me/Accenture_Exam_answers
🛑5th, 6th September ACCENTURE all slot Available
💯% clearance✅✅
⭕Anyone have ACCENTURE contact : @tcs_rolex to book slot
⭕ Accenture Morning slot Done ✅ Successfully💯 😍✅
@tcs_rolex
Share✅ @coding_solutions_all
⭕5th, 6th September ACCENTURE all slot Available
💯% clearance✅✅
⭕Anyone have ACCENTURE contact : @tcs_rolex to book slot
For remaining codes join 👇👇
✅Accenture Discussion group 👇👇👇
https://t.me/Accenture_Exam_answers
https://t.me/Accenture_Exam_answers
https://t.me/Accenture_Exam_answers
SOTI Exam Done✅ successfully💯 😍✅✅
@tcs_rolex
✅ @coding_solutions_all
C++17
Bingo Code
@tcs_rolex
Share✅ @coding_solutions_all
#include <stdio.h>
void alphabet_Z_Pattern(int N)
{
int index, side_index, size;
int Top = 1, Bottom = 1, Diagonal = N - 1;
for (index = 0; index < N; index++)
printf("%d ", Top++);
printf("\n");
for (index = 1; index < N - 1; index++) {
for (side_index = 0; side_index < 2 * (N - index - 1);
side_index++)
printf(" ");
printf("%d", Diagonal--);
printf("\n");
}
for (index = 0; index < N; index++)
printf("%d ", Bottom++);
}
int main()
{
int N = 5;
alphabet_Z_Pattern(N);
return 0;
}
C language
@tcs_rolex
@coding_solutions_all
def minSwaps(arr):
n = len(arr)
arrpos = [*enumerate(arr)]
arrpos.sort(key = lambda it : it[1])
vis = {k : False for k in range(n)}
ans = 0
for i in range(n):
if vis[i] or arrpos[i][0] == i:
continue
cycle_size = 0
j = i
while not vis[j]:
vis[j] = True
j = arrpos[j][0]
cycle_size += 1
if cycle_size > 0:
ans += (cycle_size - 1)
return ans+4
n=int(input())
arr = list(map(int,input().strip().split()))[:n]
k=int(input())
print(minSwaps(arr))
minimum swap to rotate
Python ✅
