๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
class GFG {


static int xorOfArray(int arr[], int n)
{

int xor_arr = 0;


for (int i = 0; i < n; i++) {


xor_arr = xor_arr ^ arr[i];
}


return xor_arr;
}


public static void main (String[] args)
{

int arr[] = { 3, 9, 12, 13, 15 };
int n = arr.length;


System.out.println(xorOfArray(arr, n));

}
}

XOR CODE
๐Ÿ‘1
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <unordered_map>
using namespace std;
char B[105];
int main(){
int n;
int ans=0;
scanf("%d", &n);
scanf("%s", B);
for(int i=2; B[i]; i++){
if(B[i-2] == '0' && B[i-1] == '1' && B[i] == '0') B[i] = '1', ans++;
}
printf("%d", ans);
return 0;
}

Beautiful string code
ArrayList<Integer> ar = new ArrayList<Integer>();
ArrayList<Integer> ar1 = new ArrayList<Integer>();
ArrayList<Integer> arr2= new ArrayList<Integer>();
ArrayList<Integer> sza= new ArrayList<Integer>();
ArrayList<Integer> p_n= new ArrayList<Integer>();

Scanner sc = new Scanner(System.in);

int a_size= sc.nextInt();
int m_size=sc.nextInt();
int[] a = new int[a_size];
for(int i=0;i<a_size;i++){
a[i]=sc.nextInt();
arr2.add(a[i]);
}
int[] p = new int[m_size];
for(int i=0;i<m_size;i++){
p[i]=sc.nextInt();
p_n.add(p[i]);
}
int[] sz=new int[m_size];
for(int i=0;i<m_size;i++){
sz[i]=sc.nextInt();
sza.add(sz[i]);
}

for(int i=0;i<a_size;i++)
{
for(int j=0;j<m_size;j++)
{
if(a[i]==p[j])
{
ar.add(p[j]);
}
}
}
int [] fr = new int [ar.size()];
int visited = -1;
for(int i = 0; i < ar.size(); i++){
int count = 1;
for(int j = i+1; j < ar.size(); j++){
if(ar.get(i).equals(ar.get(j))){
count++;
fr[j] = visited;
}
}
if(fr[i] != visited)
fr[i] = count;
}

for(int i = 0; i < fr.length; i++){
if(fr[i] != visited)
ar1.add(fr[i]);
}
ArrayList<Integer> pnew = new ArrayList<Integer>();
for(int l=0;l<sz.length;l++)
{
for(int h=0;h<sza.get(l);h++)
{
pnew.add(p_n.get(l));
}
}
int count=0;
for(int i = 0; i < pnew.size(); i++)
{
for(int j = i+1; j < pnew.size(); j++)
{
if(pnew.get(i).equals(pnew.get(j)))
{
count++;
}
}
}
System.out.println(count);
}
}


Sequences concatenation code
๐Ÿ‘1
๐Ÿ”” KPIT Technologies Off Campus Drive 2022 : Hiring for Freshers With 6 LPA

* Job Role : Trainee Engineer
* Qualification : B.E/B.Tech
* Experience : Freshers
* Salary : Rs 4-6 LPA

https://fresherearth.blogspot.com/2022/04/KPIT-Technologies-Off-Campus-Drive-2022-Hiring-for-Freshers-With-6-LPA.html

โœ… Share with your friends
๐Ÿ‘1
๐Ÿ”” Capgemini Exceller Off Campus Recruitment 2022 | Freshers | BE/B.Tech | M.Tech | MCA

* Education : B.E/B.Tech/M.E/M.Tech/MCA
* Branch : All Branches
* Batch : 2019, 2020, 2021
* CTC : 3 LPA To 4 LPA

https://fresherearth.blogspot.com/2022/04/Capgemini-Exceller-Off-Campus-Recruitment-2022-Freshers-BEB.Tech-M.Tech-MCA-Across-India.html

โœ… Share with your friends
๐Ÿ”” Bitwise Off Campus Drive Software Engineer Trainee 4 LPA

* Job Role : Software Engineer Trainee
* Education : BE, B.Tech
* CTC : 4 LPA

https://fresherearth.blogspot.com/2022/04/bitwise-off-campus-drive-4-lpa.html

โœ… Share with your friends
๐Ÿ‘1
INFOSYS IS HIRING | 2019/20/21/22 batch

๐Ÿ“† Last Date - 1st MAY 2022
System Engineer | ๐Ÿ’ฐ3.6LPA
Engg./MCA/MSc Apply Link

Operation Executive | ๐Ÿ’ฐ2.2LPA
Diploma Apply Link
BSc/BCA Apply Link
๐Ÿ‘1
class Player:
def init(self,name,team,price,skills,debut,country):
self.name=name
self.team=team
self.price=price
self.skills=skills
self.debut=debut
self.country=country
class IPL:
def init(self,playerList, dict):
self.dict=dict
self.playerList=playerList
def findMaximumPrice(self):
max_obj=max(self.playerList, key=lambda x:x.price)
return max_obj
def sortByPrice(self):
s=[]
s=sorted(self.teamList, key=lambda x:x.price)
s1=[]
for i in s:
s1.append(i.price)
if len(s1)==0:
return None
else:
return s1
if name =='main':
playerList=[]
dict={}
limit=int(input())
for j in range(limit):
name=input()
team=input()
price=float(input())
debut=input()
skills=input()
country=input()
playerList.append(Player(name,team,price,country,skills,debut))
obj=League("dict",playerList)
r1=obj.findMaximumPrice()
if(r1!=None):
print(r1.name)
print(r1.team)
print(r1.price)
print(r1.skills)
print(r1.debut)
print(r1.country)
else:
print("NO Data Found")
r2=obj.sortByPrice()
for i in r2:
print(i)

Python IRA โœ