Skip to content

Lets Code

  • Array
  • Bitwise
  • Database
  • Mysql
  • Redis
  • Design
  • Design Pattern
  • Dynamic Programming
  • Graph
  • Hashing
  • Linked List
  • Miscellaneous
    • Interesting Read
    • Math
    • Interview
    • InterviewBit
    • Concept
    • Maths
    • Puzzle
    • Random Problem
    • Random Topics
    • Resources
    • OS
    • Priority Queue
    • TODO
  • Python
  • Basic
  • Queue
  • Quora
  • Recursion
  • Search
  • Sorting
  • Stack
  • String
  • Tree
    • Trie
    • BST
    • Heap

Category: Random Problem

December Problem Solving

December 2, 2018December 4, 2018 ALeave a comment

 1 December - Minimum number of jumps to reach end | Set 2 (O(n) solution). SO  2 December - find sum(S) of all contiguous sub-array's max difference, SO 3 December - The Enlightened Ones. HE 4 December - Minimize Cash Flow among a given set of friends who have borrowed money from each other. GFG… Continue reading December Problem Solving →

Prime

June 26, 2017June 26, 2017 ALeave a comment

 Sieve of Eratosthenes -  Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.  GFG Least prime factor of numbers till n - Given a number n, print least prime factors of all numbers from 1 to n.  GFG  Algo: Use  Sieve of… Continue reading Prime →

Important Questions | Mixed | 1

February 9, 2017July 15, 2019 ALeave a comment

Check if two rectangles overlap - instead of checking if they overlap we check if a rectangle lies outside. So we check if a rectangle lies on the right,left, top or bottom of the first rectangle. If it lies outside then don't overlap. Else they overlap.  SO Amazon: Count Negative Integers in Matrix - Numbers… Continue reading Important Questions | Mixed | 1 →

Search

Follow Lets Code on WordPress.com
Create a free website or blog at WordPress.com.
  • Subscribe Subscribed
    • Lets Code
    • Already have a WordPress.com account? Log in now.
    • Lets Code
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started