Skip to content

Instantly share code, notes, and snippets.

View raihankhan's full-sized avatar
☸️
Exploring kubernetes

Raihan Khan raihankhan

☸️
Exploring kubernetes
View GitHub Profile
mr_demo: = gitlab.MergeRequest {
BasicMergeRequest: gitlab.BasicMergeRequest {
ID: 370891163,
IID: 14,
TargetBranch: "main",
SourceBranch: "service-marketplace-product-2025-03-21T04-52-53Z",
ProjectID: 67898401,
Title: "Update values for marketplace/product - TkAo",
State: "opened",
Imported: false,
@raihankhan
raihankhan / publisher_consumer_pattern.go
Last active August 3, 2024 20:16
A simple pattern for asynchronous publisher-consumer model in Golang.
package main
import (
"fmt"
"math/rand"
"os"
"os/signal"
"sync"
"syscall"
"time"
@raihankhan
raihankhan / Delete Operation for Two Strings.cpp
Last active June 14, 2022 15:42
Leetcode daily solutions
// Leetcode daily challenge - 14.06.22
// https://leetcode.com/problems/delete-operation-for-two-strings
// Top Down DP approach - O(n*m) space and O(n^2) time complexity
class Solution {
public:
int minDistance(string word1, string word2) {
int n = word1.size(),m = word2.size();
int dp[n+1][m+1];