Software developer co op Interview Questions | Glassdoor.ca

Software developer co op Interview Questions

441

software developer co op interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Given an array of arrays where each sub-array contains an arbitrary number of random strings, find the strings that occur in every sub-array and return them (the returned result strings must also be in an array). There can be duplicates of the same string in any of the sub-arrays.

2 Answers

def solution(a): d = {} resultArray = [] for array in a: duplicateString = [] for item in array: if item not in d: d[item] = 1 duplicateString.append(item) elif item in d: if item not in duplicateString: d[item] += 1 for key in d: if d[key] >= len(a): resultArray.append(key) return resultArray

def common_strings(arr): if len(arr)==0: return None arr1=arr[0] In_all_arrays=[] for val in arr1: count=0 for j in range(1,len(arr)): if val not in arr[j]: break; if val in arr[j]: count+=1 if count==(len(arr)-1): In_all_arrays.append(val) return In_all_arrays arr=[['kannav','T','D'],['kannav','Dhawan','T','K'],['kannav','T','D']] cs=common_strings(arr) print(cs)

Search in rotated sorted list, check if two rectangle overlaps. Both are on leetcode.

2 Answers

Motivations for working @ Hootsuite

2 Answers

Given a stream of data of votes, implement an algorithm to count the majority winner.

2 Answers

Divide a number using only addition and subtraction.

2 Answers

Implement a Queue

1 Answer

Why do you want to work for Frozen Mountain?

1 Answer

Previous experiences in other similar jobs

1 Answer

What did you choose Hootsuite? What do you know about the company?

1 Answer

Question involving the use of a hashtable and some preprocessing to get a query in constant (average) time.

1 Answer
110 of 441 Interview Questions