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 opinion r

How to merge two sorted singly linked list



here we will discuss ,how to merge two sorted linked list such that the final list is sorted in ascending order the structure ( node ) definition is given below:

typedef struct node{
 int val;
 struct node* next;
}* node;
Explanation:
we will insert (merge ) the elements of list 2 (f2) in f1 by comparing each nodes value.

ALGORITHM:

  • traverse both lists till one of them is completely traversed
  • compare the values of node and if the value of node of list f1 is smaller then move to next node of f1 and increment the value of pos.
  • the pos variable will be used after complete traversal to join the remaining elements of f2 if any.
  • and if f2 nodes value is smaller then insert it before the current node in f1 and set f1 to previous node that is the node of f2 and increment f2 to next node.
  • after completely traversing one of the lists , append the remaining elements of f2 if any in f1 .



void merge_ll(node *first){
 delete_ll(*first);*first=NULL;
 int pos=0;
 printf("Enter 1st sorted list\n");
 *first=create_ll();
 printf("Enter 2nd sorted list\n");
 node first2=create_ll();
 printf("Merging..............\n");
 node f1=*first,f2=first2;
 while(f1 && f2){
  if(f1->val < f2->val){
   f1=f1->next;
   pos++;
  }
  else{
   node prev=find_p(*first,pos);
   if(!prev){
    node temp=f2->next;
    f2->next=f1;
    *first=f2;
    f1=f2;
    f2=temp;
   }
   else{
    node t2=f2->next;
    f2->next=f1;
    prev->next=f2;
    f2=t2;
    pos++;
   }
  }
 }
 
 if(f1==NULL) find_p(*first,pos)->next=f2;

 display_ll(*first);
}
The function find_p(node first,int p) find and returns the node before the one which is at position p.
the function definition is given below:
node find_p(node first,int n){
 //index starting from 0
 node prev=NULL;
 int i;
 for(i=0;i<n&&first;i++){
  prev=first;
  first=first->next;
 }
 if(i==n && !first)return prev;//last element
 if(!first)return NULL;//not found
 return prev;//found
}
for more information on how to find nodes address at a given position : click here.

for downloading executable program for merging 2 linked list :click here




if any doubts or queries please comment ðŸ™‚

Comments

Popular posts from this blog

Python and C++ program to implement multiplication of 2d array (Matrix multiplication)

Here, in this program we are going to implement matrix multiplication , suppose matrix 1 has dimensions:m*n and matrix 2 has dimensions :p*q for these two matrix to be multiplied we need to have the number of columns in matrix 1(n) equal to the number of rows in matrix 2(p), if the condition is satisfied then the result of multiplication will be a matrix of order m*q in multiplication the elements of the resultant matrix will be the sum of product of corresponding elements of row(of M1) and column(of M2) //first element in 1st row in given example: res[0][0]+=mat1[0][i] * mat2[i][0] where 0<i<n or p //second element in 1st row: res[0][1]+=mat1[0][i] * mat2[i][1] where 0<i<n or p and so on………… Example : Input : 1 2 3 1 4 5 6 2 7 8 9 3 Output : 14 32 50 Input : 4 3 4 2 4 1 1 1 Output : multiplication not possible n!=p Here goes the main execution part where the calculation is been done: for ( int i = 0 ; i < r1 ; i ++) for ( int

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 opinion r

What is AI (Artificial Intelligence )? and its characteristics

Definition : Artificial intelligence  (AI) is the ability of a  computer program  or a  machine  to think and learn. It is also a field of study which tries to make computers "smart". They work on their own without being encoded with commands. Types of AI : REACTIVE MACHINES:  The most basic type of AI is purely reactive ,it does not store any memory of past or predict ( calculate ) future happenings. This type of AI is only applicable to specific applications and the principle is choosing the best decision among several options. examples: Deep Blue, IBM’s chess-playing supercomputer LIMITED MEMORY :  this type 2 kind of AI machines are distinct from reactive machine in such a way that it can make optimum decisions based on the past information ( data ). examples: self driving cars. THEORY OF MIND:  The understanding that people,creatures and objects can have thoughts or emotions which effect their own behavior. This point is the important divide