๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.65K subscribers
5.61K photos
3 videos
95 files
10.7K 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
Siemens coding answer

#include<stdio.h>
#include<string.h>
#include<map>
#include<algorithm>
#define ll long long
using namespace std;
map<ll,ll>mp[30][30];
int n,m,t;
ll k,num[30][30],ans;
// double-ended dfs, one from (1,1) to (i,j) and i+j==max(n,m)

void dfs1(int x,int y,ll tt)
{
if(x+y==t)
{
Mp[x][y][tt]++; //Use the map to record the number of tt when searching for points (y, x)
return ;
}
if(x+1<=n)
dfs1(x+1,y,tt^num[x+1][y]);
if(y+1<=m)
dfs1(x,y+1,tt^num[x][y+1]);
}
// second from (n,m) to (i,j) and (i+j)==max(n,m)+1
void dfs2(int x,int y,ll tt)
{
if(x+y==t+1)
{
if(x-1>=1)
ans+=mp[x-1][y][tt^k];
if(y-1>=1)
ans+=mp[x][y-1][tt^k];
return ;
}
if(x-1>=1)
dfs2(x-1,y,tt^num[x-1][y]);
if(y-1>=1)
dfs2(x,y-1,tt^num[x][y-1]);
}
int main()
{
while(~scanf("%d%d%lld",&n,&m,&k))
{
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
mp[i][j].clear();
scanf("%lld",&num[i][j]);
}
}
ans=0;
t=max(n,m);
if(1+1<=t)
{
dfs1(1,1,num[1][1]);
dfs2(n,m,num[n][m]);
}
else
{
if(num[1][1]==k)
ans++;
}
printf("%lld\n",ans);
}
}

XoR paths





int solve (int n, int m, vector<int> v) {
long long l = 1, r = *max_element(v.begin(), v.end()), mid, cnt;
while(l<r){
mid = (l+r)/2;
cnt = 0;
for(auto& i: v) cnt += ceil(1.0*i/mid);
if(cnt>n) l = mid+1;
else r = mid;
}
return l;
}

Seimens vaccination distribution code
๐Ÿ”” Capgemini Engineering Off Campus Drive 2021 | Freshers | Across India

* Job Role : Network Engineer Trainee
* Qualification : B.Tech/B.E./BCA/MCA/BSc/MSc
* Batch : 2019/2020 Batch (No Active Backlogs)
* Experience : Freshers
* Job Location : PAN India

Network
Trainee: https://app.talentrank.in/a/rt/1683
Code: 86817371
Apply-Link For Network Engineer : https://app.talentrank.in/a/rt/1668
Code: 36397349

โœ…๐Ÿ“ช @fresherearth โœ