๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K 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
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int solve(vector<int>& arr, int k) {
    sort(arr.begin(), arr.end());
    int i = 0, j = arr.size() - 1;
    int moves = 0;
    while (i <= j) {
        if (arr[i] + arr[j] <= k) {
            i++;
            j--;
        } else {
            j--;
        }
        moves++;
    }
   
    return moves;
}
NetEdge Hiring Machine Learning and Artificial Intelligence Internโค๏ธโค๏ธโค๏ธ

Qualification: B.Tech/B.E. / M.Tech

Freshers are eligible to attend the interview.

Date: 14th September

Time: 10.30 AM โ€“ 4.00 PM

Address: NetEdge Computing Solutions Pvt ltd, Tower C โ€“ 56/39, Sector โ€“ 62, Block C, Nearest Metro station 62 NOIDA โ€“ 201 301
def findWildcardMin(n, pattern):
    ans = 0
    for i in range(len(pattern[0])):
        poss = set()
        for j in range(n):
            if pattern[j][i] != '?':
                poss.add(pattern[j][i])
            if len(poss) > 2:
                break
        if len(poss) >= 2:
            ans += 1
   
    return ans

Diamond thiefโœ…
class UserMainCode:
    @classmethod
    def minimumSum(cls, input1, input2):
        def array_sum(arr):
            return sum(arr)
        if len(input2) < 2:
            return array_sum(input2)
        initial_sum = array_sum(input2)
        sorted_arr = sorted(input2)
        largest = sorted_arr[-1]
        second_largest = sorted_arr[-2]
        avg = (largest + second_largest) / 2
        updated_arr = [0 if num < avg else num for num in input2]
        updated_sum = array_sum(updated_arr)
        return min(initial_sum, updated_sum)


Trianz โœ