๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.52K subscribers
5.56K photos
3 videos
95 files
9.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
https://www.linkedin.com/posts/baishakhi-chakraborty-ba6100187_hiring-cis-ltimindtree-activity-7245005655785308162-Suaa?utm_source=share&utm_medium=member_desktop

Please keep in mind "the role is for BCA, BCS, B.Sc. Fresher's"

The openings are for "Cloud Infrastructure domain".

More details:

Designation : Associate Trainee

Compensation : INR 3,19,000 Per Annum

Process : Registration-Screening - Online Assessments โ€“ Communication/Technical Interview - HR Discussion- Offer Rollout-Onboarding

Eligibility Criteria:

2024 Batch of BCA, BCS, B.Sc. (Computer Science, Computer Technology, Information Technology, Information Science, Mathematics, Physics, Chemistry, Electronics, Statistics, & Computer Application)
Consistent academic records of 60% throughout academics

Not more than 2 years academic gap allowed

Open to Indian Nationals Only

Candidates must possess excellent communication skills

Candidates must be willing to work in any LTIMindtree locations, shift timings and any domain

**Note: Please reach me for referal or provide the following:
1.Candidate Full Name
2.Candidate's Primary Email ID for communication
3.Graduate Degree
4.Specialization Or Branch
5.Year of Passout**
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
int throwTheBall(vector<int> receiver, long seconds) {
    unordered_map<int, int> a; 
    int b = 1; 
    int c = 0;
    for (; !a.count(b); seconds--) {
        if (seconds == 0) {  
            return b;       
        }
        a[b] = c;             
        b = receiver[b - 1]; 
        c++;                  
    }
    int d = c - a[b]; 
    seconds %= d;     
    for (; seconds > 0; seconds--) {
        b = receiver[b - 1];
    }

    return b; 
}


Throw the Ball โœ…
int solve(string s) {
        int ans = 0, prev = 0, cur = 1;

        for (int i = 1; i < s.length(); i++) {
            if (s[i] != s[i - 1]) {
           
                ans += min(prev, cur);
                prev = cur;
                cur = 1;   
            } else {
                cur++;
            }
        }
       
        ans += min(prev, cur);

        return ans;
    }

Counting Binary Substrings โœ…
What to do and What to avoid!

When sitting in front of an interviewer, your actions and words can make or break your chances.

Itโ€™s more than just answering questions, it's about presenting yourself as the ideal candidate.

Here are some clear do's and don'ts to keep in mind.

๐Ÿ“ŒDo:

1. Be Prepared.
2. Dress Appropriately.
3. Be Punctual.
4. Maintain Good Posture.
5. Listen Carefully.
6. Ask Thoughtful Questions.
7. Be Honest.

๐Ÿ“ŒDon't:

1. Donโ€™t Fidget.
2. Donโ€™t Speak Negatively About Past Employers.
3. Donโ€™t Interrupt.
4. Donโ€™t Overshare.
5. Donโ€™t Forget to Follow Up.

By keeping these dos and donโ€™ts in mind, youโ€™ll be better prepared to make a strong impression in your interview.

Good luck!
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include<bits/stdc++.h>

using namespace std;

int find(vector<vector<int>>&mat)

{

int n=mat.size();

int m=mat[0].size();

vector<pair<int,int>>d={{-1,0},{1,0},{0,-1},{0,1}};

queue<pair<int,int>>q;

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

{

for(int j=0;j<m;j++)

{

if(mat[i][j]==2)

{

q.push({i,j});

mat[i][j]=1;

}

}

}

int level=0;

while(!q.empty())

{

int size=q.size();

for(int i=0;i<size;i++)

{

auto temp=q.front();

q.pop();

int x=temp.first;

int y=temp.second;

if(x==0||y==0||x==n-1||y==m-1)

{

return level;

}

for(auto it:d)

{

int nx=x+it.first;

int ny=y+it.second;

if(nx>=0&&ny>=0&&nx<n&&ny<m&&mat[nx][ny]==0)

{

mat[nx][ny]=1;

q.push({nx,ny});

}

}

}

level++;

}

return -1;

}

int main()

{

int n,m;

cin>>n>>m;

vector<vector<int>>mat(n,vector<int>(m));

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

{

for(int j=0;j<m;j++)

{

cin>>mat[i][j];

}

}

cout<<find(mat)<<endl;

}


Escape from Grid โœ…
#include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
int main() {
    int n;
    cin >> n; 
    string str;
    cin >> str; 
    unordered_map<char, int> v;
    v['a'] = 0;
    v['e'] = 0;
    v['i'] = 0;
    v['o'] = 0;
    v['u'] = 0;
        for (char c : str) {
        if (v.find(c) != v.end()) {
            v[c]++;
        }
    }
    char m = 'a';
    int e = v['a'];
    for (auto &pair : v) {
        if (pair.second > e) {
            m = pair.first;
            e = pair.second;
        }
    }
        cout << m << endl;
   
    return 0;
}


Most frequent vowel โœ…
HSBC
#include <iostream>
#include <string>
using namespace std;
const int MOD = 1000000007;
int main() {
    int n;
    cin >> n;
    string s;
    cin >> s; 
        if (n == 1) {
        cout << 2 << endl;
        return 0;
    }
        int a = 0;
        for (int i = 0; i < n; i++) {
        for (int j = i; j < n; j++) {
            string r = s.substr(0, i) + s.substr(j + 1);
            if (r.empty() || r.find_first_not_of(r[0]) == string::npos)
            {
                a++;
            }
        }
    }
        cout << a % MOD << endl;
    return 0;
}


Powerful strings โœ…
import java.util.Scanner;

public class KeypadStrokes {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String str = sc.next();
       
        int[] times = new int[26];
        times['a' - 'a'] = 1; times['b' - 'a'] = 2; times['c' - 'a'] = 3;
        times['d' - 'a'] = 1; times['e' - 'a'] = 2; times['f' - 'a'] = 3;
        times['g' - 'a'] = 1; times['h' - 'a'] = 2; times['i' - 'a'] = 3;
        times['j' - 'a'] = 1; times['k' - 'a'] = 2; times['l' - 'a'] = 3;
        times['m' - 'a'] = 1; times['n' - 'a'] = 2; times['o' - 'a'] = 3;
        times['p' - 'a'] = 1; times['q' - 'a'] = 2; times['r' - 'a'] = 3; times['s' - 'a'] = 4;
        times['t' - 'a'] = 1; times['u' - 'a'] = 2; times['v' - 'a'] = 3;
        times['w' - 'a'] = 1; times['x' - 'a'] = 2; times['y' - 'a'] = 3; times['z' - 'a'] = 4;

        int totalTime = 0;
        for (int i = 0; i < n; i++) {
            totalTime += times[str.charAt(i) - 'a'];
            if (i > 0 && (getButton(str.charAt(i)) == getButton(str.charAt(i - 1)))) {
                totalTime++;
            }
        }
        System.out.println(totalTime);
    }

    private static int getButton(char ch) {
        if (ch >= 'a' && ch <= 'c') return 2;
        if (ch >= 'd' && ch <= 'f') return 3;
        if (ch >= 'g' && ch <= 'i') return 4;
        if (ch >= 'j' && ch <= 'l') return 5;
        if (ch >= 'm' && ch <= 'o') return 6;
        if (ch >= 'p' && ch <= 's') return 7;
        if (ch >= 't' && ch <= 'v') return 8;
        if (ch >= 'w' && ch <= 'z') return 9;
        return -1;
    }
}

Keypad strokes
HSBCโœ