๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.55K subscribers
5.57K photos
3 videos
95 files
9.8K 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
SELECT
    s.room
FROM
    schedule s
JOIN
    section sec ON s.section_id = sec.section_id
JOIN
    registration r ON sec.section_id = r.section_id
WHERE
    s.day = 'Monday'
    AND s.starttime = '09:00:00'
    AND s.endtime = '11:00:00';


ZS Associate โœ…
public static String getOverallScore(String input) {
        Stack<Character> stack = new Stack<>();

        for (char symbol : input.toCharArray()) {
            while (!stack.isEmpty() && hasHigherPrecedence(symbol, stack.peek())) {
                stack.pop();
            }
            stack.push(symbol);
        }

        StringBuilder result = new StringBuilder();
        for (char symbol : stack) {
            result.append(symbol);
        }
        return result.toString();
    }

    private static boolean hasHigherPrecedence(char newSymbol, char existingSymbol) {
        String precedence = "ABCDEF";
        return precedence.indexOf(newSymbol) < precedence.indexOf(existingSymbol);
    }


Thoughtwork โœ…
static final int MOD = 1000000007;
public static long calculateSurprisingSum(long N) {
        long sum = 0;
       
        for(int i = 0; i <= 33; i++) {
            for(int j = i + 1; j <= 33; j++) {
                for(int k = j + 1; k <= 33; k++) {
                    long number = (1L << i) + (1L << j) + (1L << k);
                    if(number <= N) {
                        sum = (sum + number) % MOD;
                    }
                }
            }
        }
       
        return sum;
    }


Find surprising number sum โœ…
ZS