๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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
Malay Sharma, Co-founder of Peoplegains is offering a group session to help you discover your skills & techniques and to answer your questions and doubts directly.

Heโ€™ll be sharing the following:

- Experience and insights on the interview process
- How to enhance your skill set
- Tips to grab high-paying job opportunities
- Ways to build your resume.

Register now - https://visit.preplaced.in/g18

The session will also include a live Q&A, where the mentor will answer all your doubts and concerns.
๐Ÿ‘1
float calculate_total_amount(int count_50, int count_1, int count_2, int count_5){
    float a = count_50 * 0.50;  
    float b = count_1 * 1.00;    
    float c = count_2 * 2.00;  
    float d = count_5 * 5.00;  

    float res = a + b + c + d;

    return res;
}
bool isDancingNumber(int num) {
    string str_num = to_string(num);

    for (int i = 1; i < str_num.length(); i++) {
        int diff = abs(str_num[i] - str_num[i - 1]);
        if (diff != 1 && diff != 9) {
            return false;
        }
    }

    return true;
}

vector<int> print_dancing_numbers(int dancing_limit) {
    vector<int> dancingNumbers;

    for (int i = 0; i <= dancing_limit; i++) {
        if (isDancingNumber(i)) {
            dancingNumbers.push_back(i);
        }
    }

    return dancingNumbers;
}
๐Ÿ‘1