Articles in this series
Problem Link C++ Code class Solution { bool check(int x, vector<int> &piles, int h, int n) { long long hours = 0; for(int i=0;...
Problem Link C++ Code class Solution { public: int findMin(vector<int>& nums) { int low = 0; int high = nums.size() - 1; ...
Problem Link C++ Code class Solution { public: bool search(vector<int>& nums, int target) { int low = 0, high = nums.size()-1; ...
Problem Link C++ Code class Solution { double pow(double x, long long n) { if(n==0) return 1; if(n%2==0) { ...
Problem Link C++ Code class Solution { public: int lengthOfLongestSubstring(string s) { int n = s.size(); vector<bool>...
Problem Link C++ Code class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { map<int, int> hashMap; ...