8 113
Subscribers
No data24 hours
No data7 days
-3830 days
Posts Archive
8 113
def A(s):
return s[::-1]
def B(s):
return ''.join(random.sample(s,len(s)))
def C(s, t):
l1 = list(s)
l2 = list(t)
l3 = [ ]
while l1 and l2:
if random.random()<0.5:
l3.append(l1.pop(0))
else:
l3.append(l2.pop(0))
l3.extend(l1)
l3.extend(l2)
return ''.join(l3)
def solve(m):
m = m[2:-2]
s, t = m.split(',')
if s==t:
return s
S = A(s)
t = B(t)
n = ''
while C(s, t)!=m:
n += random.choice('abcdefghijklmnopqrstuvwxyz')
Python
Telegram:- @Infosys_Ans
8 113
given an array A of size N.
You are allowed to choose at most one pair of elements such that distance (defined as the difference of their indices) is at most K and swap them.
Find the smallest lexicographical array possible after
Notes:
An array x is lexicographically smaller than an array y if there exists an index i such that xi A[j]) {
swap(A[i], A[j]);
swapped = true;
break;
}
}
if (swapped) break;
}
if (!swapped) return A;
else return A;
C++✅
Infosys
8 113
You are given Q queries, Each query contains a number N=Quer[i] denoting the ith query.
You have to find M such that:
1 <= M <= N
M|M+1|....| N is as maximum as possible where | is the OR bitwise operation.
M is as maximum as possible.
The answer to this query is the value of M.
Find the sum of answers to all queries modulo 109+7
Note:
A bitwise OR is a binary operation that takes two-bit patterns of equal length and performs the logical inclusive OR operation on each pair of corresponding bits. The result in each position is 0 if both bits are 0, while otherwise, the result is 1.
For example, 0101 (decimal 5) OR 0011 (decimal 3) =0111(decimal 7 )
Input formate:
The first line contains an integer, Q, denoting the number of elements in quer
Each line i of the Q subsequent lines (where 0 <= 1 < Q ) contains an integer describing Quer[i]
const int mod = 1e9 + 7;
int f(int N) {
return (1 << (bitset<32>(N).count() - 1)) - 1;
}
int solve(int Q,vectorQuer)
{
int ans = 0;
for(int i=0;i
8 113
Infosys exam coding Ans
http://www.joboffersadda.com/2022/01/infosys-exam-answer.html
http://www.joboffersadda.com/2022/01/infosys-exam-answer.html
Allcoding Ans are available
Telegram:- @Infosys_Ans
8 113
Zoho Off Campus Drive | Software Developers | Freshers | Chennai | 4-5 LPA
Job Title Software Developers
Qualification B.E/B.Tech
Batch Any Graduates
Job Location Chennai
Salary 4-5 LPA
Apply Now:- http://www.joboffersadda.com
Telegram:- @Infosys_Ans
8 113
🎯Bentley Systems Recruitment 2023 | Software Engineer 1 | BE/B.Tech/M.Tech | 6 To 8 LPA
Job Role Software Engineer 1
Qualification BE/B.Tech/M.Tech/MCA or Related
Batch 2023/2022/2021 or Any
Job Location Pune
Package : 6 To 8 LPA Glassdoor
Apply Now:- http://www.joboffersadda.com
Telegram:- @TCS_Ans
8 113
🎯TCS NQT Registration 2023 | TCS Off Campus Drive 2023 For Freshers
Test National Qualifier Test (NQT)
Qualification B.E/B.Tech/Any Degree/Diploma
Batch Any Batch Passouts (2018/2019/2020/2021/2022/2023 )
Salary upto 19 LPA
Apply Now:- http://www.joboffersadda.com
Telegram:- @Infosys_Ans
8 113
🎯Cognizant is hiring for Trainee – Junior Data Analyst – Graduate/ Post Graduate
Job Position: Junior Data Analyst – Trainee
Qualifications: Any Graduate/ Post Graduate
Salary: 4.8 LPA (Expected)
Batch: Any Batch
Experience: 0 – 5 (Years)
Location: Tamil Nadu, India
Apply Now:- http://www.joboffersadda.com
Telegram:- @Infosys_Ans
8 113
🎯 Infosys Off Campus Drive For Fresher For SP&DSE | 9.5 LPA
Infosys Recruitment 2023 Details :
Job Title SP&DSE
Qualification BE/B.Tech/ME/M.Tech/MCA/MSc
Batch 2020/2021/2022
Salary 9.5 LPA
Apply Now:- http://www.joboffersadda.com
Telegram:- @Infosys_Ans
8 113
🎯Infosys Hiring Junior Accountant
Name of Post Junior Accountant
No Of Post Not Mentioned
Who Can Apply ? B.Com/BBA/M.Com/MBA
Which Batch Students Eligible 2022 Batch
Job Location Bengaluru
Salary Rs 4.5 LPA – Rs 12 LPA ( Depends on Interview )
Application Mode Online
Last Date To Apply Not Mentioned
Apply Now:- http://www.allcoding1.com
Telegram:- @Infosys_Ans
8 113
🎯Sutherland Off Campus Drive | For Software Engineer
Degree: BSC, BCA, BE, B Tech, MCA
Batch: 2018, 2019, 2020, 2021, 2022 & 2023
CTC - ₹ 4.5 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @Infosys_Ans
