#dsa
Read more stories on Hashnode
Articles with this tag
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 findPeakElement(vector<int>& nums) { int n = nums.size(); if(n == 1) ...
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>...