
Tech Revolvers

Problem name: Decode ways Problem statement: A message containing letters from A-Z can be encoded into numbers using the following mapping: ‘A’ -> “1” ‘B’ -> “2” … ‘Z’ -> “26” To decode an encoded message, all the digits must be mapped back into letters using the reverse of the mapping above (there may be multiple ways). For example, “111” can have each… Read more

Problem name: Maximum subarray Problem statement: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Follow up: If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: [4,-1,2,1]… Read more

Problem name: Container With Most Water Problem statement: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0). Find two lines, which, together with the x-axis forms a container, such that the container contains the most water. Notice that… Read more

Problem name: Two Sum Problem statement: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nums = [2,7,11,15], target… Read more

Hosting apps/websites on internet is an important part when it comes to show casing your work or may be deploying your app for a small scale work. Github provides hosting for the websites for free using Github pages where anyone can deploy the webpages. Coming on to the todays topic : Hosting react app on… Read more

<p class="has-drop-cap" value="<amp-fit-text layout="fixed-height" min-font-size="6" max-font-size="72" height="80">A fragment is a common pattern in React which is used to return multiple elements. A fragment is a common pattern in React which is used to return multiple elements. Since in react we have to group jsx under a some parent. Fragments let us group a list of… Read more