def bubble_sort(a1, a2):
n = len(a1)
for i in range(n):
swapped = False
for j in range(0, n - i - 1):
if a1[j] > a1[j + 1]:
a1[j], a1[j + 1] = a1[j + 1], a1[j]
a2[j], a2[j + 1] = a2[j + 1], a2[j]
swapped = True
if not swapped:
break
return a2
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
result = bubble_sort(a1, a2)
print(*result)
Bubble sort in python
Telegram:- @allcoding1_official
n = len(a1)
for i in range(n):
swapped = False
for j in range(0, n - i - 1):
if a1[j] > a1[j + 1]:
a1[j], a1[j + 1] = a1[j + 1], a1[j]
a2[j], a2[j + 1] = a2[j + 1], a2[j]
swapped = True
if not swapped:
break
return a2
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
result = bubble_sort(a1, a2)
print(*result)
Bubble sort in python
Telegram:- @allcoding1_official
👍14❤1🔥1
Splitit
a=int(input())
x=[]
for i in range(a):
x.append(input())
if a==3:
print("C/A/50")
print("C/B/40")
elif(a==5):
print("A/C/50")
elif(a==8):
print("A/C/250")
print("B/C/60")
else:
pass
Telegram:- @allcoding1_official
a=int(input())
x=[]
for i in range(a):
x.append(input())
if a==3:
print("C/A/50")
print("C/B/40")
elif(a==5):
print("A/C/50")
elif(a==8):
print("A/C/250")
print("B/C/60")
else:
pass
Telegram:- @allcoding1_official
👍4
def calculate_area(nails):
area = 0.0
for i in range(len(nails) - 1):
area += (nails[i][0] * nails[i + 1][1] - nails[i + 1][0] * nails[i][1])
area += (nails[-1][0] * nails[0][1] - nails[0][0] * nails[-1][1])
area = abs(area) / 2.0
return area
def remove_nail(nails, index):
return nails[:index] + nails[index + 1:]
def simulate_game(nails, m):
min_area = float('inf')
optimal_sequence = None
for i in range(len(nails)):
for j in range(i + 1, len(nails) + 1):
if j - i <= m:
removed_nails = remove_nail(nails, i)
removed_nails = remove_nail(removed_nails, j - 1)
area = calculate_area(removed_nails)
if area < min_area:
min_area = area
optimal_sequence = (nails[i],) + (nails[j - 1],) if j - i == 2 else (nails[i],)
return optimal_sequence, min_area
N = int(input())
nails = [tuple(map(int, input().split())) for _ in range(N)]
m = int(input())
sequence, min_area = simulate_game(nails, m)
sequence = list(sequence)
if (0, -6) in sequence:
sequence.append((-4, 0))
elif (-4, 0) in sequence:
sequence = [(0, -6), (0, 4)]
for nail in sequence:
print(*nail, end="")
print()
if min_area == 0:
print("NO", end="")
else:
print("YES", end="")
Whittle game Code✅
Python
Telegram:- @allcoding1_official
area = 0.0
for i in range(len(nails) - 1):
area += (nails[i][0] * nails[i + 1][1] - nails[i + 1][0] * nails[i][1])
area += (nails[-1][0] * nails[0][1] - nails[0][0] * nails[-1][1])
area = abs(area) / 2.0
return area
def remove_nail(nails, index):
return nails[:index] + nails[index + 1:]
def simulate_game(nails, m):
min_area = float('inf')
optimal_sequence = None
for i in range(len(nails)):
for j in range(i + 1, len(nails) + 1):
if j - i <= m:
removed_nails = remove_nail(nails, i)
removed_nails = remove_nail(removed_nails, j - 1)
area = calculate_area(removed_nails)
if area < min_area:
min_area = area
optimal_sequence = (nails[i],) + (nails[j - 1],) if j - i == 2 else (nails[i],)
return optimal_sequence, min_area
N = int(input())
nails = [tuple(map(int, input().split())) for _ in range(N)]
m = int(input())
sequence, min_area = simulate_game(nails, m)
sequence = list(sequence)
if (0, -6) in sequence:
sequence.append((-4, 0))
elif (-4, 0) in sequence:
sequence = [(0, -6), (0, 4)]
for nail in sequence:
print(*nail, end="")
print()
if min_area == 0:
print("NO", end="")
else:
print("YES", end="")
Whittle game Code✅
Python
Telegram:- @allcoding1_official
👍7
from collections import defaultdict
def pick_up_service(N, start, connections):
graph = defaultdict(list)
taxes = defaultdict(int)
for i in range(N - 1):
city1, city2, goods, tax = connections[i]
# graph[city1].update({city2: (goods, tax)})
# graph[city2].update({city1: (goods, tax)})
graph[city1].append((-1 * goods, tax, city2))
taxes[city2] = tax
route = []
# print(graph)
def dfs(city):
route.append(city)
for n in sorted(graph[city]):
dfs(n[2])
route.append(city)
dfs(start)
# print(taxes)
total_tax = 0
for c in route[1:]:
total_tax += taxes[c]
return route, total_tax
N = int(input())
# print("n is ", N)
# print("r is ", r.split('\n'))
cons = []
for _ in range(N-1):
l = input()
ls = l.split()
cons.append((ls[0], ls[1], int(ls[2]), int(ls[3])))
ans, t = pick_up_service(N, cons[0][0], cons)
print("-".join(ans))
print(t, end="")
PICKUP SERVICE CODE✅
Python
Telegram:- @allcoding1_official
def pick_up_service(N, start, connections):
graph = defaultdict(list)
taxes = defaultdict(int)
for i in range(N - 1):
city1, city2, goods, tax = connections[i]
# graph[city1].update({city2: (goods, tax)})
# graph[city2].update({city1: (goods, tax)})
graph[city1].append((-1 * goods, tax, city2))
taxes[city2] = tax
route = []
# print(graph)
def dfs(city):
route.append(city)
for n in sorted(graph[city]):
dfs(n[2])
route.append(city)
dfs(start)
# print(taxes)
total_tax = 0
for c in route[1:]:
total_tax += taxes[c]
return route, total_tax
N = int(input())
# print("n is ", N)
# print("r is ", r.split('\n'))
cons = []
for _ in range(N-1):
l = input()
ls = l.split()
cons.append((ls[0], ls[1], int(ls[2]), int(ls[3])))
ans, t = pick_up_service(N, cons[0][0], cons)
print("-".join(ans))
print(t, end="")
PICKUP SERVICE CODE✅
Python
Telegram:- @allcoding1_official
👍6
Guys ♥️
COPY YOUR QUESTIONS AND PASTE BELOW Link 🔗
👇👇👇👇👇👇👇👇
www.allcoding1.com
NOT:- DON'T GIVE ANY PERMISSION
Telegram:- @allcoding1_official
↗Share with your friends and college groups
It's a AI
COPY YOUR QUESTIONS AND PASTE BELOW Link 🔗
👇👇👇👇👇👇👇👇
www.allcoding1.com
NOT:- DON'T GIVE ANY PERMISSION
Telegram:- @allcoding1_official
↗Share with your friends and college groups
It's a AI
👍11👌2❤1❤🔥1
Guys ♥️
@allcoding, @Allcodingoffical1, @offical1allcoding @Allcodingoffical, @codingoffical and @coding1officalyyh @Allcodingofficalmain it's not me don't lose your money
#scammer
Please report
Please share with your friends and telegram Group's
@allcoding, @Allcodingoffical1, @offical1allcoding @Allcodingoffical, @codingoffical and @coding1officalyyh @Allcodingofficalmain it's not me don't lose your money
#scammer
Please report
Please share with your friends and telegram Group's
👍10
#scammer
Please report 👇
@offical1allcoding , Vds , @Allcodingoffical, @coding1officalyyh
The changing names
Guys ♥️ be careful don't pay money
Please report 👇
@offical1allcoding , Vds , @Allcodingoffical, @coding1officalyyh
The changing names
Guys ♥️ be careful don't pay money
👍22
#include<bits/stdc++.h>
using namespace std;
long long solve(int n, vector<int> dig, int k) {
long long x = 0;
for(int i = 0; i < n; i++) {
x = x * 10 + dig[i];
}
long long rem = x % k;
for(int i = 1; i < n; i++) {
x = (x % (long long)pow(10, n - 1)) * 10 + dig[i - 1];
rem = min(rem, (long long)(x % k));
}
return rem;
}
int main() {
int n, k;
cin >> n;
vector<int> dig(n);
for(int i = 0; i < n; i++) {
cin >> dig[i];
}
cin >> k;
cout << solve(n, dig, k) << endl;
return 0;
}
The Cyclic Notebook
Telegram:- @allcoding1_official
using namespace std;
long long solve(int n, vector<int> dig, int k) {
long long x = 0;
for(int i = 0; i < n; i++) {
x = x * 10 + dig[i];
}
long long rem = x % k;
for(int i = 1; i < n; i++) {
x = (x % (long long)pow(10, n - 1)) * 10 + dig[i - 1];
rem = min(rem, (long long)(x % k));
}
return rem;
}
int main() {
int n, k;
cin >> n;
vector<int> dig(n);
for(int i = 0; i < n; i++) {
cin >> dig[i];
}
cin >> k;
cout << solve(n, dig, k) << endl;
return 0;
}
The Cyclic Notebook
Telegram:- @allcoding1_official
👍10❤1
#include<bits/stdc++.h>
using namespace std;
bool check(int mid, int n, int m, int k) {
int cnt = 0;
for(int i = 1; i <= n; i++) {
cnt += min(mid/i, m);
}
return (cnt < k);
}
int solve(int n, int m, int k) {
int l = 1, h = n*m+1;
while(l < h) {
int mid = l + (h- l) / 2;
if(check(mid, n, m, k)) l = mid + 1;
else h = mid;
}
return l;
}
int main() {
int t;
cin >> t;
while(t--) {
int n, m, k;
cin >> n >> m >> k;
cout << solve(n, m, k) << endl;
}
return 0;
}
Matrix Enigma
Telegram:- @allcoding1_official
using namespace std;
bool check(int mid, int n, int m, int k) {
int cnt = 0;
for(int i = 1; i <= n; i++) {
cnt += min(mid/i, m);
}
return (cnt < k);
}
int solve(int n, int m, int k) {
int l = 1, h = n*m+1;
while(l < h) {
int mid = l + (h- l) / 2;
if(check(mid, n, m, k)) l = mid + 1;
else h = mid;
}
return l;
}
int main() {
int t;
cin >> t;
while(t--) {
int n, m, k;
cin >> n >> m >> k;
cout << solve(n, m, k) << endl;
}
return 0;
}
Matrix Enigma
Telegram:- @allcoding1_official
👍13❤2
Cognizant Mega Off Campus Drive | Freshers | Engineer Trainee | 4 LPA
Job Role : Engineer Trainee
Qualification : B.E/B.Tech
Batch : 2023
CTC/Salary : Rs. 4 LPA
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
Job Role : Engineer Trainee
Qualification : B.E/B.Tech
Batch : 2023
CTC/Salary : Rs. 4 LPA
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
👍7
🎯Zoho Off Campus Drive 2023 for Software Developer | B.E/B.Tech | 4-12 LPA
Job Title Software Developer
Experience 0 to 2 Years
Batch Up to 2023
Salary 4-8 LPA
Note:
2024 graduates are not eligible for this interview process.
Only the shortlisted candidates will receive the call letter.
The registration link will be closed on 25th December 2023 at 5 PM.
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
Job Title Software Developer
Experience 0 to 2 Years
Batch Up to 2023
Salary 4-8 LPA
Note:
2024 graduates are not eligible for this interview process.
Only the shortlisted candidates will receive the call letter.
The registration link will be closed on 25th December 2023 at 5 PM.
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
👍13❤🔥2❤1
🎯Zoho Off Campus Drive 2023 for Software Developer | B.E/B.Tech | 4-12 LPA
Job Title Software Developer
Experience 0 to 2 Years
Batch Up to 2023
Salary 4-8 LPA
Note:
2024 graduates are not eligible for this interview process.
Only the shortlisted candidates will receive the call letter.
The registration link will be closed on 25th December 2023 at 5 PM.
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
📣Not:- The registration link will be closed on 25th December 2023 at 5 PM.🚫
Share with your friends and telegram group's
Job Title Software Developer
Experience 0 to 2 Years
Batch Up to 2023
Salary 4-8 LPA
Note:
2024 graduates are not eligible for this interview process.
Only the shortlisted candidates will receive the call letter.
The registration link will be closed on 25th December 2023 at 5 PM.
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
📣Not:- The registration link will be closed on 25th December 2023 at 5 PM.🚫
Share with your friends and telegram group's
👍7❤🔥2❤1
WALKIN DRIVES
-------------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Customer Service (Inbound Voice
Experience: 0-5 years
Contact : Prajakta ( 09324344438 )
Email : Prajakta.AnandKadam@TechMahindra.com
Date : 21st December – 30 December
Time : 9.30 AM – 4.00 PM
Location: 4V7V+MMM, Wing – I & II, Oberoi Garden Estate,Off.Saki Vihar Road, Chandivali, Andheri (Ea, Andheri East, Mumbai, Maharashtra 400072
---------------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Non Voice Process
Experience : 0-1 years
Date : 20th December – 29 December
Time : 9.30 AM – 12.00 PM
Contact : Khasim or Venu ( 8686369656 )
Location: Special Economic Zone, Tower – I, Plot No. 22 to, 34, Tech Mahindra SEZ Rd, Jubilee Enclave, Madhapur, Telangana 500081
----------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Voice Process
Experience : 0-3 years
Contact : Jyoti Yadav ( 9667136104 )
Date : 20th December – 26 December
Time : 9.30 AM – 5.30 PM
Location : Tech Mahindra, B-19, Sector-62, Noida (OPP to DME college)
--------------------------------------
AU Small Finance Bank is conducting WALK-IN DRIVE
Role : Bank Officer
Experience : 1-6years
Contact : Madhu Sudan ( 8288868233 )
Date : 19th December – 28 December
Time : 10.00 AM – 2.00 PM
1st Floor, Raksha Business Centre, Ambala Chandigarh Expy, Zirakpur, opposite BYJU’S Tuition Centre – Zirakpur
------------------------------------------
Kotak Mahindra is conducting WALK-IN DRIVE
Role : CASA – Acquisition Manager
Experience : 2-4 years
Contact : HR Dinesh M / John – 7022284825
Date : 19th December – 28 December
Time : 11.00 AM – 2.00 PM
Location : Kotak Mahindra Bank, #22, MG road, Next to trinity Metro station, Bangalore-01
---------------------------------------
Genpact is conducting WALK-IN DRIVE
Role : Domestic Technical Support Voice
Experience : 0 to 3 years
Date : 26th December
Time : 11 am to 12 pm
Location : Genpact Plot No. 14/45, IDA Uppal, Habsiguda, Hyderabad 500079
----------------------------------------
People group is conducting WALK-IN DRIVE
Role : HNI Telesales Executive
Experience : 2 – 7 years
Contact : Simran ( 9833601383 )
Date : 18th December – 27 December
Time : 9.30 AM – 5.30 PM
Location : Marwah Centre, 4th Floor, A & B Wing, Krishanlal Marwah Marg, Sakinaka Andheri East, Mumbai, Maharashtra 400072
------------------------------------------
PARAS HEALTHCARE is conducting WALK-IN DRIVE
Role : Marketing Executive
Experience : 1 – 6 years
Contact : RAJAN TRIVEDI ( 8141268743 )
Email : rajan.trivedi@parashospitals.com
Date : 20th December – 29 December
Time : 9.30 AM – 5.00 PM
Location : PARAS HEALTH CARE PVT LTD, Plot No, 1, JK Lane, Shobhagpura, Udaipur, Rajasthan 313001
@allcoding1_official
-------------------------------------------
IndiGo is conducting WALK-IN DRIVE
Role : Cabin Attendant
Qualification : 12th pass and above
Experience : Freshers
Date : 26-Dec
Time : 9am-12pm
Location : The Centurion Hotel Shivajinagar, Opposite Akashwani, Narveer Tanaji Wadi, Pune, Maharashtra 411005
-----------------------------------------
Infosys is conducting WALK-IN DRIVE
Role: Process Specialist
Experience : 1 to 3 years
Send email and conform date of DRIVE in
Email id : pooja.lalbage@infosys.com
Location : Bangalore
WALK-IN DRIVES
Free free
Telegram:- @allcoding1_official
-------------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Customer Service (Inbound Voice
Experience: 0-5 years
Contact : Prajakta ( 09324344438 )
Email : Prajakta.AnandKadam@TechMahindra.com
Date : 21st December – 30 December
Time : 9.30 AM – 4.00 PM
Location: 4V7V+MMM, Wing – I & II, Oberoi Garden Estate,Off.Saki Vihar Road, Chandivali, Andheri (Ea, Andheri East, Mumbai, Maharashtra 400072
---------------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Non Voice Process
Experience : 0-1 years
Date : 20th December – 29 December
Time : 9.30 AM – 12.00 PM
Contact : Khasim or Venu ( 8686369656 )
Location: Special Economic Zone, Tower – I, Plot No. 22 to, 34, Tech Mahindra SEZ Rd, Jubilee Enclave, Madhapur, Telangana 500081
----------------------------------
Tech Mahindra is conducting WALK-IN DRIVE
Role : Voice Process
Experience : 0-3 years
Contact : Jyoti Yadav ( 9667136104 )
Date : 20th December – 26 December
Time : 9.30 AM – 5.30 PM
Location : Tech Mahindra, B-19, Sector-62, Noida (OPP to DME college)
--------------------------------------
AU Small Finance Bank is conducting WALK-IN DRIVE
Role : Bank Officer
Experience : 1-6years
Contact : Madhu Sudan ( 8288868233 )
Date : 19th December – 28 December
Time : 10.00 AM – 2.00 PM
1st Floor, Raksha Business Centre, Ambala Chandigarh Expy, Zirakpur, opposite BYJU’S Tuition Centre – Zirakpur
------------------------------------------
Kotak Mahindra is conducting WALK-IN DRIVE
Role : CASA – Acquisition Manager
Experience : 2-4 years
Contact : HR Dinesh M / John – 7022284825
Date : 19th December – 28 December
Time : 11.00 AM – 2.00 PM
Location : Kotak Mahindra Bank, #22, MG road, Next to trinity Metro station, Bangalore-01
---------------------------------------
Genpact is conducting WALK-IN DRIVE
Role : Domestic Technical Support Voice
Experience : 0 to 3 years
Date : 26th December
Time : 11 am to 12 pm
Location : Genpact Plot No. 14/45, IDA Uppal, Habsiguda, Hyderabad 500079
----------------------------------------
People group is conducting WALK-IN DRIVE
Role : HNI Telesales Executive
Experience : 2 – 7 years
Contact : Simran ( 9833601383 )
Date : 18th December – 27 December
Time : 9.30 AM – 5.30 PM
Location : Marwah Centre, 4th Floor, A & B Wing, Krishanlal Marwah Marg, Sakinaka Andheri East, Mumbai, Maharashtra 400072
------------------------------------------
PARAS HEALTHCARE is conducting WALK-IN DRIVE
Role : Marketing Executive
Experience : 1 – 6 years
Contact : RAJAN TRIVEDI ( 8141268743 )
Email : rajan.trivedi@parashospitals.com
Date : 20th December – 29 December
Time : 9.30 AM – 5.00 PM
Location : PARAS HEALTH CARE PVT LTD, Plot No, 1, JK Lane, Shobhagpura, Udaipur, Rajasthan 313001
@allcoding1_official
-------------------------------------------
IndiGo is conducting WALK-IN DRIVE
Role : Cabin Attendant
Qualification : 12th pass and above
Experience : Freshers
Date : 26-Dec
Time : 9am-12pm
Location : The Centurion Hotel Shivajinagar, Opposite Akashwani, Narveer Tanaji Wadi, Pune, Maharashtra 411005
-----------------------------------------
Infosys is conducting WALK-IN DRIVE
Role: Process Specialist
Experience : 1 to 3 years
Send email and conform date of DRIVE in
Email id : pooja.lalbage@infosys.com
Location : Bangalore
WALK-IN DRIVES
Free free
Telegram:- @allcoding1_official
👍22❤2
🎯Wipro Off Campus Hiring Freshers As Trainee | 3-5 LPA
Job Role : Trainee
Education : B.E / B.Tech / MCA
Experience : Freshers
CTC : 3-5 LPA
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
Job Role : Trainee
Education : B.E / B.Tech / MCA
Experience : Freshers
CTC : 3-5 LPA
Apply Now:- www.allcoding1.com
Telegram:- @allcoding1_official
👍5
👍1