For the word "technology",
Eg t-1
e-1
c-1
I need character count of unique elements of this string
Discussion posts and replies are publicly visible
a!localVariables( local!string: "harshitbumb.com", local!charArray: char(code(local!string)), a!forEach( items: union(local!charArray,local!charArray), expression: { character: fv!item, count: count(wherecontains(fv!item,local!charArray)) } ) )
Thank you very much sir .
Sir how to find median of an array containing integer elements without using median () method ?
Why do you want to do it without the method?
a!localVariables( local!input: "TECHNOLOGY", a!forEach( items: char(code(local!input)), expression: fv!item & " "& len(cleanwith(local!input,fv!item)) ) )
a!localVariables( local!string: "technology", union( a!forEach( items: enumerate(len(local!string)) , expression: { a!localVariables( local!char: regexallmatches( local!string[fv!index], local!string, "gms" ), local!char[1] & " - " & length(local!char) ) } ), {} ))
a!localVariables( local!cahrArr:code("hello"), a!forEach( items:union(local!cahrArr,local!cahrArr) , expression: concat(char(fv!item)," - ",length(wherecontains(fv!item,local!cahrArr))) ) )