Thursday, May 10, 2018

What is a number whose cube is equal to the number itself but its square is not equal to the number itself


It is always good if you solve first by your own.


Subtract x2x2 from both sides to get:



Now, we know that x2x2 is not equal to xx, which means x2−xx2−x is not equal to zero. So, it’s safe to divide both sides by x2−xx2−x :


So, the answer is -1.

Here, it was a key that since x and x square are not equal, x square - x can be cut from both sides of the equation. This results in x as minus 1 as the answer.

Sunday, October 22, 2017

Security is our duty and we shall deliver it

"Security is our duty and we shall deliver it" - This slogan was given by Mohd Anwar Jamal Faiz as a part of his Whitepaper first published on, Slideshare and LinkedIn.

Description of paper:
Quality Management, Information Security, Threat Hunting and Mitigation Plans for a Software Company or a Technology Start-up engaged in building, deploying or consulting in Software and Internet Applications.

Read - World Wide web Learners Consortium - W3LC

This paper could be best described in following words-

Quality Management, Information Security, Threat Hunting and Mitigation Plans for a Software Company or a Technology Start-up engaged in building, deploying or consulting in Software and Internet Applications.

The chief sections of the document would be:

  1. Introduction to Enterprise Risk & Cyber Security
  2. The technologies we employ in
  3. Types of Software testing
  4. Some examples of Cyber Security Firms and what they do
  5. How we achieve a secure product
  6. InfoSec and Managed Security Service Provider
  7. Training and development
  8. Safeguarding against Phishing and Multi-Factor Authentication
  9. Threat hunting, mitigation and Vulnerability Management
  10. The denouement

You can read and download the article from:

Read on LinkedIn:

Friday, March 31, 2017

Sabzi Taala Chaabi... Your but others use !

इसका जवाब दो,
तो मानेंगे whatsapp King: 👍

Its a Challenge.....😉.
      समय लिमिट ⏳: 1 घंटा 🕛

आपको अगर नहीं पता तो सबको forward करो और जानने की कोशिश करो.

इन सवालों के जवाब दीजिये...!!

1. बताओ वो कौन सी सब्ज़ी है जिस में ताला और चाबी दोनों आते हैं ? बताओ क्या है

2. ऐसी कौन सी चीज है जो है तो तुम्हारी, पर उसे दूसरे लोग इस्तेमाल करते हैं ?

3. वो कौन सा काम है जो 1 आदमी अपनी पूरी ज़िंदगी में 1 बार करता है, पर वही काम 1 औरत रोज़ करती है? बताओ क्या?

4. परिवार हरा हम भी हरे; एक थैली में तीन - चार भरे। बताओ क्या ?

👍👍👍 best of luck

3 No.सवाल का उत्तर सिर्फ बुद्धिमान ही दे सकते है। देखते है अपने ग्रुप में कितने बुद्धिमान है

जवाब भेजे,
ग्रुप वालो थोड़ा दिमाग लगाओ,
यह मुश्किल नही, आसान है ।


1.   Laukey   ( lock + key )

2. Naam ( hota aapka hai. Lekin pukarte doosre log hain )

3. Mard shadi karte hue sindoor bharta hai.   Phir aurat roz roz maang bharti hain. 😝

4. Balki sahi to hoga ki ek thaili me 6-7 bhare hote hain. Answer is Matar. Matar ki sabzi.

Tuesday, September 6, 2016

Birthday Box Puzzle : Girl on her birthday deposits 250 rupees. Sister on her birthday takes 50

Puzzle #81:
Birthday box puzzle

एक लडकी ने 20 साल कि उम्र मे एक बॉक्स खरीदा
वो अपने हर जन्मदिन पर ऊसमे Rs.250 डाल देती
और उसकी बहन ऊसमे से Rs.50 अपने हर जन्मदिन पर
निकाल लेती। अगर लडकी कि death 60 साल मेँ हुई।

जब बाक्स खुला तो उसमे से सिर्फ Rs.500 निकले। कैसे ??

Thursday, December 4, 2014

Top List of Programming Interview Puzzles. Code Solution

Following list of programming puzzles and solution (MUST). This list has been prepared with my own voyage through various interviews at Microsoft, Symantec, Google, Adobe and Expedia etc. I have also been in talks with several friends of mine. And following is the list of top problems that seem to be asked in interviews.

Write a function to get the intersection point of two Linked Lists.
There are two singly linked lists in a system. By some programming error the end node of one of the linked list got linked into the second list, forming a inverted Y shaped list. Write a program to get the point where two linked list merge.


Lowest Common Ancestor in a Binary Search Tree.
Given values of two nodes in a Binary Search Tree, write a c program to find the Lowest Common Ancestor (LCA). You may assume that both the values exist in the tree.


String matching where one string contains wildcard characters
Given two strings where first string may contain wild card characters and second string is a normal string. Write a function that returns true if the two strings match. The following are allowed wild card characters in first string.


Anagram Substring Search (Or Search for all permutations)
Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or anagrams) in txt[]. You may assume that n > m.  Expected time complexity is O(n)


Inorder Tree Traversal without recursion and without stack!
Using Morris Traversal, we can traverse the tree without using stack and recursion. The idea of Morris Traversal is based on Threaded Binary Tree. In this traversal, we first create links to Inorder successor and print the data using these links, and finally revert the changes to restore original tree.


Print all possible strings of length k that can be formed from a set of n characters
Given a set of characters and a positive integer k, print all possible strings of length k that can be formed from the given set.


Print all possible combinations of r elements in a given array of size n
Given an array of size n, generate and print all possible combinations of r elements in array. For example, if input array is {1, 2, 3, 4} and r is 2, then output should be {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4} and {3, 4}.


Check if a number is Palindrome
Given an integer, write a function that returns true if the given number is palindrome, else false. For example, 12321 is palindrome, but 1451 is not palindrome.


Data Structure for Dictionary and Spell Checker?
Which data structure can be used for efficiently building a word dictionary and Spell Checker?


Count number of binary strings without consecutive 1’s
Given a positive integer N, count all possible distinct binary strings of length N such that there are no consecutive 1’s.


Shortest path with exactly k edges in a directed and weighted graph
Given a directed and two vertices ‘u’ and ‘v’ in it, find shortest path from ‘u’ to ‘v’ with exactly k edges on the path.


Count all possible walks from a source to a destination with exactly k edges
Given a directed graph and two vertices ‘u’ and ‘v’ in it, count all possible walks from ‘u’ to ‘v’ with exactly k edges on the walk.


--Take Care
And Best Of Luck  :)
Anwar Jamal