Skip to content

Instantly share code, notes, and snippets.

View programmingGod-byte's full-sized avatar

programmingGod-byte

View GitHub Profile
class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
vector<int>ans;
for(int i=0;i<nums.size();i++){
auto it = lower_bound(ans.begin(),ans.end(),nums[i]);
if(it==ans.end()){
ans.push_back(nums[i]);
}else{
*it = nums[i];
{
"name": "test nft",
"description": "Description for Test nft",
"image": "https://raw.githubusercontent.com/programmingGod-byte/cpp-algorithm/refs/heads/main/logo.png"
}
{
"name": "test Collection",
"description": "Description for Test collections",
"image": "https://raw.githubusercontent.com/programmingGod-byte/cpp-algorithm/refs/heads/main/logo.png"
}
{
"name": "Devent Token",
"symbol": "DEVT",
"description": "Devent Token (DEVT) is a Solana-based utility token designed for powering decentralized event management and ticketing solutions.",
"image": "https://example.com/images/devent_token.png"
}
#include <bits/stdc++.h>
using namespace std;
void dfs(int node, vector<int> adj[], int vis[], vector<int> &ls)
{
vis[node] = 1;
ls.push_back(node);
for (auto it : adj[node])
{
if (!vis[it])
#include <bits/stdc++.h>
using namespace std;
class Solution {
private:
void dfs(int node, int vis[], stack<int> &st,
vector<int> adj[]) {
vis[node] = 1;
for (auto it : adj[node]) {
if (!vis[it]) dfs(it, vis, st, adj);
#include<bits/stdc++.h>
using namespace std;
int partition(vector<int>& arr, int l, int r, int pivot){
int pivotIndex = find(arr.begin()+l, arr.begin()+r+1, pivot) - arr.begin();
swap(arr[pivotIndex], arr[r]);
int storeIndex = l;
for(int i = l; i < r; i++){
if(arr[i] < pivot){
@programmingGod-byte
programmingGod-byte / Dockerfile
Created October 2, 2024 06:08 — forked from piyushgarg-dev/Dockerfile
Docker In One Shot
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get upgrade -y
RUN apt-get install -y nodejs
COPY package.json package.json
COPY package-lock.json package-lock.json