Senior software engineer Interview Questions in Chicago, IL | Glassdoor.co.in

# Senior software engineer Interview Questions in Chicago, IL

367

senior software engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Sr. Software Engineer at Tribune Publishing was asked...

13 Jun 2018
 A few other questions like what is CORS, delegation, do I have a styling standard.4 AnswersI answered these, I explained why I like BEM etc.I also explained that córa is cross orogen resource sparing and is a way of setting http headers to restrict access to resources. I also started explained how it could help against csrf and started going into tokens. I feel it may have been unecessary. I felt as if the interviewers thought I confused those two so I probably should have gone with a shorter answer.*cors *cross origin resource sharingShow more responsesThere was also a question abou the difference betweenadding script as async and defer, what bubbling and event propagation is.

### Senior Software Engineer at Snapsheet was asked...

10 Jun 2017
 What's your salary?3 AnswersDon't answer this at any company.What sort of algorithmic questions they asked you. I am a newbie it will helpI have been approached by them too and am curious about the questions?

22 Apr 2016
 Given a very long string composed of numbers as characters, find the four character substring that has the largest multiple. For example, given the string "809723", the two char substring with the largest multiple is "97", having a multiple 9*7 = 63.4 Answersmax([functools.reduce(operator.mul, data[i-4:i]) for i in data if i > 3])max([functools.reduce(operator.mul, data[i-4:i]) for (i, e) in enumerate(data) if e > 3])Show more responsesdef largest_2str_multipler(a): l = len(a) m = int(a[0])*int(a[1]) for x in range(1,l-1): if m < int(a[x])*int(a[x+1]): m = int(a[x])*int(a[x+1]) return m One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.

22 Apr 2016
 Write a function to return the nth fibonacci number. The first two can be assumed to be 1 and 1. The third and fourth are then calculated to be 2 and 3.3 AnswersThe matlab example sets N = 12 (the 12th fab. number) which happens to be 144. N = 12; f = ones(N,1); for i = 3:N; f(i) = f(i-1) + f(i-2); end; f(end)fib = {1:1, 2:1} def calc_fib(n): if n in fib.keys(): return fib[n] else: fib[n]=calc_fib(n-1)+calc_fib(n-2) return fib[n] print(calc_fib(9))remember how to approximate as N is large

21 Apr 2020
 Give an algorithm to find the kth largest element in an unsorted vector of integers.3 AnswersRun k iterations of a bubble sort, which is O(kn). This answer is not optimal, and the rest of the phone screen was working toward getting me to find the better solution. I am pretty sure I did not live up to expectations on this problem and that is why they didn't proceed with me. Ok, so in typical HFT fashion, if candidate can't solve one particular problem, then by induction they can't solve any problems.Did you guys talk about quicksort for this problem? It’s O(nlogn), which is the best sorting algo you can get other than radix sort.And you don’t need to run bubble sort k times. You just run it once and then index into the array at k

4 Apr 2011
 We have data that gets loaded once a week. With that in mind we have an application that clients enter search data in to and then SQL has to dynamically build a statement that has 25 different data points/relationships. It works fine, but takes upwards of 30 seconds to return the data to the client. You can not change the existing schema, but you can however add to it. Indexes are already present and optimized on all the different tables. What could you do to make this process much faster??2 AnswersWithout being able to restructure the existing schema your only choice is to de-normalize the data. When the data gets loaded on that weekly schedule, also build a flat table so there are no relationships being built.Create a denormalized view with indexes on it for most frequently asked questions and read directly from that!

### Senior Software Engineer at Morningstar was asked...

3 Oct 2017
 A software application to be designed for the financial client2 AnswersMade to code and design itCan you please tell the Problem Statement of the Financial Client? Did they asked you to code by using google ? Did they allowed you to use any technology ?

22 Apr 2016
 How would you write a program to move inside a square spiral? Start at the upper left corner of the square and walk its edges clockwise. Just before re-approaching the upper left corner, spiral into the square instead, ultimately arriving at the center of the square.2 Answersdef spiral(mat): mat = np.array(mat) arr = [] if mat.shape == (1, 1): arr.append(mat[0][0]) return arr else: arr.extend(mat[0, :]) arr.extend(spiral(np.rot90(mat[1:, :]))) return arrdef print_spiral(matrix): print_spiral_help(matrix, 0, 0, 0, len(matrix[0]) - 1, len(matrix) - 1) def print_spiral_help(matrix, dir, top, left, right, bot): if left > right or top > bot: return # top if dir == 0: for i in range(left, right + 1): print matrix[top][i], print_spiral_help(matrix, 1, top + 1, left, right, bot) # Right elif dir == 1: for i in range(top, bot + 1): print matrix[i][right], print_spiral_help(matrix, 3, top, left, right - 1, bot) # Left elif dir == 2: for i in range(bot, top - 1, -1): print matrix[i][left], print_spiral_help(matrix, 0, top, left + 1, right, bot) # Bottom elif dir == 3: for i in range(right, left - 1, -1): print matrix[bot][i], print_spiral_help(matrix, 2, top, left, right, bot - 1)

### Senior Software Engineer at Rally Health was asked...

19 Mar 2019
 Write a function that determines if two strings are anagrams.2 Answers//Big O n function isAnagram(s1, s2){ if(s1.length !== s2.length ){ return false; } const convertToMap = s => { const keyMap = Array(26).fill(0); for(const c of s){ const cAlphaCode = c.charCodeAt(0) - 97; ++keyMap[cAlphaCode]; } const key = keyMap.join('#'); return key; } const s1Key = convertToMap(s1); const s2Key = convertToMap(s2); return s1Key === s2Key; } // Big O nlogn function isAnagramV2(s1, s2){ return s1.split('').sort().join('') === s2.split('').sort().join('') } console.log(isAnagram('abc', 'cba')); console.log(isAnagramV2('abc', 'cba'));change this line const cAlphaCode = c.charCodeAt(0) - 97; to const cAlphaCode = c.toLowerCase().charCodeAt(0) - 97;

### Senior Oracle Pl/SQL Developer at Clarity Partners was asked...

25 Sep 2019
 What is the tnsnames?2 Answersit is a folder that contain database connection informations.It is a file that contains a database connections information
110 of 367 Interview Questions