allcoding1
27.7K subscribers
2.2K photos
2 videos
77 files
853 links
Download Telegram
๐ŸŽฏAmazon Off Campus Hiring 2024 : Recruitment for Freshers | Register Now

Eligibility:
Testing Associate, Device OS:
Bachelorโ€™s degree
Knowledge of QA methodology and tools
Preferred:
B.E,B.Tech. , MSC IT and MCA
Good Communication
Testing Knowledge

Apply:- https://www.allcoding1.com/2024/02/amazon-off-campus-hiring-2024.html


Telegram:- @allcoding1
๐Ÿ‘2
int n=sc.nextInt(),i;
            int a[]=new int[n];
            for(i=0;i<n;i++) a[i]=sc.nextInt();
            int dp[]=new int[n];
        dp[0]=a[0];
        if(n>1)
            dp[1]=Math.max(a[0],a[1]);
        if(n>2)
            dp[2]=Math.max(a[0]+a[2],a[1]);
            for( i=3;i<n;i++)
                dp[i]=Math.max(a[i]+dp[i-2],dp[i-1]);
        System.out.println(dp[n-1]);

Special Sum โœ…
Intuit
๐Ÿ‘1
Spreading Fire
Intuit โœ…
C
๐Ÿ‘1
allcoding1
Photo
class TreeNode:
    def init(self, val):
        self.val = val
        self.children = []

def build_tree(units, relationships):
    nodes = {i: TreeNode(units[i]) for i in range(len(units))}
    for rel in relationships:
        parent, child = rel
        nodes[parent].children.append(nodes[child])
    return nodes[0] 

def max_electricity_per_floor(root):
    max_electricity = 0
    floor_electricity = {}
   
    def dfs(node, level):
        nonlocal max_electricity
        if level not in floor_electricity:
            floor_electricity[level] = 0
        floor_electricity[level] += node.val
        max_electricity = max(max_electricity, floor_electricity[level])
        for child in node.children:
            dfs(child, level + 1)
   
    dfs(root, 0)
    return max_electricity


num = int(input())
units = list(map(int, input().split()))
numRel, memConnect = map(int, input().split())
relationships = [tuple(map(int, input().split())) for _ in range(numRel)]


root = build_tree(units, relationships)


result = max_electricity_per_floor(root)
print(result)
Apartment one


@allcoding1
๐Ÿ‘3โค1
int main() {
ll N;
cin >> N;

vector<ll> u(N);
for(ll i = 0; i < N; ++i) {
cin >> u[i];
}

ll M, X;
cin >> M >> X;

vector<vector<ll>> a(N);
for(ll i = 0; i < M; ++i) {
ll x, y;
cin >> x >> y;
a[x].push_back(y);
a[y].push_back(x);
}

vector<bool> v(N, false);
queue<ll> q;
q.push(0);
v[0] = true;

ll m = 0;
while(!q.empty()) {
ll s = q.size();
ll us = 0;
for(ll i = 0; i < s; ++i) {
ll n = q.front();
q.pop();
us += u[n];
for(ll nb : a[n]) {
if(!v[nb]) {
q.push(nb);
v[nb] = true;
}
}
}
m = max(m, us);
}

cout << m << endl;

return 0;
}



apartment

@allcoding1
๐Ÿ‘1
int main() {
ll N;
cin >> N;

vector<ll> w(N);
for(ll i = 0; i < N; ++i) {
cin >> w[i];
}

vector<ll> s(N, 15);
for(ll i = N-2; i >= 0; --i) {
for(ll j = i+1; j < N; ++j) {
if(w[i] < w[j]) {
s[i] = 10;
for(ll k = j+1; k < N; ++k) {
if(w[j] > w[k]) {
s[i] = 5;
break;
}
}
break;
}
}
}

ll g = 0;
for(ll sc : s) {
g += sc;
}

cout << g << endl;

return 0;
}


chair manufacture

@allcoding1
๐Ÿ‘4
Forwarded from allcoding1
๐ŸŽฏSAS Off Campus Drive 2024 โ€“ Associate Software Engineer โ€“ Freshers | Rs 4-8 LPA

Job Role : Associate Software Developer
Qualification : B.E/B/Tech/M.E. / M.Tech
Experience : Freshers
Job Location : Pune
Package : Rs 4-8 LPA

Apply Now:- https://www.allcoding1.com/2024/02/sas-off-campus-drive-2024-associate_9.html?m=1

Telegram:- @allcoding1
char solve(string o, string r) {
    string res = "";
    int j = 0;
    for (int i = 0; i < o.size(); i++) {
        if (o[i] != r[j]) {
            res += o[i];
        } else {
            j++;
        }
    }
    return res[0];
}

Tech Mahindra

telegram:- @allcoding1
#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin >> s;
    int n;
    cin >> n;
    for (int i = n; i < s.size() + n; i++)
    {
        cout << s[i % s.size()];
    }
    return 0;
}
C++

Tech Mahindra

Telegram @allcoding1
๐Ÿ‘4
#include <bits/stdc++.h>
using namespace std;

int main()
{
    string s;
    cin >> s;
    int ans = 0;
    map<char, int> m;
    for (int i = 0; i < s.size(); i++)
    {
        m[s[i]]++;
    }
    for (auto x : m)
    {
        if (x.second == 1)
            ans++;
    }
    cout << ans;
    return 0;
}

Tech Mahindra
C++

Tech Mahindra

Telegram @allcoding1
๐Ÿ‘5
IBM
๐Ÿ‘2
hours = int(input())
seconds = hours * 60 * 60
print(seconds)

Deloitte
๐Ÿ‘2๐Ÿคฉ1
500 TB Tutorials + Books + Courses + Trainings + Workshops + Educational Resources

๐Ÿ”นData science
๐Ÿ”นPython
๐Ÿ”นArtificial Intelligence
๐Ÿ”นAWS Certified
๐Ÿ”นCloud
๐Ÿ”นBIG DATA
๐Ÿ”นData Analytics
๐Ÿ”นBI
๐Ÿ”นGoogle Cloud Platform
๐Ÿ”นIT Training
๐Ÿ”นMBA
๐Ÿ”นMachine Learning
๐Ÿ”นDeep Learning
๐Ÿ”นEthical Hacking
๐Ÿ”นSPSS
๐Ÿ”นStatistics
๐Ÿ”นData Base
๐Ÿ”นLearning language resources ( English๐Ÿด๓ง๓ข๓ฅ๓ฎ๓ง๓ฟ , French๐Ÿ‡จ๐Ÿ‡ต , German๐Ÿ‡ฉ๐Ÿ‡ช )


โ‚น50

Contact:- @meterials_available
๐Ÿ‘5๐Ÿฅฐ1๐ŸŽ‰1