Dashboard Temp Share Shortlinks Frames API

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
14 Views
0 Comments
#include<bits/stdc++.h>
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
12 Views
0 Comments
int longestSuccessiveElements(vector<int>&a) {
// Write your code here.
if(a.size() == 0) return 0;
sort(a.begin(
Majority Element.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Majority Element.cpp
29 Views
0 Comments
#include<bits/stdc++.h>
using namespace std;
int majorityElement(vector<int> v) {
// Write your code here
// Using Hashing
Reading or 2sum.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Reading or 2sum.cpp
11 Views
0 Comments

Set Matrix.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Set Matrix.cpp
13 Views
0 Comments
#include<bits/stdc++.h>
using namespace std;


class Solution {
public:

void setZeroes(vector<vector<int>> &matrix) {
Sort An Array of 0s, 1s and 2s.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Array/Medium/Sort An Array of 0s, 1s and 2s.cpp
13 Views
0 Comments
#include <bits/stdc++.h>
bool compare(int a, int b){
if( a < b){
return true;
}
return false;
}