rohan.rapidwolverine
BAN USERTokenized trie. String tokenize every filename so that every space separated word is a token. and then create a trie.
- rohan.rapidwolverine September 01, 2014Constructing the graph starting from the final location. Then the problem is of finding the vertex cover.
Here we can also consider the possibility that one city is visited twice. But in this case the answer may not be unique.
#!/usr/bin/env python
def getVal(tlist, i):
if i < len(tlist):
return tlist[i]
else:
return 0
def addNum(list1,list2):
total = list()
carryOn = 0
index1 = len(list1)-1
index2 = len(list2)-1
while index1 >= 0 and index2 >= 0:
tsum = list1[index1] + list2[index2] + carryOn
total.append(tsum%10)
carryOn = int(tsum/10)
index1-=1
index2-=1
print total,index1,index2
if index2 < 0:
while index1 >=0:
tsum = carryOn + list1[index1]
total.append(tsum%10)
carryOn = int(tsum/10)
index1-=1
print total
else:
while index2 >=0:
tsum = carryOn + list2[index2]
total.append(tsum%10)
carryOn = int(tsum/10)
index2-=1
return total[::-1]
if __name__ == '__main__':
list1 = [1,2,3,4,8]
list2 = [3,7,8,9,2,3,4]
print addNum(list1,list2)
def reverse(str):
reverseStr = list()
for char in str:
reverseStr.push(char)
return "".join(reverseStr)
# or
def reverse2(str):
return str[::-1]
def move(str1):
return str1[-1]+str1[:len(str1)-1]
Repfrancesdpayne, AT&T Customer service email at Cavium Networks
I am Frances Payne from Jacksonville, United States. I am working as a Rental manager in Magna Gases company. I ...
RepTristaRJohn, Reverse Engineering and System Developer at BT
I am an Ophthalmic medical assistant in bluefield USA, I assist in retinal exams and procedures. Referred patients to outside ...
Repjuanajcox4, Python Developer at Axiom Sources
I have 2 years of experience in designing and implementing computer algorithms or models for creating, displaying, and processing various ...
RepI am Frank, 29 year old. I have worked with numerous branches, including payroll and human resources, which allows me ...
Repamysamson688, Accountant
Hi, I am an art teacher, good in all areas of art history, from ancient art through to contemporary art ...
Repcassicjohnson, Android Engineer at Accenture
Hi, I work as an Painter, making art Paintings for the world’s top art galleries. When I have an ...
Repmarierlewis2, AT&T Customer service email at ASAPInfosystemsPvtLtd
I am Marie and I live in Los Angeles USA, I have a strong base in marketing and I believe ...
- rohan.rapidwolverine July 08, 2015