/Competitive-Programming

Solutions for different programming problems from a lot of online judges such as: Codeforces, UVa, SPOJ and much more. Built for educational purposes.

Primary LanguageC++

Competitive-Programming

Solutions for Programming Problems from Codeforces, Iudex, SPOJ, UVA, AtCoder and other online judges. It also contains solutions of LeetCode problems.

AtCoder: 61 Problems Solved.

CodeChef: 1 Problem Solved.

Codeforces: 161 Problems Solved.

Cracking The Code: 23 Problems Solved.

LeetCode: 288 Problems Solved.

SPOJ: 23 Problems Solved.

TheHuxley: 258 Problems Solved.

UVA: 222 Problems Solved.

TOTAL PROBLEMS: 1041 Problems Solved.

Useful Notes:

  • To convert a int to a string, use the function to_string(int) from the <string> library.
  • To split a string using blank spaces as the delimeters, use stringstream from the <sstream> library.
  • To convert a string to a int, use the function stoi(string) from the <string> library.
  • Split a string into words using a specific delimiter:
        stringstream ss(s);
        string word;
        string delimiter = " ";
        while(getline(ss, word, delimiter)){
            words.push_back(word);
        }