Giter Site home page Giter Site logo

importlogic / gfg-potd Goto Github PK

View Code? Open in Web Editor NEW
72.0 3.0 19.0 433 KB

A collection of C++ codes for Geeks for Geeks Problem of the Day

Home Page: https://www.youtube.com/@cpwithcpp

C++ 100.00%
algorithms cpp data-structures gfg gfg-cpp gfg-potd gfg-practice gfg-solutions potd-practice potd-solution

gfg-potd's Introduction

Geeks for Geeks Problem of the Day Repository

This repository is a collection of C++ codes for Geeks for Geeks problem of the Day.

Code of Conduct

The solutions to the problems given here are just for reference only. Please avoid copying the code and trying doing them on your own by taking help from this repository.

Video Solutions to all problems

You can find the video solutions to all the problems given here on my youtube channel cpwithcpp.

Happy Coding

gfg-potd's People

Contributors

importlogic avatar mrpankajpandey avatar saranshbangar avatar soorjya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gfg-potd's Issues

[Feature] Add Issue Section Template

. Add issue section template so that most users can easily raise an issue which is helpful because they already know what and how to raise an issue

Like this it's amazing features

image

plz help in my code soln bhaiya! 10 test cases are passed but n=5473578 is giving one character wrong.

10 test cases are passed but n=5473578 is giving one character wrong.
soln..

class Solution{
    public:
    void clm_name(long long int n,string&ans,vector<char>&alpha){
        if(n<=26){
            ans.push_back(alpha[n-1]);
            return;
        }
        long long clm_no=n/26;
        int row_no=n%26;
        clm_name(clm_no,ans,alpha);
        ans.push_back(alpha[row_no-1]);
        if(row_no==0)ans.push_back('Z');
    }
    string colName (long long int n)
    {   vector<char>alpha(26);
        int d=65;
        for(int i=0;i<26;i++)
        alpha[i]=d+i;
        string ans;
        clm_name(n,ans,alpha);
        return ans;
    }
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.