I came across a post on Leetcode forum about OOP design and the user who posted claimed that he was…
Read moreQuestion statement Design an algorithm to encode a list of strings to a single string. The encode…
Read moreThe problem statement : https://leetcode.com/problems/contains-duplicate/ The simplest and naive…
Read moreGiven an integer x , return true if x is a palindrome and false otherwise. Examples: Input : x…
Read moreGiven a quare matrix mat , return the sum of the matrix diagonals. Only include the sum of all the…
Read moreGiven an integer array nums and an integer k , return the k th largest element in the arr…
Read moreGiven an array of integers nums sorted in non-decreasing order, find the starting and ending po…
Read more