Shab
BAN USER
0 Answers Looking for study Buddy
Hi Guys
- Shab June 06, 2016
I am looking for a study buddy as I am preparing for Software Development interviews. My areas of Focus is wide and people looking for various preparation areas are welcome to join me. Planned study planned period ranges between 15 days to 30 days. Not beyond this.
Areas of Focus.
Algorithms & Data Structure
Python and Frameworks - Flask/ Django
Hadoop/ Map Reduce/ Hive/ Pig/ Hbase/ Spark (Beginner)
Data Warehouse/ Business Intelligence/ Data Engineer.
Please comment on this topic and I would be happy to add you to my group.
Thanks| Flag | PURGE
Python Solution
# Approach 1: using built in replace
def replaceSpaces(mystring):
return mystring.replace(" ", '%20')
# Approach 2: using built in split and join - which is faster than replace
# Fails to address if there is a space at the end of the string.
def replaceSpaces(mystring):
return "%20".join(mystring.split())
# Approach 3: using append TC: SC: ?
def replaceSpaces(mystring):
charlist = []
for i in mystring:
if i == ' ':
i = '%20'
charlist.append(i)
return ''.join(charlist)
Python Solution
Output : AC
- Shab June 11, 2016