Software Developer Ii Interview Questions

3,998 software developer ii interview questions shared by candidates

1. Given two strings a and b, merge the strings so that the letters are added in alternating order starting with string a. If one string is longer than the other, then append the letters to the end of the merged string. ex. "abcd", "efghi" -> "aebfcgdhi" ex. "", "abcd" -> "abcd" ex. "abcdefg", "zxy" -> "azbxycdefg" Pretty easy. Just interlace them like a merge sort. 2. Rotate matrix around diagonals. Given an n x n matrix M, where n is odd and n > 1, and an integer k, rotate M counterclockwise k times which are not on the main diagonal or on the diagonal from the top right to the bottom left. Return the new matrix. 3. Given a list of strings string_list and a list of words words, determine whether each word in words can be formed as a concatenation of consecutive strings in string_list starting with index 0. ex. word = "oneTwoThree", string_list = ["one", "Three", "Two"] is false because the words aren't consecutive in string_list ex. word = "one", string_list = ["one", "Three", "Two"] is True because the concatenation stops at the first index in string_list ex. word = "one", string_list = ["One", "one", "Two"] is False because the concatenation doesn't start at 0. 4. Given two arrays a and b of equal length, the absolute sum difference is the sum Math.abs(a[i] - b[i]). Replace one number in a with any number in a to minimize the absolute sum difference.
avatar

Software Engineer II

Interviewed at Uber

3.7
Jan 13, 2021

1. Given two strings a and b, merge the strings so that the letters are added in alternating order starting with string a. If one string is longer than the other, then append the letters to the end of the merged string. ex. "abcd", "efghi" -> "aebfcgdhi" ex. "", "abcd" -> "abcd" ex. "abcdefg", "zxy" -> "azbxycdefg" Pretty easy. Just interlace them like a merge sort. 2. Rotate matrix around diagonals. Given an n x n matrix M, where n is odd and n > 1, and an integer k, rotate M counterclockwise k times which are not on the main diagonal or on the diagonal from the top right to the bottom left. Return the new matrix. 3. Given a list of strings string_list and a list of words words, determine whether each word in words can be formed as a concatenation of consecutive strings in string_list starting with index 0. ex. word = "oneTwoThree", string_list = ["one", "Three", "Two"] is false because the words aren't consecutive in string_list ex. word = "one", string_list = ["one", "Three", "Two"] is True because the concatenation stops at the first index in string_list ex. word = "one", string_list = ["One", "one", "Two"] is False because the concatenation doesn't start at 0. 4. Given two arrays a and b of equal length, the absolute sum difference is the sum Math.abs(a[i] - b[i]). Replace one number in a with any number in a to minimize the absolute sum difference.

Round 1 (Problem Solving): Given two list of strings, find the set of strings from the 2nd list which are a trans-addition of strings from the 1st list. Round 2 (Problem Solving): Given a matrix of size N x M, find the number of paths to go from the bottom left to the bottom right corner of the matrix. You can only move in three directions: diagonally upward right, right, and diagonally downward right. Round 3 (Problem Solving): Given an Android app with a list of APKs and the Android version it supports, partition all the android versions based on the unique set of APKs. Round 4 (Googliness): A cultural fitment with basic behavioural questions based on your work expectations, leadership abilities, etc.
avatar

Software Engineer II

Interviewed at Google

4.4
Jun 13, 2022

Round 1 (Problem Solving): Given two list of strings, find the set of strings from the 2nd list which are a trans-addition of strings from the 1st list. Round 2 (Problem Solving): Given a matrix of size N x M, find the number of paths to go from the bottom left to the bottom right corner of the matrix. You can only move in three directions: diagonally upward right, right, and diagonally downward right. Round 3 (Problem Solving): Given an Android app with a list of APKs and the Android version it supports, partition all the android versions based on the unique set of APKs. Round 4 (Googliness): A cultural fitment with basic behavioural questions based on your work expectations, leadership abilities, etc.

You are given a spotify like service, where you will have to do the following: 1. create functions to: Add_song(song_name: str) play_song(song_id: int, user_id: int) print_analytics() 2. write a function such that you can return last_three_played songs
avatar

Software Engineer II

Interviewed at Rippling

3.7
Jan 25, 2025

You are given a spotify like service, where you will have to do the following: 1. create functions to: Add_song(song_name: str) play_song(song_id: int, user_id: int) print_analytics() 2. write a function such that you can return last_three_played songs

Viewing 2311 - 2320 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 3,998 interview questions and reports from Software developer ii interviews. Prepare for your interview. Get hired. Love your job.