- Write a function to find the longest common prefix string amongst an array of strings.
- If there is no common prefix, return an empty string "".
Input: strs = ["flower","flow","flight"]
Output: "fl"
Input: strs = ["flower","flow","flight"]
Output: "fl"
Input: s = ["h","e","l","l","o"]
Output: ["o","l","l","e","h"]
Input: x = 2.00000, n = 10
Output: 1024.00000
Input: n = 3
Output: 0
Explanation: 3! = 6, no trailing zero.
Input: x = 121
Output: true
Explanation: 121 reads as 121 from left to right and from right to left.
Input: x = 123
Output: 321
Input: nums = [2,2,1]
Output: 1
Input: n = 3
Output: ["1","2","Fizz"]
>>> import re
>>> m = re.match(r'(\w+)@(\w+)\.(\w+)','username@hackerrank.com')
>>> m.group(0) # The entire match
'username@hackerrank.com'
>>> m.group(1) # The first parenthesized subgroup.
'username'
>>> m.group(2) # The second parenthesized subgroup.
'hackerrank'
>>> m.group(3) # The third parenthesized subgroup.
'com'
>>> m.group(1,2,3) # Multiple arguments give us a tuple.
('username', 'hackerrank', 'com')
>>> import re
>>> m = re.search(r'\d+','1234')
>>> m.end()
4
>>> m.start()
0
In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...