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.
Software Developer Ii Interview Questions
3,998 software developer ii interview questions shared by candidates
I was asked a question on trees - kind of like inorder
1. Tell about yourself. 2.What's the data strcture or algorithms for your latest project? 3..Do you know database? 4. Motivation about joining Uber? 4.What happend if you have confict with your colleage?
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.
Find the squares in a matrix with only 0s and 1s.
Perguntas no estilo Leetcode-like DSA
If you would like us to know something about you, what would you tell us?
They asked about a key value storage system with several follow ups.
Design a in memory KV store with get/set with commit/rollback as extension.
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