๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.59K subscribers
5.59K photos
3 videos
95 files
10.1K 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
let fs = require("fs");

function longestSubstringTwoDistinct(s) {
    let maxLen = 0;
    let startIndex = 0;
    let charIndexMap = new Map();

    for (let i = 0; i < s.length; i++) {
        charIndexMap.set(s[i], i);
        if (charIndexMap.size > 2) {
            let minIndex = Math.min(...charIndexMap.values());
            charIndexMap.delete(s[minIndex]);
            startIndex = minIndex + 1;
        }
        maxLen = Math.max(maxLen, i - startIndex + 1);
    }

    return maxLen;
}

function Main(arg) {
   
    let inputString = String(arg);
  return longestSubstringTwoDistinct(inputString);
}
#include<bits/stdc++.h>
using namespace std;

vector<int> getExecTime(int n, vector<string> logs) {
    vector<int> res(n, 0);
    stack<int> st;
    int prev = 0;

    for(string log : logs) {
        stringstream ss(log);
        string buf;
        getline(ss, buf, ':');
        int id = stoi(buf);
        getline(ss, buf, ':');
        string type = buf;
        getline(ss, buf, ':');
        int time = stoi(buf);

        if(!st.empty()) {
            res[st.top()] += time - prev;
        }

        prev = time;

        if(type == "start") {
            st.push(id);
        } else {
            res[st.top()]++;
            st.pop();
            prev++;
        }
    }

    return res;
}

IBMโœ…
Maximum quirknessโœ…

ll ans=LLONG_MIN;
    i=0;
    ll sum=0;
    set<ll> s;
    while(i<n)
    {
        if(i)
            ans=max(ans,sum+a[i]+c*i-*s.begin());
        s.insert(sum+c*i);
        sum+=a[i];
        i++;
    }
    cout ยซ ans ยซ "\n";
hiring for SQL Server Operations: SQL Developer with 5+ years of experience for the Bangalore location,
below are the details:

Top 3 skills:

- Microsoft SQL Server 2022,2019, 2016
- Database Design and T-SQL Development
- SQL Security
- PL-SQL (Mandatory)

Notice Period: Immediate joiners only.
Working model: WFO
Interviews: F2F mode.

Interested candidates share me your updated resume to pbohara@teksystems.com with the following details (total years of experience, Current location, Preferred location, Current CTC, Expected CTC, notice period, Last working day (If serving NP)).

https://forms.office.com/r/vT9udEDUCz