is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
1 #!/usr/bin/python
- schoettger.aaron March 11, 20162
3 import sys
4 import time
5
6
7
8 def rev_string(input_data):
9 # Create an empty List Obj for later use
10 final_list = []
11 # Transform and fill a local Obj with the input data
12 my_list = list(input_data)
13 # Getting the range(Len of the list -1, End, Step_Val)
14 range_data = range(len(my_list) - 1, -1, -1)
15 # Start a for loop to step the range data
16 for data_step in range_data:
17 # Fill the list Obj we created at the start
18 final_list.append(my_list[data_step])
19 # once we have appended the data, we then join it back and return
20 final_list = ''.join(final_list)
21 return final_list
22
23
24 def main():
25 # input data
26 data = "This is a string!"
27 # Show the user data before
28 print "Data Before: %s" % data
29 # call the rev function to flip the data
30 data = rev_string(data)
31 # Show the user data after
32 print "Data After: %s" % data
33
34 if __name__ == "__main__":
35 sys.exit(main())
Example output -- >
Data Before: This is a string!
Data After: !gnirts a si sihT