Skip to content

Instantly share code, notes, and snippets.

@r14152
r14152 / linklist.go
Created August 20, 2021 10:43
link list using golang
def removeOccuranceFromList(val, lst):
return list(filter((val).__ne__, lst))
#struat start with constant
def struatMinnion(word):
totalCount = 0
vowel = ['A','E','I','O','U']
finalList = [word[i:j] for i in range(len(word)) for j in range(i,len(word)+1) if word[i] not in vowel and word[i:j] != '']
#print("Struat ", finalList)
for value in finalList:
def minion_game(string):
# your code goes here
kevin = 0
stuart = 0
for i in range(0,len(string)):
if string[i] in ['A','E','I','O','U']:
kevin += len(string)-i
else:
stuart += len(string)-i
if kevin == stuart:
@r14152
r14152 / binarysearchtree.go
Created August 27, 2021 18:59
Binary search tree implementation using golang
package main
import "fmt"
type bst struct {
rootValue int
leftNode *bst
rightNode *bst
}
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int t,i=0;
cin>>t;
while(i<t){
int n;
package streaming
import (
"bufio"
"fmt"
"io"
"log"
"os"
)
@r14152
r14152 / Kafka MultiNode - MultiBroker Cluster.md
Created November 27, 2021 20:04 — forked from mkanchwala/Kafka MultiNode - MultiBroker Cluster.md
Create Kafka Multi Node, Multi Broker Cluster