Tip 1 : Practice algorithms
Tip 2 : Practice sql
Tip 1 : Keep it short
Tip 2 : Don't add false achievements
You can give the test any time. Environment was not very well. Questions were not well explained.
<protocol>://<domain>.ru[/<context>]
where,
1. <protocol> can either be equal to "http" (without the quotes) or "ftp" (without the quotes)
2. <domain> is a non-empty string, consisting of lowercase English letters,
3. The /<context> part may not be present. If it is present, then <context> is a non-empty string, consisting of lowercase English letters.
'http://sun.ru/sunm', and 'ftp://guj.ru' are the valid address.
Input:
If the given adjacency matrix is:
[0 1 0]
[1 0 1]
[0 1 0] and 'm' = 3.
Output: YES
Explanation:
The given adjacency matrix tells us that 1 is connected to 2 and 2 is connected to 3. We can use three different colors and color all three nodes.
Hence we return true.
Consider If N = 2, then there can be 4 different ways to color fences such that at most 2 adjacent fences have the same color-:
[ [0, 1],
[1, 0],
[1, 1],
[0, 0] ]
Hence, the answer is 4.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?