cody - HTMLify profile
files of /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/
Best time to buy and sell stock.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Best time to buy and sell stock.cpp
#include<bits/stdc++.h>
using namespace std;
int bestTimeToBuyAndSellStock(vector<int>&prices) {
// Write your code here.
using namespace std;
int bestTimeToBuyAndSellStock(vector<int>&prices) {
// Write your code here.
Longest Consecutive Elements.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Longest Consecutive Elements.cpp
int longestSuccessiveElements(vector<int>&a) {
// Write your code here.
if(a.size() == 0) return 0;
sort(a.begin(
// Write your code here.
if(a.size() == 0) return 0;
sort(a.begin(
#include<bits/stdc++.h>
using namespace std;
int majorityElement(vector<int> v) {
// Write your code here
// Using Hashing
using namespace std;
int majorityElement(vector<int> v) {
// Write your code here
// Using Hashing
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
void setZeroes(vector<vector<int>> &matrix) {
using namespace std;
class Solution {
public:
void setZeroes(vector<vector<int>> &matrix) {