Deloitte | PWC | ATS resumes | Wipro | Infosys | Accenture | Capegemini | job links
Open in Telegram
WhatsApp group link https://chat.whatsapp.com/Il915UNLpw32YjwxFf8D63
Show more4 673
Subscribers
No data24 hours
-17 days
-630 days
Posts Archive
Wipro / Delottie/ Accenture exam help available ā
+7
Yesterday Accenture 2pm Exam clearedš„³
Contact-@placementsBroš
100 percent clearance ā
SYO- 701 Certification doneā
šResult - passš„³(As Always)
--> @placementsBroš
100 percent clearanceāļø
+2
Infosys All 3 codes done successfully ā
Private codes ā
Any other exam help
Contact @placementsBroš
100 percent clearance ā
Q3ā
All 3 codes done successfully ā
Any other exam help
Contact @placementsBroš
100 percent clearance ā
Q2ā
Private slot
Private codes
Infosys Q1
Private slot
Private codesā
+6
Colourd ball
Kth palindrome
String container
Play with stacks
Perfectly even
Divisible string
import java.util.*;
class Main {
public static void main (String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),i;
TreeMap<Long,Integer> map=new TreeMap<>();
long dp[]=new long[n];
long r[]=new long[n];
long h[]=new long[n];
long mod=(long)1e9+7;
for(i=0;i<n;i++) r[i]=sc.nextLong();
for(i=0;i<n;i++) h[i]=sc.nextLong();
for(i=0;i<n;i++){
long volume=(h[i]*r[i]*r[i])%mod;
Long low=map.floorKey(volume);
if(low!=null) dp[i]=(dp[i]+dp[map.get(low)]+volume)%mod;
else dp[i]=(dp[i]+volume)%mod;
map.put(volume,i);
}
long max=0;
for(long it:dp) max=Math.max(max,it);
System.out.println(max);
}
}
Biggest Tower ā
https://t.me/Infycodes
Path Covered rangesā
Code is ready to shareā
Pls make our group 5k
I will many more codesš„°
Want more codes???
Respond with symbols
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll mod(ll x,ll mod)
{
if(x<mod) return 0;
return x%mod;
}
bool check(ll l,ll r,ll k,vector<ll>&a)
{
unordered_map<ll,ll>mpp;
for(ll i=l;i<=r;i++) mpp[i]++;
for(auto it:mpp)
{
if(it.second!=k) return false;
}
return true;
}
ll solve(ll n,ll k,vector<ll>&a,ll q,vector<vector<ll>>&queries)
{
if(k==1)
{
ll sum=0;
for(ll i=1;i<=q;i++) sum+=i;
return sum;
}
vector<ll>p(q);
ll t=0,tt=0;
ll L,R;
for(ll i=0;i<q;i++)
{
L=mod((t+queries[i][0]),n)+1;
R=mod((tt+queries[i][1]),n)+1;
t=L;
tt=R;
if(check(L,R,k,a)) p[i]=i+1;
}
ll sum=0;
ll m=1e9+7;
for(auto it:p) sum=(sum+it)%m;
return sum%m;
}
signed main()
{
ll n,k; cin>>n>>k;
vector<ll>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
ll q; cin>>q;
ll two; cin>>two;
vector<vector<ll>>queries(q,vector<ll>(2));
for(ll i=0;i<q;i++)
{
ll x,y; cin>>x>>y;
queries[i][0]=x;
queries[i][1]=y;
//cout<<x<<" "<<y<<endl;
}
cout<<solve(n,k,a,q,queries);
return 0;
}
K occurance ā
https://t.me/Infycodes
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll mod=1e9+7;
ll C(vector<ll>&a,ll n)
{
ll count=0;
for(ll i=0;i<n-1;i++)
{
if(((a[i]*a[i+1])-(a[i]+a[i+1]))%2==0) count++;
}
return count;
}
void generate(ll n,ll m,ll k,vector<ll>¤t,ll&count)
{
if (current.size()==n)
{
if (C(current,n)==k)
{
count=(count+1)%mod;
}
return;
}
for (ll i=1;i<=m;i++)
{
current.push_back(i);
generate(n,m,k,current,count);
current.pop_back();
}
}
ll solve(ll n,ll m,ll k)
{
vector<ll>current;
ll count=0;
generate(n,m,k,current,count);
return count%mod;
}
signed main()
{
ll n,m,k; cin>>n>>m>>k;
cout<<solve(n,m,k);
return 0;
}
Perfectly even ā
https://t.me/Infycodes
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll mod=1e9+7;
ll C(vector<ll>&a,ll n)
{
ll count=0;
for(ll i=0;i<n-1;i++)
{
if(((a[i]*a[i+1])-(a[i]+a[i+1]))%2==0) count++;
}
return count;
}
void generate(ll n,ll m,ll k,vector<ll>¤t,ll&count)
{
if (current.size()==n)
{
if (C(current,n)==k)
{
count=(count+1)%mod;
}
return;
}
for (ll i=1;i<=m;i++)
{
current.push_back(i);
generate(n,m,k,current,count);
current.pop_back();
}
}
ll solve(ll n,ll m,ll k)
{
vector<ll>current;
ll count=0;
generate(n,m,k,current,count);
return count%mod;
}
signed main()
{
ll n,m,k; cin>>n>>m>>k;
cout<<solve(n,m,k);
return 0;
}
Perfectly even ā
https://t.me/Infycodes
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main()
{
ll n, i, j;
cin >> n;
ll a[n];
for(i=0; i<n; i++)
{
cin >> a[i];
}
ll maxi = 0;
i=0;
while(i<n-1)
{
ll curr=0;
for(j=i; j<n-1; j++)
{
int diff = a[j+1]-a[j];
if(diff<0)
{
break;
}
else if((diff & (diff-1)) == 0 || diff==0)
{
curr++;
}
else
{
break;
}
}
i=j+1;
maxi = max(maxi, curr+1);
}
if(n==1) maxi=1;
cout<<maxi<<'\n';
return 0;
}
Yet another lies ā
Infosys
https://t.me/Infycodes
