A recruiter reached out to me via email at the end of Nov 2023 to see if I am interested discussing about a backend role at Meta. I replied affirmatively and then we talked over the phone. I discussed my experience with him. He was willing to move forward…
You are given an integer array cookies, where cookies[i] denotes the number of cookies in the ith bag. You are also given an integer k that denotes the number of…
cookies
cookies[i]
ith
k
Leetcode problem link is here.
You are given a 0-indexed array of n integers arr.
n
arr
The interval between two elements in arr is defined as the absolute difference between their indices…
You are given a 0-indexed string pattern of length n consisting of the characters 'I' meaning increasing and 'D' meaning decreasing.
pattern
'I'
'D'
You are given a directed graph of n nodes numbered from 0 to n - 1, where each node has at most one outgoing edge.
0
n - 1
Problem statement:
You are given an array of positive integers beans, where each integer represents the number of magic beans found in a particular magic…
beans
I got this problem from a Single Round Match (SRM) of Topcoder platform. Here is the problem link.
A string is called a square if it is the concatenation of two copies of the same string.