Remove Comments
Given a C++ program, remove comments from it. The program source is an array of strings source where source[i] is the ith line of the source code. This represen
Read more →Welcome to Hazrat Ali, Problem Solving Website “At Hazrat Ali, we provide a platform for aspiring problem solvers and developers to sharpen their coding and algorithmic skills. Whether you’re a beginner or an advanced coder, our wide range of challenges and resources will help you grow. From mastering data structures and algorithms to participating in competitive coding contests, we offer tools and a community that supports your journey in programming. Explore our curated problems, get involved in discussions, and start Solving problems that will elevate your coding expertise. Join us today and start your problem-Solving adventure!”
Given a C++ program, remove comments from it. The program source is an array of strings source where source[i] is the ith line of the source code. This represen
Read more →Given a string s, reverse only all the vowels in the string and return it.
Read more →Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings
Read more →For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's maximum
Read more →There is an m x n matrix that is initialized to all 0's. There is also a 2D array indices where each indices[i] = [ri, ci] represents a 0-indexed location to pe
Read more →Given a string queryIP, return "IPv4" if IP is a valid IPv4 address, "IPv6" if IP is a valid IPv6 address or "Neither" if IP is not a correct IP of any type.
Read more →