๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.6K photos
3 videos
95 files
10.3K 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
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
def getMaxConsecutiveHidden(commits):
    n = len(commits)
    if n <= 2:
        return 0

    max_hidden = 0
    start = 0


    if commits[-1] != commits[0] + n - 1:
        can_hide_all = True
        for i in range(1, n - 1):
            if commits[i] != commits[0] + i:
                can_hide_all = False
                break
        if can_hide_all:
            return n - 2

    for i in range(1, n):
        if commits[i] == commits[i - 1] + 1:
            continue
        else:
            seq_length = i - start
            if seq_length > 1:
                valid = True
                if start > 0 and i < n:
                    if (commits[start] == commits[start - 1] + 1 and
                        commits[i] == commits[i - 1] + 1):
                        valid = False
                if valid:
                    max_hidden = max(max_hidden, seq_length - 1)
            start = i


    seq_length = n - start
    if seq_length > 1:
        valid = True
        if start > 0:
            if commits[start] == commits[start - 1] + 1:
                valid = False
        if valid:
            max_hidden = max(max_hidden, seq_length - 1)

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

int memoize(int l, int r, int residue, const vector<char>& colors) {
    int n = colors.size();
    int dp[n][n][n];
    memset(dp, -1, sizeof(dp));

    if (r < l)
        return 0;
    else if (dp[l][r][residue] != -1)
        return dp[l][r][residue];

    dp[l][r][residue] = (residue + 1) * (residue + 1) + memoize(l, r - 1, 0, colors);

    for (int i = l; i < r; i++) {
        if (colors[i] == colors[r]) {
            dp[l][r][residue] = max(dp[l][r][residue], memoize(l, i - 1, 0, colors) + memoize(i + 1, r, residue + 1, colors));
        }
    }

    return dp[l][r][residue];
}

int solve(int n, vector<char> colors) {
    return memoize(0, n - 1, 0, colors);
}

int main() {
    int n;
    cin >> n;
    vector<char> colors(n);
    for (int i = 0; i < n; i++) {
        cin >> colors[i];
    }
    cout << solve(n, colors);
    return 0;
}

Crayon Removal Scoring Game โœ…
I am looking for an intern to help build new age automation systems.
If you know Python or JavaScript and have some basic software development skills, this could be for you.
โœจ Perks: Remote work, competitive pay, and chances of a full time offer.
๐Ÿ’ก Plus points: Experience with n8n, CrewAI, or LangChain.

email: ayush.som@prossimatech.com
๐Ÿš€ Weโ€™re Hiring SDE Interns at CredFlow!

At CredFlow, we empower over 100,000+ SMEs across India to unlock working capital, streamline finances, and fuel their growth. Our systems process 4Bn+ API hits monthly, handle 100TB+ of data, and power financial decision-making for businesses every day
.
Weโ€™re looking for Software Development Engineer (SDE) Interns who are passionate about building scalable technology, problem-solving, and learning in a fast-paced environment.

๐Ÿ”น What youโ€™ll do:
Work alongside senior engineers on real-world product development.
Design, code, test, and debug applications.
Learn best practices in software engineering while contributing to meaningful projects.

๐Ÿ”น What weโ€™re looking for:
Fresh engineering 2025 graduates (preferably CS or related fields).
Knowledge of at least one OOP language and one database system.
Strong problem-solving and communication skills.

๐Ÿ“ Location: Noida, Sector 3
๐ŸŽ“ Internship with a strong opportunity to transition into a full-time role.
If youโ€™re excited to be part of a high-growth fintech revolution, apply now and letโ€™s build the future of SME finance together!
๐Ÿ‘‰ Drop your CV at Gazal.khan@credflow.in or apply directly through LinkedIn.