Posts

Find next greater number with same set of digits!!

// C++ program to find the smallest number which greater than a given number // and has same set of digits as given number #include <iostream> #include <cstring> #include <algorithm> using namespace std; // Utility function to swap two digits void swap(char *a, char *b) { char temp = *a; *a = *b; *b = temp; } // Given a number as a char array number[], this function finds the // next greater number. It modifies the same array to store the result void findNext(char number[], int n) { int i, j; // I) Start from the right most digit and find the first digit that is // smaller than the digit next to it. for (i = n-1; i > 0; i--) if (number[i] > number[i-1]) break; // If no such digit is found, then all digits are in descending order // means there cannot be a greater number with same set of digits if (i==0) { cout << "Next number is not possible"; return; } // II) Find the smallest digit on rig...

AI is Becoming More Human Like Every Day!!

The advancement of AI technology is happening daily, and everyday robots are becoming more and more human-like. The problem is that not everything these bots learn is being put to good use and a … http://flip.it/DSHdKW

JavaScript Arrays and Objects Are Just Like Books and Newspapers!!!

Objects are best when you want to organize based on data labels. When you read a newspaper, you likely do not read it front to back, page by page. You flip to a certain section based on the section’s … https://medium.freecodecamp. com/javascript-arrays-and- objects-are-just-like-books- and-newspapers-6e1cbd8a1746

i phone crashing !!!!

https://www.youtube.com/watch?v=G0iPhSuiMpk&list=
14 AI startups will compete for $1.5 million from Nvidia http://flip.it/wQmf8L

CERTIFICATIONS!!

www.skillrack.com/cert/4774/YQU

Time consuming!

consider writing a factorial program where to factorial of number we create something like this for(i=1;i<N;i++) fact=fact*i;//consider initial value if fact as '1'