Coding Challenge – Celebrity Problem.
Celebrity is the person to whom everyone know but he do not know any person. This problem one of the programing problem that asked in companies Problem Statement: You are…
Celebrity is the person to whom everyone know but he do not know any person. This problem one of the programing problem that asked in companies Problem Statement: You are…
We can generated all possible combination of alphabets or number using python with only few lines of code. We can use these combination to give unique identity to any one.…
We can generate fixed length random number using Math.random() function. Math.random can generate number between 0 to 1. We can use this to generate any length random number. function randomNumber(length)…
Using NodeJS we can create ssh connection to send file or executing any command on Linux based server. Here we are using npm module ssh2 for sftp connection to transfer…
Many time we want run query with in query to get desirable result. MongoDB provide a aggregation operator to achieve result like this. Lets assume we have a collection with…
If we want SQL like "Like" operator in Mongo DB for string matching. But in mongo DB there is no such "like" operator instead it has regular expression to achieve…
The ternary operator is very useful for a single condition. But support ternary operator different way, not like other programming languages (?:). Syntax: A if C else B This first…
Many times we want to get a single file from svn repo but we do not want to checkout the complete repository. With the help of svn checkout we can…