Skip to main content

Transfer google play balance to Paytm, PhonePe, Google Pay or any UPI linked bank account.

To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link:  https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...

How to find the occurrence's of a pattern in a given string Using KMP algorithm?

For finding the pattern in a given string , we are going to use KMP algorithm for individual occurrence of the pattern and print the reference index of the original string.



The function which will find the pattern in a given string :

int KMP(char * str,char* find,int s){
     int sl=strlen(str);
     int fl=strlen(find);
     for(int i=s;i<sl-fl+1;i++){
         int i1=i;
         for(int j=0;j<fl;j++,i1++){
             //cout<<j<<fl<<endl;
             if(j==fl-1)return i;
             if(str[i]!=find[j])break;
         }
     }
     return -1;
 }
For finding all the places (positions/index) where the pattern is present, we have to call the above function repetitively with passing the index from where it has to resume the search as a parameter to the function.
The same is implemented in the function below:
int print_occurence(char* str,char* find){
     int sl=strlen(str);
     int fl=strlen(find);
     int occ=0;
     for(int i=0;i<sl;i++){
         i=KMP(str,find,i);
         if(i==-1){
             //printf("NO pattern found in string\n");
             return occ;
         }
         printf("pattern found at %d position\n",i+1);
         i+=fl;
         occ++;
     }
     return occ;
The driving function:
int main(int argc, char *argv[]) {
     char str[]="hello hello world";
     char find[]="llo";
     printf("Number of occurences found= %d\n",print_occurence(str,find));
     return 0;
 }
Source code C/C++ :

//  https://www.qxcoding.com/ 
include<stdio.h>
include<string.h>        
int KMP(char * str,char* find,int s){
     int sl=strlen(str);
     int fl=strlen(find);
     for(int i=s;i<sl-fl+1;i++){
         int i1=i;
         for(int j=0;j<fl;j++,i1++){
             //cout<<j<<fl<<endl;
             if(j==fl-1)return i;
             if(str[i]!=find[j])break;
         }
     }
     return -1;
 }
 int print_occurence(char* str,char* find){
     int sl=strlen(str);
     int fl=strlen(find);
     int occ=0;
     for(int i=0;i<sl;i++){
         i=KMP(str,find,i);
         if(i==-1){
             //printf("NO pattern found in string\n");
             return occ;
         }
         printf("pattern found at %d position\n",i+1);
         i+=fl;
         occ++;
     }
     return occ;
 }
 int main(int argc, char *argv[]) {
     char str[]="hello hello world";
     char find[]="llo";
     printf("Number of occurences found= %d\n",print_occurence(str,find));
     return 0;
 }

if any doubts or queries please comment 🙂

Comments

  1. Casino and Table Games Near Me - The MJ Hub
    The best and worst casinos near me 충청남도 출장샵 on our list · Hollywood 춘천 출장마사지 Casino 과천 출장마사지 at Charles Town 거제 출장안마 Races and Casinos · Sugarhouse at Chittenango Casino · 창원 출장안마 Harrah's Resort Tunica

    ReplyDelete

Post a Comment

Popular posts from this blog

Transfer google play balance to Paytm, PhonePe, Google Pay or any UPI linked bank account.

To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link:  https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...

How to convert google play balance to paypal or UPI [2024]

If your google account contains play balance which you might have earned from google competitions, opinion rewards or gift vouchers, you can transfer the amount to paypal account or any UPI linked bank account.  For transferring the play balance you need to follow 3 simple steps :  1) Download QxCredit app from google play store:                                 2) Purchase a token of your choice by entering the payout details :            3) View your purchase in my tokens section and wait for 72 hours for the transaction to be verified and processed. The below video demonstrates the process of purchasing a token of your choice to convert play balance: After purchasing token you will also receive a confirmation mail from QxCredit regarding the purchased token information. You can also view your purchased token on QxCredit website:...

Demonstration of new data types using structures

What is a structure? A structure is a user defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type. How to create a structure? ‘struct’ keyword is used to create a structure. Following is an example. the below example demonstrates the creation of new data type point which can store coordinates : // A variable declaration with structure declaration. struct Point { int x, y; } p1; // The variable p1 is declared with 'Point' for using the above structure we need to use structure_name (.) member access operator followed by a member name of defined structure. int main() { // A valid initialization. member x gets value 0 and y // gets value 1. The order of declaration is followed. struct Point p1 = {0, 1}; cout<<"value of x="<<p1.x<<"value of y="<<p1.y; }   if any doubts or queries please comment