Thursday, 4 May 2017

Array - Shuffle merge

 Given a input two string (inputStr1) and (inputStr2), merge these two string by combining elements of same index Input String: "Hello" Deletion String: "123" Output String: "H1e2l3lo" @Override public String func (String inputStr1, String inputStr2){                  if(inputStr1==null)                 ...
Continue Reading →

Array - Run Length Decoding

public String func (String str){ // write your code here if(str==null) {     return null; } String output=""; String l=""; char dh; int i,j=0,k,c=0,p=0,m=str.length(); for(i=0;i<m;i++){     if(str.charAt(i)>='0' && str.charAt(i)<='9'){         c++;         if(c==1)        ...
Continue Reading →

Array - Run Length Encoding

public String func (String str){ // write your code here if(str==null) {     return null; } String output=""; String l=""; char dh; int i,j=0,k,c=0,p=0,m=str.length(); for(i=0;i<m;i++){     if(str.charAt(i)>='0' && str.charAt(i)<='9'){         c++;         if(c==1)        ...
Continue Reading →

Pangrams

Pangrams are sentences constructed by using every letter of the alphabet at least once. #include<stdio.h> #include<string.h> #include<stdlib.h> int main() {     int count=0;     int c,i,a[27]={0};char b[1000];     scanf("%[ !-z]266s",b);    // printf("%s",b);   /*  for(i=0;i<strlen(b);i++)    ...
Continue Reading →

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Blog Archive

Powered by Blogger.

Sample Text

Array - Shuffle merge

  Given a input two string (inputStr1) and (inputStr2), merge these two string by combining elements of same index Input String: "He...

Followers

Search This Blog

Ordered List

Theme Support