LinkedIn software engineer interviews cover algorithms, data structures, system design, and coding problems drawn from real interview rounds.
No verified questions yet for LinkedIn.
TwitterFeed that handles user activity feeds and allows users to follow/unfollow other users.postTweet(userId: int, tweet: str), getNewsFeed(userId: int), follow(followerId: int, followeeId: int), and unfollow(followerId: int, followeeId: int).List[str] for getNewsFeed, containing up to 10 most recent tweets from the user and their followed users.UserIds are in the range of 1 to 10^4Tweet content can be up to 140 characters.LRUCache that supports the following operations:get(key: int) -> int: Returns the value of the key if the key exists, otherwise return -1.put(key: int, value: int): Update the value of the key if the key exists, or add the key-value pair if the key does not exist. When the cache reaches its capacity, it should invalidate the least recently used item before inserting a new item.capacity - maximum number of items the cache can hold.int for get, no output for put.Example 1:1 <= capacity <= 30000 <= key, value <= 10^4Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free