Skip to content

Instantly share code, notes, and snippets.

View harishKandikatla's full-sized avatar

Harish Kandikatla harishKandikatla

View GitHub Profile
class Solution {
public:
int maxProfit(vector<int>& prices) {
int n = prices.size();
if(n==0)
return 0;
vector<int> left(n),right(n);
//Fill 1st transaction (LEFT)
int leftMin = prices[0];
@gaearon
gaearon / index.html
Last active September 27, 2025 02:50
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>