2024  1

January  1

Real-Time Voice🎙️ Translator🔊

January 5, 2024 · 8 min · 1625 words · Samir Paul

2023  6

December  1

Data Structures and Algorithms for Coding Interview

December 20, 2023 · 2 min · 269 words · Samir Paul

July  2

Online PDF Compression Tool

July 20, 2023 · 3 min · 437 words · Samir Paul

System Design Course

July 7, 2023 · 195 min · 41493 words · Samir Paul

June  1

Operating System Notes For Placement

June 20, 2023 · 41 min · 8584 words · Samir Paul

April  1

PyShooter Python Game

April 27, 2023 · 1 min · 114 words · Samir Paul

March  1

Text File Compressor De-compressor Web App

March 12, 2023 · 2 min · 309 words · Samir Paul

2022  9

December  1

Some of My Online Courses Certificates

December 20, 2022 · 1 min · 29 words · Samir Paul

October  1

URL Shortening Service

October 29, 2022 · 16 min · 3403 words · Samir Paul

July  1

SQL Joins - Inner, Left, Right and Full Joins

July 20, 2022 · 1 min · 37 words · Samir Paul

May  6

Leetcode Solutions Cheatsheet

May 20, 2022 · 203 min · 43105 words · Samir Paul

List of Python Frameworks Libraries Software and Resources

May 20, 2022 · 38 min · 7995 words · Samir Paul

Lists of Technical Interview Questions

May 20, 2022 · 15 min · 3168 words · Samir Paul

Open External Links in a New Window Using JavaScript

May 20, 2022 · 2 min · 340 words · Samir Paul

Python Cheat Sheet for Leetcode

May 20, 2022 · 16 min · 3339 words · Samir Paul

System design interview for IT companies

May 20, 2022 · 6 min · 1158 words · Samir Paul

2021  13

February  4

Curated List of Project Based Tutorials

February 20, 2021 · 13 min · 2751 words · Samir Paul

High-level design

February 20, 2021 · 1 min · 18 words · Samir Paul

LeetCode all two pointers problems

February 20, 2021 · 2 min · 301 words · Samir Paul

LeetCode Greedy for Beginners

February 20, 2021 · 3 min · 476 words · Samir Paul

January  9

Binary Search Template

January 20, 2021 · 23 min · 4800 words · Samir Paul

Company engineering blog links

January 20, 2021 · 1 min · 137 words · Samir Paul

Complete Computer Science Study Plan to Become a Software Engineer

January 20, 2021 · 49 min · 10368 words · Samir Paul

Computer Networks Notes

January 20, 2021 · 131 min · 27775 words · Samir Paul

DP for Beginners

January 20, 2021 · 8 min · 1552 words · Samir Paul

Dynamic Programming Patterns

January 20, 2021 · 10 min · 2077 words · Samir Paul

Embed MusicApp

January 20, 2021 · 1 min · 35 words · Samir Paul

Google Programmable Search Engine

January 20, 2021 · 1 min · 186 words · Samir Paul

Graph For Beginners

January 20, 2021 · 9 min · 1795 words · Samir Paul

2020  3018

November  576

Two Sum

November 24, 2020 · 5 min · 1006 words · Samir Paul

Add Two Numbers

November 24, 2020 · 10 min · 2105 words · Samir Paul

Longest Substring Without Repeating Characters

November 24, 2020 · 7 min · 1329 words · Samir Paul

Median of Two Sorted Arrays

November 24, 2020 · 10 min · 1961 words · Samir Paul

Longest Palindromic Substring

November 24, 2020 · 10 min · 2053 words · Samir Paul

Zigzag Conversion

November 24, 2020 · 9 min · 1859 words · Samir Paul

Reverse Integer

November 24, 2020 · 5 min · 1053 words · Samir Paul

String to Integer (atoi)

November 24, 2020 · 7 min · 1422 words · Samir Paul

Palindrome Number

November 24, 2020 · 5 min · 1048 words · Samir Paul

Regular Expression Matching

November 24, 2020 · 13 min · 2737 words · Samir Paul

Container With Most Water

November 24, 2020 · 5 min · 878 words · Samir Paul

Integer to Roman

November 24, 2020 · 4 min · 804 words · Samir Paul

Roman to Integer

November 24, 2020 · 6 min · 1171 words · Samir Paul

Longest Common Prefix

November 24, 2020 · 4 min · 844 words · Samir Paul

3Sum

November 24, 2020 · 9 min · 1889 words · Samir Paul

3Sum Closest

November 24, 2020 · 5 min · 939 words · Samir Paul

Letter Combinations of a Phone Number

November 24, 2020 · 9 min · 1797 words · Samir Paul

4Sum

November 24, 2020 · 8 min · 1664 words · Samir Paul

Remove Nth Node From End of List

November 24, 2020 · 6 min · 1089 words · Samir Paul

Valid Parentheses

November 24, 2020 · 6 min · 1095 words · Samir Paul

Merge Two Sorted Lists

November 24, 2020 · 11 min · 2324 words · Samir Paul

Generate Parentheses

November 24, 2020 · 5 min · 956 words · Samir Paul

Merge k Sorted Lists

November 24, 2020 · 7 min · 1375 words · Samir Paul

Swap Nodes in Pairs

November 24, 2020 · 9 min · 1720 words · Samir Paul

Reverse Nodes in k-Group

November 23, 2020 · 8 min · 1670 words · Samir Paul

Remove Duplicates from Sorted Array

November 23, 2020 · 5 min · 1009 words · Samir Paul

Remove Element

November 23, 2020 · 4 min · 789 words · Samir Paul

Find the Index of the First Occurrence in a String

November 23, 2020 · 7 min · 1469 words · Samir Paul

Divide Two Integers

November 23, 2020 · 6 min · 1179 words · Samir Paul

Substring with Concatenation of All Words

November 23, 2020 · 9 min · 1787 words · Samir Paul

Next Permutation

November 23, 2020 · 5 min · 1054 words · Samir Paul

Longest Valid Parentheses

November 23, 2020 · 9 min · 1839 words · Samir Paul

Search in Rotated Sorted Array

November 23, 2020 · 6 min · 1217 words · Samir Paul

Find First and Last Position of Element in Sorted Array

November 23, 2020 · 5 min · 1055 words · Samir Paul

Search Insert Position

November 23, 2020 · 4 min · 641 words · Samir Paul

Valid Sudoku

November 23, 2020 · 5 min · 998 words · Samir Paul

Sudoku Solver

November 23, 2020 · 8 min · 1535 words · Samir Paul

Count and Say

November 23, 2020 · 6 min · 1067 words · Samir Paul

Combination Sum

November 23, 2020 · 9 min · 1847 words · Samir Paul

Combination Sum II

November 23, 2020 · 11 min · 2300 words · Samir Paul

First Missing Positive

November 23, 2020 · 5 min · 1021 words · Samir Paul

Trapping Rain Water

November 23, 2020 · 5 min · 868 words · Samir Paul

Multiply Strings

November 23, 2020 · 7 min · 1353 words · Samir Paul

Wildcard Matching

November 23, 2020 · 5 min · 977 words · Samir Paul

Jump Game II

November 23, 2020 · 5 min · 865 words · Samir Paul

Permutations

November 23, 2020 · 6 min · 1166 words · Samir Paul

Permutations II

November 23, 2020 · 6 min · 1103 words · Samir Paul

Rotate Image

November 23, 2020 · 4 min · 827 words · Samir Paul

Group Anagrams

November 22, 2020 · 6 min · 1162 words · Samir Paul

Pow(x, n)

November 22, 2020 · 4 min · 815 words · Samir Paul

N-Queens

November 22, 2020 · 7 min · 1331 words · Samir Paul

N-Queens II

November 22, 2020 · 4 min · 842 words · Samir Paul

Maximum Subarray

November 22, 2020 · 5 min · 960 words · Samir Paul

Spiral Matrix

November 22, 2020 · 17 min · 3423 words · Samir Paul

Jump Game

November 22, 2020 · 4 min · 678 words · Samir Paul

Merge Intervals

November 22, 2020 · 6 min · 1265 words · Samir Paul

Insert Interval

November 22, 2020 · 9 min · 1802 words · Samir Paul

Length of Last Word

November 22, 2020 · 4 min · 784 words · Samir Paul

Spiral Matrix II

November 22, 2020 · 7 min · 1282 words · Samir Paul

Permutation Sequence

November 22, 2020 · 5 min · 883 words · Samir Paul

Rotate List

November 22, 2020 · 7 min · 1412 words · Samir Paul

Unique Paths

November 22, 2020 · 9 min · 1723 words · Samir Paul

Unique Paths II

November 22, 2020 · 5 min · 1035 words · Samir Paul

Minimum Path Sum

November 22, 2020 · 6 min · 1125 words · Samir Paul

Valid Number

November 22, 2020 · 8 min · 1496 words · Samir Paul

Plus One

November 22, 2020 · 4 min · 681 words · Samir Paul

Add Binary

November 22, 2020 · 5 min · 872 words · Samir Paul

Text Justification

November 22, 2020 · 7 min · 1458 words · Samir Paul

Sqrt(x)

November 22, 2020 · 4 min · 680 words · Samir Paul

Climbing Stairs

November 22, 2020 · 9 min · 1842 words · Samir Paul

Simplify Path

November 22, 2020 · 5 min · 963 words · Samir Paul

Edit Distance

November 22, 2020 · 5 min · 1059 words · Samir Paul

Set Matrix Zeroes

November 21, 2020 · 12 min · 2356 words · Samir Paul

Search a 2D Matrix

November 21, 2020 · 7 min · 1451 words · Samir Paul

Sort Colors

November 21, 2020 · 4 min · 832 words · Samir Paul

Minimum Window Substring

November 21, 2020 · 8 min · 1539 words · Samir Paul

Combinations

November 21, 2020 · 8 min · 1564 words · Samir Paul

Subsets

November 21, 2020 · 6 min · 1068 words · Samir Paul

Word Search

November 21, 2020 · 9 min · 1902 words · Samir Paul

Remove Duplicates from Sorted Array II

November 21, 2020 · 5 min · 959 words · Samir Paul

Search in Rotated Sorted Array II

November 21, 2020 · 5 min · 941 words · Samir Paul

Remove Duplicates from Sorted List II

November 21, 2020 · 6 min · 1270 words · Samir Paul

Remove Duplicates from Sorted List

November 21, 2020 · 5 min · 878 words · Samir Paul

Largest Rectangle in Histogram

November 21, 2020 · 5 min · 1013 words · Samir Paul

Maximal Rectangle

November 21, 2020 · 7 min · 1327 words · Samir Paul

Partition List

November 21, 2020 · 5 min · 933 words · Samir Paul

Scramble String

November 21, 2020 · 12 min · 2476 words · Samir Paul

Merge Sorted Array

November 21, 2020 · 5 min · 1046 words · Samir Paul

Gray Code

November 21, 2020 · 3 min · 611 words · Samir Paul

Subsets II

November 21, 2020 · 8 min · 1603 words · Samir Paul

Decode Ways

November 21, 2020 · 7 min · 1430 words · Samir Paul

Reverse Linked List II

November 21, 2020 · 8 min · 1536 words · Samir Paul

Restore IP Addresses

November 21, 2020 · 6 min · 1174 words · Samir Paul

Binary Tree Inorder Traversal

November 21, 2020 · 12 min · 2544 words · Samir Paul

Unique Binary Search Trees II

November 21, 2020 · 6 min · 1203 words · Samir Paul

Unique Binary Search Trees

November 21, 2020 · 3 min · 610 words · Samir Paul

Interleaving String

November 20, 2020 · 16 min · 3385 words · Samir Paul

Validate Binary Search Tree

November 20, 2020 · 9 min · 1716 words · Samir Paul

Recover Binary Search Tree

November 20, 2020 · 6 min · 1094 words · Samir Paul

Same Tree

November 20, 2020 · 14 min · 2791 words · Samir Paul

Symmetric Tree

November 20, 2020 · 7 min · 1292 words · Samir Paul

Binary Tree Level Order Traversal

November 20, 2020 · 6 min · 1174 words · Samir Paul

Binary Tree Zigzag Level Order Traversal

November 20, 2020 · 7 min · 1335 words · Samir Paul

Maximum Depth of Binary Tree

November 20, 2020 · 5 min · 897 words · Samir Paul

Construct Binary Tree from Preorder and Inorder Traversal

November 20, 2020 · 11 min · 2243 words · Samir Paul

Construct Binary Tree from Inorder and Postorder Traversal

November 20, 2020 · 6 min · 1139 words · Samir Paul

Binary Tree Level Order Traversal II

November 20, 2020 · 5 min · 996 words · Samir Paul

Convert Sorted Array to Binary Search Tree

November 20, 2020 · 6 min · 1253 words · Samir Paul

Convert Sorted List to Binary Search Tree

November 20, 2020 · 8 min · 1691 words · Samir Paul

Balanced Binary Tree

November 20, 2020 · 6 min · 1156 words · Samir Paul

Minimum Depth of Binary Tree

November 20, 2020 · 10 min · 2052 words · Samir Paul

Path Sum

November 20, 2020 · 6 min · 1129 words · Samir Paul

Path Sum II

November 20, 2020 · 6 min · 1099 words · Samir Paul

Flatten Binary Tree to Linked List

November 20, 2020 · 7 min · 1314 words · Samir Paul

Distinct Subsequences

November 20, 2020 · 6 min · 1253 words · Samir Paul

Populating Next Right Pointers in Each Node

November 20, 2020 · 9 min · 1751 words · Samir Paul

Populating Next Right Pointers in Each Node II

November 20, 2020 · 11 min · 2327 words · Samir Paul

Pascal’s Triangle

November 20, 2020 · 3 min · 600 words · Samir Paul

Pascal’s Triangle II

November 20, 2020 · 3 min · 517 words · Samir Paul

Triangle

November 20, 2020 · 6 min · 1073 words · Samir Paul

Best Time to Buy and Sell Stock

November 19, 2020 · 4 min · 732 words · Samir Paul

Best Time to Buy and Sell Stock II

November 19, 2020 · 7 min · 1459 words · Samir Paul

Best Time to Buy and Sell Stock III

November 19, 2020 · 4 min · 805 words · Samir Paul

Binary Tree Maximum Path Sum

November 19, 2020 · 7 min · 1430 words · Samir Paul

Valid Palindrome

November 19, 2020 · 5 min · 1028 words · Samir Paul

Word Ladder II

November 19, 2020 · 5 min · 984 words · Samir Paul

Word Ladder

November 19, 2020 · 10 min · 2072 words · Samir Paul

Longest Consecutive Sequence

November 19, 2020 · 7 min · 1396 words · Samir Paul

Sum Root to Leaf Numbers

November 19, 2020 · 6 min · 1263 words · Samir Paul

Surrounded Regions

November 19, 2020 · 13 min · 2726 words · Samir Paul

Palindrome Partitioning

November 19, 2020 · 5 min · 952 words · Samir Paul

Palindrome Partitioning II

November 19, 2020 · 5 min · 897 words · Samir Paul

Clone Graph

November 19, 2020 · 6 min · 1086 words · Samir Paul

Gas Station

November 19, 2020 · 5 min · 923 words · Samir Paul

Candy

November 19, 2020 · 6 min · 1148 words · Samir Paul

Single Number

November 19, 2020 · 3 min · 474 words · Samir Paul

Single Number II

November 19, 2020 · 7 min · 1351 words · Samir Paul

Copy List with Random Pointer

November 19, 2020 · 11 min · 2134 words · Samir Paul

Word Break

November 19, 2020 · 9 min · 1814 words · Samir Paul

Word Break II

November 19, 2020 · 6 min · 1110 words · Samir Paul

Linked List Cycle

November 19, 2020 · 5 min · 970 words · Samir Paul

Linked List Cycle II

November 19, 2020 · 6 min · 1223 words · Samir Paul

Reorder List

November 19, 2020 · 8 min · 1642 words · Samir Paul

Binary Tree Preorder Traversal

November 19, 2020 · 9 min · 1711 words · Samir Paul

Binary Tree Postorder Traversal

November 18, 2020 · 9 min · 1893 words · Samir Paul

LRU Cache

November 18, 2020 · 11 min · 2158 words · Samir Paul

Insertion Sort List

November 18, 2020 · 3 min · 598 words · Samir Paul

Sort List

November 18, 2020 · 8 min · 1599 words · Samir Paul

Max Points on a Line

November 18, 2020 · 6 min · 1238 words · Samir Paul

Evaluate Reverse Polish Notation

November 18, 2020 · 5 min · 950 words · Samir Paul

Reverse Words in a String

November 18, 2020 · 4 min · 752 words · Samir Paul

Maximum Product Subarray

November 18, 2020 · 4 min · 671 words · Samir Paul

Find Minimum in Rotated Sorted Array

November 18, 2020 · 4 min · 702 words · Samir Paul

Find Minimum in Rotated Sorted Array II

November 18, 2020 · 3 min · 610 words · Samir Paul

Min Stack

November 18, 2020 · 6 min · 1178 words · Samir Paul

Binary Tree Upside Down

November 18, 2020 · 3 min · 564 words · Samir Paul

Read N Characters Given Read4

November 18, 2020 · 6 min · 1105 words · Samir Paul

Read N Characters Given read4 II - Call Multiple Times

November 18, 2020 · 6 min · 1157 words · Samir Paul

Longest Substring with At Most Two Distinct Characters

November 18, 2020 · 2 min · 387 words · Samir Paul

Intersection of Two Linked Lists

November 18, 2020 · 6 min · 1275 words · Samir Paul

One Edit Distance

November 18, 2020 · 3 min · 487 words · Samir Paul

Find Peak Element

November 18, 2020 · 4 min · 648 words · Samir Paul

Missing Ranges

November 18, 2020 · 4 min · 699 words · Samir Paul

Maximum Gap

November 18, 2020 · 5 min · 894 words · Samir Paul

Compare Version Numbers

November 18, 2020 · 5 min · 907 words · Samir Paul

Fraction to Recurring Decimal

November 18, 2020 · 4 min · 836 words · Samir Paul

Two Sum II - Input Array Is Sorted

November 18, 2020 · 7 min · 1432 words · Samir Paul

Excel Sheet Column Title

November 18, 2020 · 2 min · 410 words · Samir Paul

Majority Element

November 17, 2020 · 5 min · 866 words · Samir Paul

Two Sum III - Data structure design

November 17, 2020 · 3 min · 620 words · Samir Paul

Excel Sheet Column Number

November 17, 2020 · 2 min · 295 words · Samir Paul

Factorial Trailing Zeroes

November 17, 2020 · 2 min · 279 words · Samir Paul

Binary Search Tree Iterator

November 17, 2020 · 13 min · 2593 words · Samir Paul

Dungeon Game

November 17, 2020 · 4 min · 719 words · Samir Paul

Combine Two Tables

November 17, 2020 · 2 min · 423 words · Samir Paul

Second Highest Salary

November 17, 2020 · 2 min · 381 words · Samir Paul

Nth Highest Salary

November 17, 2020 · 2 min · 255 words · Samir Paul

Rank Scores

November 17, 2020 · 2 min · 384 words · Samir Paul

Largest Number

November 17, 2020 · 3 min · 534 words · Samir Paul

Consecutive Numbers

November 17, 2020 · 4 min · 641 words · Samir Paul

Employees Earning More Than Their Managers

November 17, 2020 · 2 min · 280 words · Samir Paul

Duplicate Emails

November 17, 2020 · 2 min · 281 words · Samir Paul

Customers Who Never Order

November 17, 2020 · 2 min · 390 words · Samir Paul

Department Highest Salary

November 17, 2020 · 3 min · 557 words · Samir Paul

Department Top Three Salaries

November 17, 2020 · 3 min · 609 words · Samir Paul

Reverse Words in a String II

November 17, 2020 · 3 min · 541 words · Samir Paul

Repeated DNA Sequences

November 17, 2020 · 5 min · 895 words · Samir Paul

Best Time to Buy and Sell Stock IV

November 17, 2020 · 13 min · 2697 words · Samir Paul

Rotate Array

November 17, 2020 · 5 min · 878 words · Samir Paul

Reverse Bits

November 17, 2020 · 3 min · 511 words · Samir Paul

Number of 1 Bits

November 17, 2020 · 4 min · 696 words · Samir Paul

Word Frequency

November 17, 2020 · 1 min · 115 words · Samir Paul

Valid Phone Numbers

November 16, 2020 · 1 min · 101 words · Samir Paul

Transpose File

November 16, 2020 · 1 min · 57 words · Samir Paul

Tenth Line

November 16, 2020 · 1 min · 80 words · Samir Paul

Delete Duplicate Emails

November 16, 2020 · 2 min · 387 words · Samir Paul

Rising Temperature

November 16, 2020 · 2 min · 313 words · Samir Paul

House Robber

November 16, 2020 · 4 min · 719 words · Samir Paul

Binary Tree Right Side View

November 16, 2020 · 8 min · 1536 words · Samir Paul

Number of Islands

November 16, 2020 · 16 min · 3399 words · Samir Paul

Bitwise AND of Numbers Range

November 16, 2020 · 2 min · 289 words · Samir Paul

Happy Number

November 16, 2020 · 6 min · 1120 words · Samir Paul

Remove Linked List Elements

November 16, 2020 · 4 min · 755 words · Samir Paul

Count Primes

November 16, 2020 · 3 min · 494 words · Samir Paul

Isomorphic Strings

November 16, 2020 · 5 min · 895 words · Samir Paul

Reverse Linked List

November 16, 2020 · 7 min · 1482 words · Samir Paul

Course Schedule

November 16, 2020 · 6 min · 1260 words · Samir Paul

Implement Trie (Prefix Tree)

November 16, 2020 · 10 min · 1934 words · Samir Paul

Minimum Size Subarray Sum

November 16, 2020 · 8 min · 1684 words · Samir Paul

Course Schedule II

November 16, 2020 · 6 min · 1181 words · Samir Paul

Design Add and Search Words Data Structure

November 16, 2020 · 7 min · 1309 words · Samir Paul

Word Search II

November 16, 2020 · 7 min · 1483 words · Samir Paul

House Robber II

November 16, 2020 · 4 min · 708 words · Samir Paul

Shortest Palindrome

November 16, 2020 · 4 min · 823 words · Samir Paul

Kth Largest Element in an Array

November 16, 2020 · 6 min · 1152 words · Samir Paul

Combination Sum III

November 16, 2020 · 11 min · 2234 words · Samir Paul

Contains Duplicate

November 15, 2020 · 4 min · 771 words · Samir Paul

The Skyline Problem

November 15, 2020 · 5 min · 959 words · Samir Paul

Contains Duplicate II

November 15, 2020 · 3 min · 583 words · Samir Paul

Contains Duplicate III

November 15, 2020 · 17 min · 3542 words · Samir Paul

Maximal Square

November 15, 2020 · 4 min · 669 words · Samir Paul

Count Complete Tree Nodes

November 15, 2020 · 9 min · 1821 words · Samir Paul

Rectangle Area

November 15, 2020 · 4 min · 693 words · Samir Paul

Basic Calculator

November 15, 2020 · 7 min · 1431 words · Samir Paul

Implement Stack using Queues

November 15, 2020 · 6 min · 1188 words · Samir Paul

Invert Binary Tree

November 15, 2020 · 8 min · 1508 words · Samir Paul

Basic Calculator II

November 15, 2020 · 6 min · 1142 words · Samir Paul

Summary Ranges

November 15, 2020 · 5 min · 956 words · Samir Paul

Majority Element II

November 15, 2020 · 4 min · 818 words · Samir Paul

Kth Smallest Element in a BST

November 15, 2020 · 9 min · 1739 words · Samir Paul

Power of Two

November 15, 2020 · 2 min · 414 words · Samir Paul

Implement Queue using Stacks

November 15, 2020 · 6 min · 1199 words · Samir Paul

Number of Digit One

November 15, 2020 · 4 min · 756 words · Samir Paul

Palindrome Linked List

November 15, 2020 · 6 min · 1103 words · Samir Paul

Lowest Common Ancestor of a Binary Search Tree

November 15, 2020 · 6 min · 1208 words · Samir Paul

Lowest Common Ancestor of a Binary Tree

November 15, 2020 · 6 min · 1081 words · Samir Paul

Delete Node in a Linked List

November 15, 2020 · 5 min · 858 words · Samir Paul

Product of Array Except Self

November 15, 2020 · 5 min · 975 words · Samir Paul

Sliding Window Maximum

November 15, 2020 · 7 min · 1302 words · Samir Paul

Search a 2D Matrix II

November 15, 2020 · 6 min · 1102 words · Samir Paul

Different Ways to Add Parentheses

November 14, 2020 · 5 min · 956 words · Samir Paul

Valid Anagram

November 14, 2020 · 6 min · 1077 words · Samir Paul

Shortest Word Distance

November 14, 2020 · 3 min · 451 words · Samir Paul

Shortest Word Distance II

November 14, 2020 · 4 min · 691 words · Samir Paul

Shortest Word Distance III

November 14, 2020 · 4 min · 670 words · Samir Paul

Strobogrammatic Number

November 14, 2020 · 2 min · 368 words · Samir Paul

Strobogrammatic Number II

November 14, 2020 · 3 min · 482 words · Samir Paul

Strobogrammatic Number III

November 14, 2020 · 4 min · 760 words · Samir Paul

Group Shifted Strings

November 14, 2020 · 3 min · 444 words · Samir Paul

Count Univalue Subtrees

November 14, 2020 · 5 min · 1017 words · Samir Paul

Flatten 2D Vector

November 14, 2020 · 4 min · 795 words · Samir Paul

Meeting Rooms

November 14, 2020 · 2 min · 415 words · Samir Paul

Meeting Rooms II

November 14, 2020 · 3 min · 458 words · Samir Paul

Factor Combinations

November 14, 2020 · 3 min · 438 words · Samir Paul

Verify Preorder Sequence in Binary Search Tree

November 14, 2020 · 2 min · 328 words · Samir Paul

Paint House

November 14, 2020 · 3 min · 497 words · Samir Paul

Binary Tree Paths

November 14, 2020 · 4 min · 754 words · Samir Paul

Add Digits

November 14, 2020 · 2 min · 268 words · Samir Paul

3Sum Smaller

November 14, 2020 · 3 min · 573 words · Samir Paul

Single Number III

November 14, 2020 · 5 min · 874 words · Samir Paul

Graph Valid Tree

November 14, 2020 · 3 min · 589 words · Samir Paul

Trips and Users

November 14, 2020 · 5 min · 916 words · Samir Paul

Ugly Number

November 14, 2020 · 3 min · 509 words · Samir Paul

Ugly Number II

November 14, 2020 · 5 min · 1059 words · Samir Paul

Paint House II

November 13, 2020 · 3 min · 577 words · Samir Paul

Palindrome Permutation

November 13, 2020 · 2 min · 352 words · Samir Paul

Palindrome Permutation II

November 13, 2020 · 3 min · 596 words · Samir Paul

Missing Number

November 13, 2020 · 5 min · 984 words · Samir Paul

Alien Dictionary

November 13, 2020 · 5 min · 1060 words · Samir Paul

Closest Binary Search Tree Value

November 13, 2020 · 7 min · 1413 words · Samir Paul

Encode and Decode Strings

November 13, 2020 · 4 min · 814 words · Samir Paul

Closest Binary Search Tree Value II

November 13, 2020 · 4 min · 706 words · Samir Paul

Integer to English Words

November 13, 2020 · 6 min · 1098 words · Samir Paul

H-Index

November 13, 2020 · 8 min · 1627 words · Samir Paul

H-Index II

November 13, 2020 · 4 min · 771 words · Samir Paul

Paint Fence

November 13, 2020 · 3 min · 427 words · Samir Paul

Find the Celebrity

November 13, 2020 · 4 min · 697 words · Samir Paul

First Bad Version

November 13, 2020 · 4 min · 749 words · Samir Paul

Perfect Squares

November 13, 2020 · 6 min · 1097 words · Samir Paul

Wiggle Sort

November 13, 2020 · 2 min · 365 words · Samir Paul

Zigzag Iterator

November 13, 2020 · 4 min · 703 words · Samir Paul

Expression Add Operators

November 13, 2020 · 5 min · 871 words · Samir Paul

Move Zeroes

November 13, 2020 · 4 min · 640 words · Samir Paul

Peeking Iterator

November 13, 2020 · 6 min · 1101 words · Samir Paul

Inorder Successor in BST

November 13, 2020 · 4 min · 739 words · Samir Paul

Walls and Gates

November 13, 2020 · 4 min · 733 words · Samir Paul

Find the Duplicate Number

November 13, 2020 · 4 min · 786 words · Samir Paul

Unique Word Abbreviation

November 13, 2020 · 6 min · 1168 words · Samir Paul

Game of Life

November 12, 2020 · 9 min · 1890 words · Samir Paul

Word Pattern

November 12, 2020 · 5 min · 972 words · Samir Paul

Word Pattern II

November 12, 2020 · 4 min · 831 words · Samir Paul

Nim Game

November 12, 2020 · 2 min · 311 words · Samir Paul

Flip Game

November 12, 2020 · 2 min · 396 words · Samir Paul

Flip Game II

November 12, 2020 · 6 min · 1257 words · Samir Paul

Find Median from Data Stream

November 12, 2020 · 8 min · 1525 words · Samir Paul

Best Meeting Point

November 12, 2020 · 4 min · 761 words · Samir Paul

Serialize and Deserialize Binary Tree

November 12, 2020 · 9 min · 1728 words · Samir Paul

Binary Tree Longest Consecutive Sequence

November 12, 2020 · 5 min · 922 words · Samir Paul

Bulls and Cows

November 12, 2020 · 4 min · 726 words · Samir Paul

Longest Increasing Subsequence

November 12, 2020 · 7 min · 1450 words · Samir Paul

Remove Invalid Parentheses

November 12, 2020 · 5 min · 988 words · Samir Paul

Smallest Rectangle Enclosing Black Pixels

November 12, 2020 · 7 min · 1366 words · Samir Paul

Range Sum Query - Immutable

November 12, 2020 · 6 min · 1210 words · Samir Paul

Range Sum Query 2D - Immutable

November 12, 2020 · 8 min · 1593 words · Samir Paul

Number of Islands II

November 12, 2020 · 9 min · 1854 words · Samir Paul

Additive Number

November 12, 2020 · 5 min · 858 words · Samir Paul

Range Sum Query - Mutable

November 12, 2020 · 18 min · 3733 words · Samir Paul

Range Sum Query 2D - Mutable

November 12, 2020 · 13 min · 2590 words · Samir Paul

Best Time to Buy and Sell Stock with Cooldown

November 12, 2020 · 9 min · 1720 words · Samir Paul

Minimum Height Trees

November 12, 2020 · 4 min · 790 words · Samir Paul

Sparse Matrix Multiplication

November 12, 2020 · 7 min · 1412 words · Samir Paul

Burst Balloons

November 12, 2020 · 4 min · 672 words · Samir Paul

Super Ugly Number

November 11, 2020 · 4 min · 836 words · Samir Paul

Binary Tree Vertical Order Traversal

November 11, 2020 · 8 min · 1503 words · Samir Paul

Count of Smaller Numbers After Self

November 11, 2020 · 11 min · 2164 words · Samir Paul

Remove Duplicate Letters

November 11, 2020 · 4 min · 825 words · Samir Paul

Shortest Distance from All Buildings

November 11, 2020 · 6 min · 1222 words · Samir Paul

Maximum Product of Word Lengths

November 11, 2020 · 6 min · 1152 words · Samir Paul

Bulb Switcher

November 11, 2020 · 1 min · 205 words · Samir Paul

Generalized Abbreviation

November 11, 2020 · 7 min · 1350 words · Samir Paul

Create Maximum Number

November 11, 2020 · 8 min · 1692 words · Samir Paul

Coin Change

November 11, 2020 · 7 min · 1339 words · Samir Paul

Number of Connected Components in an Undirected Graph

November 11, 2020 · 3 min · 612 words · Samir Paul

Wiggle Sort II

November 11, 2020 · 5 min · 899 words · Samir Paul

Maximum Size Subarray Sum Equals k

November 11, 2020 · 3 min · 475 words · Samir Paul

Power of Three

November 11, 2020 · 2 min · 426 words · Samir Paul

Count of Range Sum

November 11, 2020 · 8 min · 1544 words · Samir Paul

Odd Even Linked List

November 11, 2020 · 4 min · 671 words · Samir Paul

Longest Increasing Path in a Matrix

November 11, 2020 · 5 min · 895 words · Samir Paul

Patching Array

November 11, 2020 · 3 min · 493 words · Samir Paul

Verify Preorder Serialization of a Binary Tree

November 11, 2020 · 3 min · 527 words · Samir Paul

Reconstruct Itinerary

November 11, 2020 · 3 min · 455 words · Samir Paul

Largest BST Subtree

November 11, 2020 · 4 min · 739 words · Samir Paul

Increasing Triplet Subsequence

November 11, 2020 · 4 min · 661 words · Samir Paul

Self Crossing

November 11, 2020 · 4 min · 732 words · Samir Paul

Palindrome Pairs

November 11, 2020 · 7 min · 1302 words · Samir Paul

House Robber III

November 10, 2020 · 4 min · 778 words · Samir Paul

Counting Bits

November 10, 2020 · 3 min · 574 words · Samir Paul

Nested List Weight Sum

November 10, 2020 · 6 min · 1070 words · Samir Paul

Longest Substring with At Most K Distinct Characters

November 10, 2020 · 2 min · 410 words · Samir Paul

Flatten Nested List Iterator

November 10, 2020 · 11 min · 2194 words · Samir Paul

Power of Four

November 10, 2020 · 2 min · 283 words · Samir Paul

Integer Break

November 10, 2020 · 4 min · 821 words · Samir Paul

Reverse String

November 10, 2020 · 2 min · 426 words · Samir Paul

Reverse Vowels of a String

November 10, 2020 · 3 min · 635 words · Samir Paul

Moving Average from Data Stream

November 10, 2020 · 5 min · 899 words · Samir Paul

Top K Frequent Elements

November 10, 2020 · 5 min · 880 words · Samir Paul

Design Tic-Tac-Toe

November 10, 2020 · 5 min · 929 words · Samir Paul

Intersection of Two Arrays

November 10, 2020 · 3 min · 547 words · Samir Paul

Intersection of Two Arrays II

November 10, 2020 · 4 min · 823 words · Samir Paul

Android Unlock Patterns

November 10, 2020 · 7 min · 1280 words · Samir Paul

Data Stream as Disjoint Intervals

November 10, 2020 · 4 min · 792 words · Samir Paul

Design Snake Game

November 10, 2020 · 8 min · 1606 words · Samir Paul

Russian Doll Envelopes

November 10, 2020 · 3 min · 598 words · Samir Paul

Design Twitter

November 10, 2020 · 5 min · 949 words · Samir Paul

Line Reflection

November 10, 2020 · 3 min · 450 words · Samir Paul

Count Numbers with Unique Digits

November 10, 2020 · 5 min · 877 words · Samir Paul

Rearrange String k Distance Apart

November 10, 2020 · 4 min · 698 words · Samir Paul

Logger Rate Limiter

November 10, 2020 · 4 min · 645 words · Samir Paul

Sort Transformed Array

November 10, 2020 · 4 min · 750 words · Samir Paul

Bomb Enemy

November 9, 2020 · 6 min · 1119 words · Samir Paul

Design Hit Counter

November 9, 2020 · 4 min · 656 words · Samir Paul

Max Sum of Rectangle No Larger Than K

November 9, 2020 · 17 min · 3462 words · Samir Paul

Nested List Weight Sum II

November 9, 2020 · 6 min · 1215 words · Samir Paul

Water and Jug Problem

November 9, 2020 · 5 min · 932 words · Samir Paul

Find Leaves of Binary Tree

November 9, 2020 · 4 min · 720 words · Samir Paul

Valid Perfect Square

November 9, 2020 · 5 min · 855 words · Samir Paul

Largest Divisible Subset

November 9, 2020 · 3 min · 599 words · Samir Paul

Plus One Linked List

November 9, 2020 · 3 min · 556 words · Samir Paul

Range Addition

November 9, 2020 · 6 min · 1139 words · Samir Paul

Sum of Two Integers

November 9, 2020 · 2 min · 241 words · Samir Paul

Super Pow

November 9, 2020 · 3 min · 595 words · Samir Paul

Find K Pairs with Smallest Sums

November 9, 2020 · 4 min · 659 words · Samir Paul

Guess Number Higher or Lower

November 9, 2020 · 6 min · 1146 words · Samir Paul

Guess Number Higher or Lower II

November 9, 2020 · 5 min · 868 words · Samir Paul

Wiggle Subsequence

November 9, 2020 · 3 min · 584 words · Samir Paul

Combination Sum IV

November 9, 2020 · 3 min · 628 words · Samir Paul

Kth Smallest Element in a Sorted Matrix

November 9, 2020 · 4 min · 722 words · Samir Paul

Design Phone Directory

November 9, 2020 · 3 min · 602 words · Samir Paul

Insert Delete GetRandom O(1)

November 9, 2020 · 8 min · 1511 words · Samir Paul

Insert Delete GetRandom O(1) - Duplicates allowed

November 9, 2020 · 5 min · 858 words · Samir Paul

Linked List Random Node

November 9, 2020 · 4 min · 773 words · Samir Paul

Ransom Note

November 9, 2020 · 4 min · 666 words · Samir Paul

Shuffle an Array

November 9, 2020 · 6 min · 1087 words · Samir Paul

Mini Parser

November 8, 2020 · 20 min · 4109 words · Samir Paul

Lexicographical Numbers

November 8, 2020 · 4 min · 751 words · Samir Paul

First Unique Character in a String

November 8, 2020 · 3 min · 492 words · Samir Paul

Longest Absolute File Path

November 8, 2020 · 5 min · 966 words · Samir Paul

Find the Difference

November 8, 2020 · 5 min · 1031 words · Samir Paul

Elimination Game

November 8, 2020 · 3 min · 512 words · Samir Paul

Perfect Rectangle

November 8, 2020 · 5 min · 948 words · Samir Paul

Is Subsequence

November 8, 2020 · 4 min · 747 words · Samir Paul

UTF-8 Validation

November 8, 2020 · 4 min · 723 words · Samir Paul

Decode String

November 8, 2020 · 3 min · 496 words · Samir Paul

Longest Substring with At Least K Repeating Characters

November 8, 2020 · 4 min · 833 words · Samir Paul

Rotate Function

November 8, 2020 · 4 min · 721 words · Samir Paul

Integer Replacement

November 8, 2020 · 2 min · 377 words · Samir Paul

Random Pick Index

November 8, 2020 · 3 min · 628 words · Samir Paul

Evaluate Division

November 8, 2020 · 7 min · 1335 words · Samir Paul

Nth Digit

November 8, 2020 · 3 min · 517 words · Samir Paul

Binary Watch

November 8, 2020 · 5 min · 1040 words · Samir Paul

Remove K Digits

November 8, 2020 · 3 min · 551 words · Samir Paul

Frog Jump

November 8, 2020 · 10 min · 2117 words · Samir Paul

Sum of Left Leaves

November 8, 2020 · 4 min · 792 words · Samir Paul

Convert a Number to Hexadecimal

November 8, 2020 · 3 min · 508 words · Samir Paul

Queue Reconstruction by Height

November 8, 2020 · 3 min · 483 words · Samir Paul

Trapping Rain Water II

November 8, 2020 · 5 min · 891 words · Samir Paul

Valid Word Abbreviation

November 8, 2020 · 5 min · 1058 words · Samir Paul

Longest Palindrome

November 7, 2020 · 4 min · 762 words · Samir Paul

Split Array Largest Sum

November 7, 2020 · 5 min · 1042 words · Samir Paul

Minimum Unique Word Abbreviation

November 7, 2020 · 2 min · 338 words · Samir Paul

Fizz Buzz

November 7, 2020 · 3 min · 544 words · Samir Paul

Arithmetic Slices

November 7, 2020 · 3 min · 540 words · Samir Paul

Third Maximum Number

November 7, 2020 · 3 min · 560 words · Samir Paul

Add Strings

November 7, 2020 · 9 min · 1893 words · Samir Paul

Partition Equal Subset Sum

November 7, 2020 · 8 min · 1618 words · Samir Paul

Pacific Atlantic Water Flow

November 7, 2020 · 8 min · 1638 words · Samir Paul

Sentence Screen Fitting

November 7, 2020 · 3 min · 619 words · Samir Paul

Battleships in a Board

November 7, 2020 · 3 min · 503 words · Samir Paul

Strong Password Checker

November 7, 2020 · 6 min · 1187 words · Samir Paul

Maximum XOR of Two Numbers in an Array

November 7, 2020 · 5 min · 979 words · Samir Paul

Valid Word Square

November 7, 2020 · 3 min · 585 words · Samir Paul

Reconstruct Original Digits from English

November 7, 2020 · 3 min · 580 words · Samir Paul

Longest Repeating Character Replacement

November 7, 2020 · 3 min · 464 words · Samir Paul

Word Squares

November 7, 2020 · 5 min · 860 words · Samir Paul

Convert Binary Search Tree to Sorted Doubly Linked List

November 7, 2020 · 5 min · 896 words · Samir Paul

Construct Quad Tree

November 7, 2020 · 8 min · 1556 words · Samir Paul

Serialize and Deserialize N-ary Tree

November 7, 2020 · 2 min · 286 words · Samir Paul

N-ary Tree Level Order Traversal

November 7, 2020 · 6 min · 1245 words · Samir Paul

Flatten a Multilevel Doubly Linked List

November 7, 2020 · 4 min · 727 words · Samir Paul

Encode N-ary Tree to Binary Tree

November 7, 2020 · 2 min · 259 words · Samir Paul

All O`one Data Structure

November 7, 2020 · 5 min · 904 words · Samir Paul

Minimum Genetic Mutation

November 6, 2020 · 8 min · 1562 words · Samir Paul

Number of Segments in a String

November 6, 2020 · 3 min · 504 words · Samir Paul

Non-overlapping Intervals

November 6, 2020 · 3 min · 638 words · Samir Paul

Find Right Interval

November 6, 2020 · 4 min · 799 words · Samir Paul

Path Sum III

November 6, 2020 · 4 min · 806 words · Samir Paul

Find All Anagrams in a String

November 6, 2020 · 8 min · 1545 words · Samir Paul

Ternary Expression Parser

November 6, 2020 · 4 min · 666 words · Samir Paul

K-th Smallest in Lexicographical Order

November 6, 2020 · 3 min · 533 words · Samir Paul

Arranging Coins

November 6, 2020 · 3 min · 429 words · Samir Paul

Find All Duplicates in an Array

November 6, 2020 · 2 min · 411 words · Samir Paul

String Compression

November 6, 2020 · 4 min · 706 words · Samir Paul

Sequence Reconstruction

November 6, 2020 · 5 min · 880 words · Samir Paul

Add Two Numbers II

November 6, 2020 · 7 min · 1412 words · Samir Paul

Arithmetic Slices II - Subsequence

November 6, 2020 · 3 min · 569 words · Samir Paul

Number of Boomerangs

November 6, 2020 · 5 min · 947 words · Samir Paul

Find All Numbers Disappeared in an Array

November 6, 2020 · 4 min · 784 words · Samir Paul

Serialize and Deserialize BST

November 6, 2020 · 6 min · 1213 words · Samir Paul

Delete Node in a BST

November 6, 2020 · 7 min · 1297 words · Samir Paul

Sort Characters By Frequency

November 6, 2020 · 4 min · 652 words · Samir Paul

Minimum Number of Arrows to Burst Balloons

November 6, 2020 · 4 min · 659 words · Samir Paul

Minimum Moves to Equal Array Elements

November 6, 2020 · 2 min · 357 words · Samir Paul

4Sum II

November 6, 2020 · 3 min · 550 words · Samir Paul

Assign Cookies

November 6, 2020 · 4 min · 679 words · Samir Paul

132 Pattern

November 6, 2020 · 9 min · 1750 words · Samir Paul

Circular Array Loop

November 5, 2020 · 5 min · 904 words · Samir Paul

Poor Pigs

November 5, 2020 · 3 min · 590 words · Samir Paul

Repeated Substring Pattern

November 5, 2020 · 2 min · 328 words · Samir Paul

LFU Cache

November 5, 2020 · 13 min · 2589 words · Samir Paul

Hamming Distance

November 5, 2020 · 2 min · 271 words · Samir Paul

Minimum Moves to Equal Array Elements II

November 5, 2020 · 3 min · 453 words · Samir Paul

Island Perimeter

November 5, 2020 · 4 min · 697 words · Samir Paul

Can I Win

November 5, 2020 · 4 min · 706 words · Samir Paul

Optimal Account Balancing

November 5, 2020 · 5 min · 1039 words · Samir Paul

Count The Repetitions

November 5, 2020 · 4 min · 768 words · Samir Paul

Unique Substrings in Wraparound String

November 5, 2020 · 4 min · 655 words · Samir Paul

Validate IP Address

November 5, 2020 · 4 min · 730 words · Samir Paul

Convex Polygon

November 5, 2020 · 3 min · 559 words · Samir Paul

Implement Rand10() Using Rand7()

November 5, 2020 · 3 min · 625 words · Samir Paul

Encode String with Shortest Length

November 5, 2020 · 5 min · 1015 words · Samir Paul

Concatenated Words

November 5, 2020 · 5 min · 868 words · Samir Paul

Matchsticks to Square

November 5, 2020 · 5 min · 908 words · Samir Paul

Ones and Zeroes

November 5, 2020 · 7 min · 1436 words · Samir Paul

Heaters

November 5, 2020 · 4 min · 789 words · Samir Paul

Number Complement

November 5, 2020 · 3 min · 485 words · Samir Paul

Total Hamming Distance

November 5, 2020 · 2 min · 421 words · Samir Paul

Generate Random Point in a Circle

November 5, 2020 · 2 min · 230 words · Samir Paul

Largest Palindrome Product

November 5, 2020 · 3 min · 437 words · Samir Paul

Sliding Window Median

November 5, 2020 · 7 min · 1478 words · Samir Paul

Magical String

November 4, 2020 · 4 min · 657 words · Samir Paul

License Key Formatting

November 4, 2020 · 3 min · 599 words · Samir Paul

Smallest Good Base

November 4, 2020 · 3 min · 499 words · Samir Paul

Find Permutation

November 4, 2020 · 3 min · 535 words · Samir Paul

Max Consecutive Ones

November 4, 2020 · 3 min · 556 words · Samir Paul

Predict the Winner

November 4, 2020 · 6 min · 1243 words · Samir Paul

Max Consecutive Ones II

November 4, 2020 · 7 min · 1366 words · Samir Paul

Zuma Game

November 4, 2020 · 3 min · 558 words · Samir Paul

Robot Room Cleaner

November 4, 2020 · 8 min · 1651 words · Samir Paul

The Maze

November 4, 2020 · 8 min · 1559 words · Samir Paul

Non-decreasing Subsequences

November 4, 2020 · 3 min · 440 words · Samir Paul

Construct the Rectangle

November 4, 2020 · 2 min · 341 words · Samir Paul

Reverse Pairs

November 4, 2020 · 14 min · 2798 words · Samir Paul

Target Sum

November 4, 2020 · 8 min · 1586 words · Samir Paul

Teemo Attacking

November 4, 2020 · 3 min · 543 words · Samir Paul

Next Greater Element I

November 4, 2020 · 6 min · 1268 words · Samir Paul

Random Point in Non-overlapping Rectangles

November 4, 2020 · 5 min · 869 words · Samir Paul

Diagonal Traverse

November 4, 2020 · 4 min · 812 words · Samir Paul

The Maze III

November 4, 2020 · 7 min · 1366 words · Samir Paul

Keyboard Row

November 4, 2020 · 3 min · 629 words · Samir Paul

Find Mode in Binary Search Tree

November 4, 2020 · 5 min · 936 words · Samir Paul

IPO

November 4, 2020 · 4 min · 797 words · Samir Paul

Next Greater Element II

November 4, 2020 · 5 min · 983 words · Samir Paul

Base 7

November 4, 2020 · 3 min · 435 words · Samir Paul

The Maze II

November 3, 2020 · 6 min · 1253 words · Samir Paul

Relative Ranks

November 3, 2020 · 3 min · 553 words · Samir Paul

Perfect Number

November 3, 2020 · 2 min · 396 words · Samir Paul

Most Frequent Subtree Sum

November 3, 2020 · 6 min · 1092 words · Samir Paul

Fibonacci Number

November 3, 2020 · 3 min · 598 words · Samir Paul

Inorder Successor in BST II

November 3, 2020 · 4 min · 640 words · Samir Paul

Game Play Analysis I

November 3, 2020 · 2 min · 291 words · Samir Paul

Game Play Analysis II

November 3, 2020 · 2 min · 373 words · Samir Paul

Find Bottom Left Tree Value

November 3, 2020 · 8 min · 1684 words · Samir Paul

Freedom Trail

November 3, 2020 · 5 min · 964 words · Samir Paul

Find Largest Value in Each Tree Row

November 3, 2020 · 9 min · 1780 words · Samir Paul

Longest Palindromic Subsequence

November 3, 2020 · 3 min · 480 words · Samir Paul

Super Washing Machines

November 3, 2020 · 3 min · 633 words · Samir Paul

Coin Change II

November 3, 2020 · 3 min · 636 words · Samir Paul

Random Flip Matrix

November 3, 2020 · 3 min · 524 words · Samir Paul

Detect Capital

November 3, 2020 · 2 min · 294 words · Samir Paul

Longest Uncommon Subsequence I

November 3, 2020 · 2 min · 390 words · Samir Paul

Longest Uncommon Subsequence II

November 3, 2020 · 3 min · 625 words · Samir Paul

Continuous Subarray Sum

November 3, 2020 · 3 min · 507 words · Samir Paul

Longest Word in Dictionary through Deleting

November 3, 2020 · 4 min · 740 words · Samir Paul

Contiguous Array

November 3, 2020 · 3 min · 462 words · Samir Paul

Beautiful Arrangement

November 3, 2020 · 6 min · 1101 words · Samir Paul

Word Abbreviation

November 3, 2020 · 8 min · 1532 words · Samir Paul

Random Pick with Weight

November 3, 2020 · 6 min · 1174 words · Samir Paul

Minesweeper

November 2, 2020 · 6 min · 1273 words · Samir Paul

Minimum Absolute Difference in BST

November 2, 2020 · 4 min · 755 words · Samir Paul

Lonely Pixel I

November 2, 2020 · 3 min · 563 words · Samir Paul

K-diff Pairs in an Array

November 2, 2020 · 3 min · 547 words · Samir Paul

Lonely Pixel II

November 2, 2020 · 6 min · 1081 words · Samir Paul

Game Play Analysis III

November 2, 2020 · 3 min · 533 words · Samir Paul

Encode and Decode TinyURL

November 2, 2020 · 3 min · 634 words · Samir Paul

Construct Binary Tree from String

November 2, 2020 · 5 min · 877 words · Samir Paul

Complex Number Multiplication

November 2, 2020 · 3 min · 449 words · Samir Paul

Convert BST to Greater Tree

November 2, 2020 · 7 min · 1332 words · Samir Paul

Minimum Time Difference

November 2, 2020 · 3 min · 483 words · Samir Paul

Single Element in a Sorted Array

November 2, 2020 · 3 min · 597 words · Samir Paul

Reverse String II

November 2, 2020 · 2 min · 347 words · Samir Paul

01 Matrix

November 2, 2020 · 6 min · 1161 words · Samir Paul

Diameter of Binary Tree

November 2, 2020 · 6 min · 1164 words · Samir Paul

Output Contest Matches

November 2, 2020 · 3 min · 572 words · Samir Paul

Boundary of Binary Tree

November 2, 2020 · 6 min · 1115 words · Samir Paul

Remove Boxes

November 2, 2020 · 4 min · 713 words · Samir Paul

Number of Provinces

November 2, 2020 · 7 min · 1285 words · Samir Paul

Split Array with Equal Sum

November 2, 2020 · 4 min · 664 words · Samir Paul

Binary Tree Longest Consecutive Sequence II

November 2, 2020 · 5 min · 929 words · Samir Paul

Game Play Analysis IV

November 2, 2020 · 3 min · 621 words · Samir Paul

Student Attendance Record I

November 2, 2020 · 2 min · 284 words · Samir Paul

Student Attendance Record II

November 2, 2020 · 7 min · 1465 words · Samir Paul

Optimal Division

November 1, 2020 · 3 min · 569 words · Samir Paul

Brick Wall

November 1, 2020 · 3 min · 488 words · Samir Paul

Split Concatenated Strings

November 1, 2020 · 4 min · 852 words · Samir Paul

Next Greater Element III

November 1, 2020 · 3 min · 547 words · Samir Paul

Reverse Words in a String III

November 1, 2020 · 3 min · 450 words · Samir Paul

Logical OR of Two Binary Grids Represented as Quad-Trees

November 1, 2020 · 7 min · 1372 words · Samir Paul

Maximum Depth of N-ary Tree

November 1, 2020 · 3 min · 444 words · Samir Paul

Subarray Sum Equals K

November 1, 2020 · 3 min · 514 words · Samir Paul

Array Partition

November 1, 2020 · 3 min · 427 words · Samir Paul

Longest Line of Consecutive One in Matrix

November 1, 2020 · 4 min · 680 words · Samir Paul

Binary Tree Tilt

November 1, 2020 · 4 min · 807 words · Samir Paul

Find the Closest Palindrome

November 1, 2020 · 4 min · 706 words · Samir Paul

Array Nesting

November 1, 2020 · 4 min · 790 words · Samir Paul

Reshape the Matrix

November 1, 2020 · 5 min · 910 words · Samir Paul

Permutation in String

November 1, 2020 · 8 min · 1608 words · Samir Paul

Maximum Vacation Days

November 1, 2020 · 6 min · 1132 words · Samir Paul

Median Employee Salary

November 1, 2020 · 3 min · 566 words · Samir Paul

Managers with at Least 5 Direct Reports

November 1, 2020 · 2 min · 392 words · Samir Paul

Find Median Given Frequency of Numbers

November 1, 2020 · 2 min · 258 words · Samir Paul

Subtree of Another Tree

November 1, 2020 · 6 min · 1200 words · Samir Paul

Squirrel Simulation

November 1, 2020 · 4 min · 661 words · Samir Paul

Winning Candidate

November 1, 2020 · 2 min · 358 words · Samir Paul

Distribute Candies

November 1, 2020 · 2 min · 341 words · Samir Paul

Out of Boundary Paths

November 1, 2020 · 5 min · 1027 words · Samir Paul

October  744

Employee Bonus

October 31, 2020 · 2 min · 356 words · Samir Paul

Get Highest Answer Rate Question

October 31, 2020 · 2 min · 412 words · Samir Paul

Find Cumulative Salary of an Employee

October 31, 2020 · 4 min · 762 words · Samir Paul

Count Student Number in Departments

October 31, 2020 · 2 min · 373 words · Samir Paul

Shortest Unsorted Continuous Subarray

October 31, 2020 · 7 min · 1356 words · Samir Paul

Kill Process

October 31, 2020 · 4 min · 737 words · Samir Paul

Delete Operation for Two Strings

October 31, 2020 · 4 min · 786 words · Samir Paul

Find Customer Referee

October 31, 2020 · 2 min · 227 words · Samir Paul

Investments in 2016

October 31, 2020 · 2 min · 409 words · Samir Paul

Customer Placing the Largest Number of Orders

October 31, 2020 · 2 min · 302 words · Samir Paul

Erect the Fence

October 31, 2020 · 5 min · 885 words · Samir Paul

Design In-Memory File System

October 31, 2020 · 6 min · 1181 words · Samir Paul

N-ary Tree Preorder Traversal

October 31, 2020 · 5 min · 902 words · Samir Paul

N-ary Tree Postorder Traversal

October 31, 2020 · 6 min · 1146 words · Samir Paul

Tag Validator

October 31, 2020 · 8 min · 1586 words · Samir Paul

Fraction Addition and Subtraction

October 31, 2020 · 4 min · 678 words · Samir Paul

Valid Square

October 31, 2020 · 4 min · 822 words · Samir Paul

Longest Harmonious Subsequence

October 31, 2020 · 2 min · 401 words · Samir Paul

Big Countries

October 31, 2020 · 2 min · 306 words · Samir Paul

Classes More Than 5 Students

October 31, 2020 · 2 min · 266 words · Samir Paul

Friend Requests I Overall Acceptance Rate

October 31, 2020 · 3 min · 476 words · Samir Paul

Range Addition II

October 31, 2020 · 2 min · 323 words · Samir Paul

Minimum Index Sum of Two Lists

October 31, 2020 · 5 min · 925 words · Samir Paul

Non-negative Integers without Consecutive Ones

October 31, 2020 · 4 min · 718 words · Samir Paul

Human Traffic of Stadium

October 30, 2020 · 2 min · 366 words · Samir Paul

Friend Requests II Who Has the Most Friends

October 30, 2020 · 2 min · 292 words · Samir Paul

Consecutive Available Seats

October 30, 2020 · 2 min · 408 words · Samir Paul

Design Compressed String Iterator

October 30, 2020 · 5 min · 899 words · Samir Paul

Can Place Flowers

October 30, 2020 · 4 min · 766 words · Samir Paul

Construct String from Binary Tree

October 30, 2020 · 5 min · 905 words · Samir Paul

Sales Person

October 30, 2020 · 3 min · 638 words · Samir Paul

Tree Node

October 30, 2020 · 3 min · 428 words · Samir Paul

Find Duplicate File in System

October 30, 2020 · 4 min · 828 words · Samir Paul

Triangle Judgement

October 30, 2020 · 2 min · 239 words · Samir Paul

Valid Triangle Number

October 30, 2020 · 4 min · 715 words · Samir Paul

Shortest Distance in a Plane

October 30, 2020 · 1 min · 213 words · Samir Paul

Shortest Distance in a Line

October 30, 2020 · 2 min · 271 words · Samir Paul

Second Degree Follower

October 30, 2020 · 2 min · 306 words · Samir Paul

Average Salary Departments VS Company

October 30, 2020 · 3 min · 597 words · Samir Paul

Add Bold Tag in String

October 30, 2020 · 7 min · 1375 words · Samir Paul

Merge Two Binary Trees

October 30, 2020 · 5 min · 1005 words · Samir Paul

Students Report By Geography

October 30, 2020 · 2 min · 282 words · Samir Paul

Biggest Single Number

October 30, 2020 · 2 min · 383 words · Samir Paul

Not Boring Movies

October 30, 2020 · 2 min · 314 words · Samir Paul

Task Scheduler

October 30, 2020 · 3 min · 623 words · Samir Paul

Design Circular Queue

October 30, 2020 · 9 min · 1766 words · Samir Paul

Add One Row to Tree

October 30, 2020 · 9 min · 1822 words · Samir Paul

Maximum Distance in Arrays

October 30, 2020 · 3 min · 446 words · Samir Paul

Minimum Factorization

October 29, 2020 · 2 min · 423 words · Samir Paul

Exchange Seats

October 29, 2020 · 2 min · 395 words · Samir Paul

Swap Salary

October 29, 2020 · 2 min · 296 words · Samir Paul

Maximum Product of Three Numbers

October 29, 2020 · 5 min · 872 words · Samir Paul

K Inverse Pairs Array

October 29, 2020 · 4 min · 712 words · Samir Paul

Course Schedule III

October 29, 2020 · 3 min · 638 words · Samir Paul

Design Excel Sum Formula

October 29, 2020 · 3 min · 478 words · Samir Paul

Smallest Range Covering Elements from K Lists

October 29, 2020 · 5 min · 966 words · Samir Paul

Sum of Square Numbers

October 29, 2020 · 3 min · 484 words · Samir Paul

Find the Derangement of An Array

October 29, 2020 · 3 min · 598 words · Samir Paul

Design Log Storage System

October 29, 2020 · 5 min · 953 words · Samir Paul

Exclusive Time of Functions

October 29, 2020 · 6 min · 1164 words · Samir Paul

Average of Levels in Binary Tree

October 29, 2020 · 9 min · 1736 words · Samir Paul

Shopping Offers

October 29, 2020 · 5 min · 861 words · Samir Paul

Decode Ways II

October 29, 2020 · 6 min · 1175 words · Samir Paul

Solve the Equation

October 29, 2020 · 5 min · 967 words · Samir Paul

Design Circular Deque

October 29, 2020 · 11 min · 2151 words · Samir Paul

Design Search Autocomplete System

October 29, 2020 · 6 min · 1150 words · Samir Paul

Maximum Average Subarray I

October 29, 2020 · 3 min · 480 words · Samir Paul

Maximum Average Subarray II

October 29, 2020 · 5 min · 994 words · Samir Paul

Set Mismatch

October 29, 2020 · 10 min · 2030 words · Samir Paul

Maximum Length of Pair Chain

October 29, 2020 · 5 min · 944 words · Samir Paul

Palindromic Substrings

October 29, 2020 · 4 min · 716 words · Samir Paul

Replace Words

October 29, 2020 · 7 min · 1315 words · Samir Paul

Dota2 Senate

October 28, 2020 · 5 min · 1017 words · Samir Paul

2 Keys Keyboard

October 28, 2020 · 5 min · 890 words · Samir Paul

4 Keys Keyboard

October 28, 2020 · 2 min · 406 words · Samir Paul

Find Duplicate Subtrees

October 28, 2020 · 5 min · 976 words · Samir Paul

Two Sum IV - Input is a BST

October 28, 2020 · 8 min · 1547 words · Samir Paul

Maximum Binary Tree

October 28, 2020 · 16 min · 3215 words · Samir Paul

Print Binary Tree

October 28, 2020 · 12 min · 2481 words · Samir Paul

Coin Path

October 28, 2020 · 5 min · 994 words · Samir Paul

Robot Return to Origin

October 28, 2020 · 3 min · 459 words · Samir Paul

Find K Closest Elements

October 28, 2020 · 6 min · 1264 words · Samir Paul

Split Array into Consecutive Subsequences

October 28, 2020 · 3 min · 610 words · Samir Paul

Remove 9

October 28, 2020 · 1 min · 78 words · Samir Paul

Image Smoother

October 28, 2020 · 5 min · 1000 words · Samir Paul

Maximum Width of Binary Tree

October 28, 2020 · 7 min · 1331 words · Samir Paul

Equal Tree Partition

October 28, 2020 · 4 min · 647 words · Samir Paul

Strange Printer

October 28, 2020 · 4 min · 817 words · Samir Paul

Non-decreasing Array

October 28, 2020 · 3 min · 606 words · Samir Paul

Path Sum IV

October 28, 2020 · 4 min · 708 words · Samir Paul

Beautiful Arrangement II

October 28, 2020 · 3 min · 585 words · Samir Paul

Kth Smallest Number in Multiplication Table

October 28, 2020 · 3 min · 461 words · Samir Paul

Trim a Binary Search Tree

October 28, 2020 · 10 min · 2057 words · Samir Paul

Maximum Swap

October 28, 2020 · 4 min · 837 words · Samir Paul

Second Minimum Node In a Binary Tree

October 28, 2020 · 4 min · 768 words · Samir Paul

Bulb Switcher II

October 28, 2020 · 4 min · 728 words · Samir Paul

Number of Longest Increasing Subsequence

October 27, 2020 · 13 min · 2660 words · Samir Paul

Longest Continuous Increasing Subsequence

October 27, 2020 · 6 min · 1270 words · Samir Paul

Cut Off Trees for Golf Event

October 27, 2020 · 9 min · 1847 words · Samir Paul

Implement Magic Dictionary

October 27, 2020 · 11 min · 2263 words · Samir Paul

Map Sum Pairs

October 27, 2020 · 6 min · 1223 words · Samir Paul

Valid Parenthesis String

October 27, 2020 · 6 min · 1202 words · Samir Paul

24 Game

October 27, 2020 · 7 min · 1412 words · Samir Paul

Valid Palindrome II

October 27, 2020 · 5 min · 892 words · Samir Paul

Next Closest Time

October 27, 2020 · 3 min · 550 words · Samir Paul

Baseball Game

October 27, 2020 · 5 min · 968 words · Samir Paul

K Empty Slots

October 27, 2020 · 7 min · 1322 words · Samir Paul

Redundant Connection

October 27, 2020 · 3 min · 598 words · Samir Paul

Redundant Connection II

October 27, 2020 · 5 min · 1053 words · Samir Paul

Repeated String Match

October 27, 2020 · 3 min · 471 words · Samir Paul

Longest Univalue Path

October 27, 2020 · 7 min · 1377 words · Samir Paul

Knight Probability in Chessboard

October 27, 2020 · 7 min · 1439 words · Samir Paul

Maximum Sum of 3 Non-Overlapping Subarrays

October 27, 2020 · 12 min · 2360 words · Samir Paul

Employee Importance

October 27, 2020 · 3 min · 539 words · Samir Paul

Stickers to Spell Word

October 27, 2020 · 5 min · 1023 words · Samir Paul

Top K Frequent Words

October 27, 2020 · 3 min · 442 words · Samir Paul

Binary Number with Alternating Bits

October 27, 2020 · 3 min · 514 words · Samir Paul

Number of Distinct Islands

October 27, 2020 · 5 min · 896 words · Samir Paul

Max Area of Island

October 27, 2020 · 5 min · 1005 words · Samir Paul

Count Binary Substrings

October 27, 2020 · 3 min · 496 words · Samir Paul

Degree of an Array

October 26, 2020 · 4 min · 836 words · Samir Paul

Partition to K Equal Sum Subsets

October 26, 2020 · 10 min · 1976 words · Samir Paul

Falling Squares

October 26, 2020 · 9 min · 1833 words · Samir Paul

Search in a Binary Search Tree

October 26, 2020 · 3 min · 480 words · Samir Paul

Insert into a Binary Search Tree

October 26, 2020 · 3 min · 558 words · Samir Paul

Search in a Sorted Array of Unknown Size

October 26, 2020 · 4 min · 641 words · Samir Paul

Kth Largest Element in a Stream

October 26, 2020 · 6 min · 1151 words · Samir Paul

Binary Search

October 26, 2020 · 4 min · 697 words · Samir Paul

Design HashSet

October 26, 2020 · 7 min · 1287 words · Samir Paul

Design HashMap

October 26, 2020 · 4 min · 740 words · Samir Paul

Design Linked List

October 26, 2020 · 16 min · 3387 words · Samir Paul

Insert into a Sorted Circular Linked List

October 26, 2020 · 4 min · 819 words · Samir Paul

To Lower Case

October 26, 2020 · 2 min · 370 words · Samir Paul

Random Pick with Blacklist

October 26, 2020 · 4 min · 762 words · Samir Paul

Number of Distinct Islands II

October 26, 2020 · 5 min · 1053 words · Samir Paul

Minimum ASCII Delete Sum for Two Strings

October 26, 2020 · 6 min · 1068 words · Samir Paul

Subarray Product Less Than K

October 26, 2020 · 4 min · 647 words · Samir Paul

Best Time to Buy and Sell Stock with Transaction Fee

October 26, 2020 · 9 min · 1777 words · Samir Paul

Range Module

October 26, 2020 · 14 min · 2791 words · Samir Paul

Max Stack

October 26, 2020 · 6 min · 1097 words · Samir Paul

1-bit and 2-bit Characters

October 26, 2020 · 2 min · 348 words · Samir Paul

Maximum Length of Repeated Subarray

October 26, 2020 · 4 min · 667 words · Samir Paul

Find K-th Smallest Pair Distance

October 26, 2020 · 4 min · 769 words · Samir Paul

Longest Word in Dictionary

October 26, 2020 · 4 min · 772 words · Samir Paul

Accounts Merge

October 25, 2020 · 4 min · 785 words · Samir Paul

Remove Comments

October 25, 2020 · 7 min · 1458 words · Samir Paul

Candy Crush

October 25, 2020 · 6 min · 1154 words · Samir Paul

Find Pivot Index

October 25, 2020 · 4 min · 641 words · Samir Paul

Split Linked List in Parts

October 25, 2020 · 3 min · 511 words · Samir Paul

Number of Atoms

October 25, 2020 · 2 min · 263 words · Samir Paul

Minimum Window Subsequence

October 25, 2020 · 5 min · 971 words · Samir Paul

Self Dividing Numbers

October 25, 2020 · 3 min · 519 words · Samir Paul

My Calendar I

October 25, 2020 · 5 min · 883 words · Samir Paul

Count Different Palindromic Subsequences

October 25, 2020 · 5 min · 907 words · Samir Paul

My Calendar II

October 25, 2020 · 11 min · 2327 words · Samir Paul

My Calendar III

October 25, 2020 · 8 min · 1702 words · Samir Paul

Flood Fill

October 25, 2020 · 7 min · 1487 words · Samir Paul

Sentence Similarity

October 25, 2020 · 3 min · 613 words · Samir Paul

Asteroid Collision

October 25, 2020 · 5 min · 874 words · Samir Paul

Parse Lisp Expression

October 25, 2020 · 8 min · 1635 words · Samir Paul

Sentence Similarity II

October 25, 2020 · 5 min · 949 words · Samir Paul

Monotone Increasing Digits

October 25, 2020 · 2 min · 422 words · Samir Paul

Daily Temperatures

October 25, 2020 · 4 min · 850 words · Samir Paul

Delete and Earn

October 25, 2020 · 3 min · 586 words · Samir Paul

Cherry Pickup

October 25, 2020 · 6 min · 1271 words · Samir Paul

Closest Leaf in a Binary Tree

October 25, 2020 · 5 min · 948 words · Samir Paul

Network Delay Time

October 25, 2020 · 13 min · 2572 words · Samir Paul

Find Smallest Letter Greater Than Target

October 25, 2020 · 4 min · 716 words · Samir Paul

Prefix and Suffix Search

October 24, 2020 · 8 min · 1511 words · Samir Paul

Min Cost Climbing Stairs

October 24, 2020 · 5 min · 998 words · Samir Paul

Largest Number At Least Twice of Others

October 24, 2020 · 4 min · 675 words · Samir Paul

Shortest Completing Word

October 24, 2020 · 6 min · 1186 words · Samir Paul

Contain Virus

October 24, 2020 · 9 min · 1830 words · Samir Paul

Number Of Corner Rectangles

October 24, 2020 · 4 min · 730 words · Samir Paul

IP to CIDR

October 24, 2020 · 3 min · 443 words · Samir Paul

Open the Lock

October 24, 2020 · 14 min · 2885 words · Samir Paul

Cracking the Safe

October 24, 2020 · 4 min · 659 words · Samir Paul

Reach a Number

October 24, 2020 · 3 min · 458 words · Samir Paul

Pour Water

October 24, 2020 · 5 min · 924 words · Samir Paul

Pyramid Transition Matrix

October 24, 2020 · 5 min · 999 words · Samir Paul

Set Intersection Size At Least Two

October 24, 2020 · 3 min · 601 words · Samir Paul

Bold Words in String

October 24, 2020 · 7 min · 1284 words · Samir Paul

Employee Free Time

October 24, 2020 · 1 min · 170 words · Samir Paul

Find Anagram Mappings

October 24, 2020 · 2 min · 272 words · Samir Paul

Special Binary String

October 24, 2020 · 3 min · 520 words · Samir Paul

Prime Number of Set Bits in Binary Representation

October 24, 2020 · 3 min · 439 words · Samir Paul

Partition Labels

October 24, 2020 · 5 min · 893 words · Samir Paul

Largest Plus Sign

October 24, 2020 · 4 min · 851 words · Samir Paul

Couples Holding Hands

October 24, 2020 · 5 min · 891 words · Samir Paul

Toeplitz Matrix

October 24, 2020 · 3 min · 479 words · Samir Paul

Reorganize String

October 24, 2020 · 7 min · 1428 words · Samir Paul

Max Chunks To Make Sorted II

October 24, 2020 · 3 min · 548 words · Samir Paul

Max Chunks To Make Sorted

October 23, 2020 · 4 min · 811 words · Samir Paul

Basic Calculator IV

October 23, 2020 · 3 min · 443 words · Samir Paul

Jewels and Stones

October 23, 2020 · 3 min · 486 words · Samir Paul

Basic Calculator III

October 23, 2020 · 2 min · 282 words · Samir Paul

Sliding Puzzle

October 23, 2020 · 11 min · 2227 words · Samir Paul

Minimize Max Distance to Gas Station

October 23, 2020 · 3 min · 529 words · Samir Paul

Global and Local Inversions

October 23, 2020 · 5 min · 1011 words · Samir Paul

Split BST

October 23, 2020 · 4 min · 826 words · Samir Paul

Swap Adjacent in LR String

October 23, 2020 · 3 min · 611 words · Samir Paul

Swim in Rising Water

October 23, 2020 · 8 min · 1510 words · Samir Paul

K-th Symbol in Grammar

October 23, 2020 · 3 min · 463 words · Samir Paul

Reaching Points

October 23, 2020 · 3 min · 573 words · Samir Paul

Rabbits in Forest

October 23, 2020 · 2 min · 278 words · Samir Paul

Transform to Chessboard

October 23, 2020 · 7 min · 1383 words · Samir Paul

Minimum Distance Between BST Nodes

October 23, 2020 · 3 min · 566 words · Samir Paul

Letter Case Permutation

October 23, 2020 · 5 min · 913 words · Samir Paul

Is Graph Bipartite

October 23, 2020 · 8 min · 1645 words · Samir Paul

K-th Smallest Prime Fraction

October 23, 2020 · 4 min · 698 words · Samir Paul

Cheapest Flights Within K Stops

October 23, 2020 · 7 min · 1315 words · Samir Paul

Rotated Digits

October 23, 2020 · 7 min · 1377 words · Samir Paul

Escape The Ghosts

October 23, 2020 · 3 min · 586 words · Samir Paul

Domino and Tromino Tiling

October 23, 2020 · 3 min · 618 words · Samir Paul

Custom Sort String

October 23, 2020 · 5 min · 1037 words · Samir Paul

Number of Matching Subsequences

October 23, 2020 · 7 min · 1315 words · Samir Paul

Preimage Size of Factorial Zeroes Function

October 22, 2020 · 3 min · 538 words · Samir Paul

Valid Tic-Tac-Toe State

October 22, 2020 · 6 min · 1094 words · Samir Paul

Number of Subarrays with Bounded Maximum

October 22, 2020 · 5 min · 1019 words · Samir Paul

Rotate String

October 22, 2020 · 2 min · 294 words · Samir Paul

All Paths From Source to Target

October 22, 2020 · 4 min · 767 words · Samir Paul

Smallest Rotation with Highest Score

October 22, 2020 · 4 min · 649 words · Samir Paul

Champagne Tower

October 22, 2020 · 6 min · 1237 words · Samir Paul

Similar RGB Color

October 22, 2020 · 2 min · 363 words · Samir Paul

Minimum Swaps To Make Sequences Increasing

October 22, 2020 · 3 min · 593 words · Samir Paul

Find Eventual Safe States

October 22, 2020 · 7 min · 1366 words · Samir Paul

Bricks Falling When Hit

October 22, 2020 · 9 min · 1839 words · Samir Paul

Unique Morse Code Words

October 22, 2020 · 4 min · 722 words · Samir Paul

Split Array With Same Average

October 22, 2020 · 4 min · 838 words · Samir Paul

Number of Lines To Write String

October 22, 2020 · 3 min · 605 words · Samir Paul

Max Increase to Keep City Skyline

October 22, 2020 · 4 min · 746 words · Samir Paul

Soup Servings

October 22, 2020 · 5 min · 908 words · Samir Paul

Expressive Words

October 22, 2020 · 5 min · 939 words · Samir Paul

Chalkboard XOR Game

October 22, 2020 · 2 min · 391 words · Samir Paul

Subdomain Visit Count

October 22, 2020 · 3 min · 619 words · Samir Paul

Largest Triangle Area

October 22, 2020 · 3 min · 521 words · Samir Paul

Largest Sum of Averages

October 22, 2020 · 4 min · 753 words · Samir Paul

Binary Tree Pruning

October 22, 2020 · 5 min · 911 words · Samir Paul

Bus Routes

October 22, 2020 · 6 min · 1237 words · Samir Paul

Ambiguous Coordinates

October 22, 2020 · 5 min · 906 words · Samir Paul

Linked List Components

October 21, 2020 · 5 min · 1019 words · Samir Paul

Race Car

October 21, 2020 · 3 min · 591 words · Samir Paul

Most Common Word

October 21, 2020 · 4 min · 754 words · Samir Paul

Short Encoding of Words

October 21, 2020 · 7 min · 1282 words · Samir Paul

Shortest Distance to a Character

October 21, 2020 · 4 min · 852 words · Samir Paul

Card Flipping Game

October 21, 2020 · 4 min · 759 words · Samir Paul

Binary Trees With Factors

October 21, 2020 · 4 min · 832 words · Samir Paul

Goat Latin

October 21, 2020 · 3 min · 543 words · Samir Paul

Friends Of Appropriate Ages

October 21, 2020 · 3 min · 607 words · Samir Paul

Most Profit Assigning Work

October 21, 2020 · 3 min · 561 words · Samir Paul

Making A Large Island

October 21, 2020 · 15 min · 3133 words · Samir Paul

Count Unique Characters of All Substrings of a Given String

October 21, 2020 · 5 min · 878 words · Samir Paul

Consecutive Numbers Sum

October 21, 2020 · 2 min · 348 words · Samir Paul

Positions of Large Groups

October 21, 2020 · 3 min · 453 words · Samir Paul

Masking Personal Information

October 21, 2020 · 5 min · 897 words · Samir Paul

Flipping an Image

October 21, 2020 · 3 min · 516 words · Samir Paul

Find And Replace in String

October 21, 2020 · 4 min · 809 words · Samir Paul

Sum of Distances in Tree

October 21, 2020 · 5 min · 971 words · Samir Paul

Image Overlap

October 21, 2020 · 4 min · 732 words · Samir Paul

Rectangle Overlap

October 21, 2020 · 2 min · 383 words · Samir Paul

New 21 Game

October 21, 2020 · 6 min · 1173 words · Samir Paul

Push Dominoes

October 21, 2020 · 5 min · 1065 words · Samir Paul

Similar String Groups

October 21, 2020 · 4 min · 784 words · Samir Paul

Magic Squares In Grid

October 21, 2020 · 7 min · 1319 words · Samir Paul

Keys and Rooms

October 20, 2020 · 4 min · 730 words · Samir Paul

Split Array into Fibonacci Sequence

October 20, 2020 · 4 min · 765 words · Samir Paul

Guess the Word

October 20, 2020 · 2 min · 357 words · Samir Paul

Backspace String Compare

October 20, 2020 · 6 min · 1097 words · Samir Paul

Longest Mountain in Array

October 20, 2020 · 6 min · 1081 words · Samir Paul

Hand of Straights

October 20, 2020 · 5 min · 879 words · Samir Paul

Shortest Path Visiting All Nodes

October 20, 2020 · 7 min · 1445 words · Samir Paul

Shifting Letters

October 20, 2020 · 3 min · 525 words · Samir Paul

Maximize Distance to Closest Person

October 20, 2020 · 3 min · 627 words · Samir Paul

Rectangle Area II

October 20, 2020 · 9 min · 1830 words · Samir Paul

Loud and Rich

October 20, 2020 · 5 min · 880 words · Samir Paul

Peak Index in a Mountain Array

October 20, 2020 · 3 min · 618 words · Samir Paul

Car Fleet

October 20, 2020 · 4 min · 832 words · Samir Paul

K-Similar Strings

October 20, 2020 · 8 min · 1676 words · Samir Paul

Exam Room

October 20, 2020 · 7 min · 1306 words · Samir Paul

Score of Parentheses

October 20, 2020 · 3 min · 570 words · Samir Paul

Minimum Cost to Hire K Workers

October 20, 2020 · 4 min · 715 words · Samir Paul

Mirror Reflection

October 20, 2020 · 3 min · 525 words · Samir Paul

Buddy Strings

October 20, 2020 · 4 min · 750 words · Samir Paul

Lemonade Change

October 20, 2020 · 4 min · 811 words · Samir Paul

Score After Flipping Matrix

October 20, 2020 · 4 min · 809 words · Samir Paul

Shortest Subarray with Sum at Least K

October 20, 2020 · 3 min · 517 words · Samir Paul

All Nodes Distance K in Binary Tree

October 20, 2020 · 5 min · 916 words · Samir Paul

Shortest Path to Get All Keys

October 20, 2020 · 7 min · 1419 words · Samir Paul

Smallest Subtree with all the Deepest Nodes

October 19, 2020 · 4 min · 798 words · Samir Paul

Prime Palindrome

October 19, 2020 · 3 min · 635 words · Samir Paul

Transpose Matrix

October 19, 2020 · 2 min · 342 words · Samir Paul

Binary Gap

October 19, 2020 · 3 min · 606 words · Samir Paul

Reordered Power of 2

October 19, 2020 · 2 min · 368 words · Samir Paul

Advantage Shuffle

October 19, 2020 · 4 min · 659 words · Samir Paul

Minimum Number of Refueling Stops

October 19, 2020 · 4 min · 803 words · Samir Paul

Leaf-Similar Trees

October 19, 2020 · 4 min · 775 words · Samir Paul

Length of Longest Fibonacci Subsequence

October 19, 2020 · 4 min · 830 words · Samir Paul

Walking Robot Simulation

October 19, 2020 · 7 min · 1464 words · Samir Paul

Koko Eating Bananas

October 19, 2020 · 4 min · 656 words · Samir Paul

Middle of the Linked List

October 19, 2020 · 4 min · 840 words · Samir Paul

Stone Game

October 19, 2020 · 6 min · 1090 words · Samir Paul

Nth Magical Number

October 19, 2020 · 3 min · 463 words · Samir Paul

Profitable Schemes

October 19, 2020 · 9 min · 1736 words · Samir Paul

Decoded String at Index

October 19, 2020 · 4 min · 806 words · Samir Paul

Boats to Save People

October 19, 2020 · 2 min · 371 words · Samir Paul

Reachable Nodes In Subdivided Graph

October 19, 2020 · 6 min · 1136 words · Samir Paul

Projection Area of 3D Shapes

October 19, 2020 · 4 min · 679 words · Samir Paul

Uncommon Words from Two Sentences

October 19, 2020 · 3 min · 627 words · Samir Paul

Spiral Matrix III

October 19, 2020 · 4 min · 721 words · Samir Paul

Possible Bipartition

October 19, 2020 · 7 min · 1417 words · Samir Paul

Super Egg Drop

October 19, 2020 · 8 min · 1701 words · Samir Paul

Fair Candy Swap

October 19, 2020 · 3 min · 527 words · Samir Paul

Construct Binary Tree from Preorder and Postorder Traversal

October 18, 2020 · 3 min · 610 words · Samir Paul

Find and Replace Pattern

October 18, 2020 · 4 min · 707 words · Samir Paul

Sum of Subsequence Widths

October 18, 2020 · 3 min · 436 words · Samir Paul

Surface Area of 3D Shapes

October 18, 2020 · 3 min · 475 words · Samir Paul

Groups of Special-Equivalent Strings

October 18, 2020 · 3 min · 563 words · Samir Paul

All Possible Full Binary Trees

October 18, 2020 · 6 min · 1244 words · Samir Paul

Maximum Frequency Stack

October 18, 2020 · 6 min · 1218 words · Samir Paul

Monotonic Array

October 18, 2020 · 4 min · 684 words · Samir Paul

Increasing Order Search Tree

October 18, 2020 · 4 min · 829 words · Samir Paul

Bitwise ORs of Subarrays

October 18, 2020 · 4 min · 701 words · Samir Paul

Orderly Queue

October 18, 2020 · 4 min · 644 words · Samir Paul

RLE Iterator

October 18, 2020 · 5 min · 1037 words · Samir Paul

Online Stock Span

October 18, 2020 · 6 min · 1082 words · Samir Paul

Numbers At Most N Given Digit Set

October 18, 2020 · 5 min · 984 words · Samir Paul

Valid Permutations for DI Sequence

October 18, 2020 · 13 min · 2571 words · Samir Paul

Fruit Into Baskets

October 18, 2020 · 7 min · 1487 words · Samir Paul

Sort Array By Parity

October 18, 2020 · 4 min · 682 words · Samir Paul

Super Palindromes

October 18, 2020 · 1 min · 140 words · Samir Paul

Sum of Subarray Minimums

October 18, 2020 · 7 min · 1351 words · Samir Paul

Smallest Range I

October 18, 2020 · 2 min · 423 words · Samir Paul

Snakes and Ladders

October 18, 2020 · 6 min · 1120 words · Samir Paul

Smallest Range II

October 18, 2020 · 3 min · 448 words · Samir Paul

Online Election

October 18, 2020 · 5 min · 928 words · Samir Paul

Sort an Array

October 18, 2020 · 9 min · 1869 words · Samir Paul

Cat and Mouse

October 17, 2020 · 8 min · 1679 words · Samir Paul

X of a Kind in a Deck of Cards

October 17, 2020 · 2 min · 393 words · Samir Paul

Partition Array into Disjoint Intervals

October 17, 2020 · 3 min · 452 words · Samir Paul

Word Subsets

October 17, 2020 · 3 min · 631 words · Samir Paul

Reverse Only Letters

October 17, 2020 · 3 min · 567 words · Samir Paul

Maximum Sum Circular Subarray

October 17, 2020 · 5 min · 976 words · Samir Paul

Complete Binary Tree Inserter

October 17, 2020 · 8 min · 1495 words · Samir Paul

Number of Music Playlists

October 17, 2020 · 8 min · 1671 words · Samir Paul

Minimum Add to Make Parentheses Valid

October 17, 2020 · 3 min · 578 words · Samir Paul

Sort Array By Parity II

October 17, 2020 · 3 min · 442 words · Samir Paul

3Sum With Multiplicity

October 17, 2020 · 3 min · 586 words · Samir Paul

Minimize Malware Spread

October 17, 2020 · 5 min · 1056 words · Samir Paul

Long Pressed Name

October 17, 2020 · 3 min · 627 words · Samir Paul

Flip String to Monotone Increasing

October 17, 2020 · 5 min · 939 words · Samir Paul

Three Equal Parts

October 17, 2020 · 5 min · 942 words · Samir Paul

Minimize Malware Spread II

October 17, 2020 · 7 min · 1352 words · Samir Paul

Unique Email Addresses

October 17, 2020 · 4 min · 845 words · Samir Paul

Binary Subarrays With Sum

October 17, 2020 · 5 min · 908 words · Samir Paul

Minimum Falling Path Sum

October 17, 2020 · 3 min · 594 words · Samir Paul

Beautiful Array

October 17, 2020 · 2 min · 403 words · Samir Paul

Number of Recent Calls

October 17, 2020 · 6 min · 1181 words · Samir Paul

Shortest Bridge

October 17, 2020 · 6 min · 1074 words · Samir Paul

Knight Dialer

October 17, 2020 · 6 min · 1121 words · Samir Paul

Stamping The Sequence

October 17, 2020 · 9 min · 1907 words · Samir Paul

Reorder Data in Log Files

October 16, 2020 · 3 min · 566 words · Samir Paul

Range Sum of BST

October 16, 2020 · 3 min · 627 words · Samir Paul

Minimum Area Rectangle

October 16, 2020 · 4 min · 647 words · Samir Paul

Distinct Subsequences II

October 16, 2020 · 6 min · 1095 words · Samir Paul

Valid Mountain Array

October 16, 2020 · 2 min · 410 words · Samir Paul

DI String Match

October 16, 2020 · 3 min · 556 words · Samir Paul

Find the Shortest Superstring

October 16, 2020 · 7 min · 1356 words · Samir Paul

Delete Columns to Make Sorted

October 16, 2020 · 3 min · 550 words · Samir Paul

Minimum Increment to Make Array Unique

October 16, 2020 · 2 min · 385 words · Samir Paul

Validate Stack Sequences

October 16, 2020 · 3 min · 599 words · Samir Paul

Most Stones Removed with Same Row or Column

October 16, 2020 · 4 min · 671 words · Samir Paul

Bag of Tokens

October 16, 2020 · 4 min · 656 words · Samir Paul

Largest Time for Given Digits

October 16, 2020 · 4 min · 732 words · Samir Paul

Reveal Cards In Increasing Order

October 16, 2020 · 3 min · 531 words · Samir Paul

Flip Equivalent Binary Trees

October 16, 2020 · 4 min · 666 words · Samir Paul

Largest Component Size by Common Factor

October 16, 2020 · 4 min · 776 words · Samir Paul

Verifying an Alien Dictionary

October 16, 2020 · 5 min · 1041 words · Samir Paul

Array of Doubled Pairs

October 16, 2020 · 3 min · 458 words · Samir Paul

Delete Columns to Make Sorted II

October 16, 2020 · 2 min · 380 words · Samir Paul

Tallest Billboard

October 16, 2020 · 7 min · 1379 words · Samir Paul

Prison Cells After N Days

October 16, 2020 · 2 min · 264 words · Samir Paul

Check Completeness of a Binary Tree

October 16, 2020 · 3 min · 555 words · Samir Paul

Regions Cut By Slashes

October 16, 2020 · 6 min · 1118 words · Samir Paul

Delete Columns to Make Sorted III

October 16, 2020 · 3 min · 634 words · Samir Paul

N-Repeated Element in Size 2N Array

October 15, 2020 · 2 min · 350 words · Samir Paul

Maximum Width Ramp

October 15, 2020 · 3 min · 490 words · Samir Paul

Minimum Area Rectangle II

October 15, 2020 · 6 min · 1222 words · Samir Paul

Least Operators to Express Number

October 15, 2020 · 5 min · 883 words · Samir Paul

Univalued Binary Tree

October 15, 2020 · 4 min · 747 words · Samir Paul

Vowel Spellchecker

October 15, 2020 · 5 min · 1030 words · Samir Paul

Numbers With Same Consecutive Differences

October 15, 2020 · 3 min · 576 words · Samir Paul

Binary Tree Cameras

October 15, 2020 · 5 min · 901 words · Samir Paul

Pancake Sorting

October 15, 2020 · 5 min · 919 words · Samir Paul

Powerful Integers

October 15, 2020 · 5 min · 856 words · Samir Paul

Flip Binary Tree To Match Preorder Traversal

October 15, 2020 · 5 min · 1053 words · Samir Paul

Equal Rational Numbers

October 15, 2020 · 2 min · 246 words · Samir Paul

K Closest Points to Origin

October 15, 2020 · 2 min · 425 words · Samir Paul

Subarray Sums Divisible by K

October 15, 2020 · 2 min · 411 words · Samir Paul

Odd Even Jump

October 15, 2020 · 7 min · 1304 words · Samir Paul

Largest Perimeter Triangle

October 15, 2020 · 3 min · 570 words · Samir Paul

Squares of a Sorted Array

October 15, 2020 · 4 min · 696 words · Samir Paul

Longest Turbulent Subarray

October 15, 2020 · 3 min · 571 words · Samir Paul

Distribute Coins in Binary Tree

October 15, 2020 · 4 min · 821 words · Samir Paul

Unique Paths III

October 15, 2020 · 7 min · 1457 words · Samir Paul

Time Based Key-Value Store

October 15, 2020 · 4 min · 721 words · Samir Paul

Triples with Bitwise AND Equal To Zero

October 15, 2020 · 3 min · 630 words · Samir Paul

Minimum Cost For Tickets

October 15, 2020 · 5 min · 988 words · Samir Paul

String Without AAA or BBB

October 15, 2020 · 3 min · 500 words · Samir Paul

Sum of Even Numbers After Queries

October 14, 2020 · 4 min · 794 words · Samir Paul

Interval List Intersections

October 14, 2020 · 4 min · 696 words · Samir Paul

Vertical Order Traversal of a Binary Tree

October 14, 2020 · 5 min · 865 words · Samir Paul

Smallest String Starting From Leaf

October 14, 2020 · 4 min · 683 words · Samir Paul

Add to Array-Form of Integer

October 14, 2020 · 4 min · 711 words · Samir Paul

Satisfiability of Equality Equations

October 14, 2020 · 4 min · 805 words · Samir Paul

Broken Calculator

October 14, 2020 · 2 min · 364 words · Samir Paul

Subarrays with K Different Integers

October 14, 2020 · 3 min · 619 words · Samir Paul

Cousins in Binary Tree

October 14, 2020 · 8 min · 1522 words · Samir Paul

Rotting Oranges

October 14, 2020 · 7 min · 1316 words · Samir Paul

Minimum Number of K Consecutive Bit Flips

October 14, 2020 · 5 min · 944 words · Samir Paul

Number of Squareful Arrays

October 14, 2020 · 5 min · 891 words · Samir Paul

Find the Town Judge

October 14, 2020 · 4 min · 803 words · Samir Paul

Maximum Binary Tree II

October 14, 2020 · 9 min · 1714 words · Samir Paul

Available Captures for Rook

October 14, 2020 · 5 min · 853 words · Samir Paul

Minimum Cost to Merge Stones

October 14, 2020 · 5 min · 993 words · Samir Paul

Grid Illumination

October 14, 2020 · 7 min · 1475 words · Samir Paul

Find Common Characters

October 14, 2020 · 3 min · 528 words · Samir Paul

Check If Word Is Valid After Substitutions

October 14, 2020 · 3 min · 568 words · Samir Paul

Max Consecutive Ones III

October 14, 2020 · 5 min · 877 words · Samir Paul

Maximize Sum Of Array After K Negations

October 14, 2020 · 4 min · 811 words · Samir Paul

Clumsy Factorial

October 14, 2020 · 2 min · 413 words · Samir Paul

Minimum Domino Rotations For Equal Row

October 14, 2020 · 5 min · 883 words · Samir Paul

Construct Binary Search Tree from Preorder Traversal

October 14, 2020 · 6 min · 1194 words · Samir Paul

Complement of Base 10 Integer

October 13, 2020 · 3 min · 480 words · Samir Paul

Pairs of Songs With Total Durations Divisible by 60

October 13, 2020 · 4 min · 793 words · Samir Paul

Capacity To Ship Packages Within D Days

October 13, 2020 · 4 min · 838 words · Samir Paul

Numbers With Repeated Digits

October 13, 2020 · 9 min · 1855 words · Samir Paul

Partition Array Into Three Parts With Equal Sum

October 13, 2020 · 3 min · 595 words · Samir Paul

Best Sightseeing Pair

October 13, 2020 · 2 min · 382 words · Samir Paul

Smallest Integer Divisible by K

October 13, 2020 · 2 min · 403 words · Samir Paul

Binary String With Substrings Representing 1 To N

October 13, 2020 · 2 min · 357 words · Samir Paul

Convert to Base -2

October 13, 2020 · 3 min · 461 words · Samir Paul

Binary Prefix Divisible By 5

October 13, 2020 · 2 min · 363 words · Samir Paul

Next Greater Node In Linked List

October 13, 2020 · 6 min · 1254 words · Samir Paul

Number of Enclaves

October 13, 2020 · 16 min · 3342 words · Samir Paul

Remove Outermost Parentheses

October 13, 2020 · 5 min · 933 words · Samir Paul

Sum of Root To Leaf Binary Numbers

October 13, 2020 · 5 min · 944 words · Samir Paul

Camelcase Matching

October 13, 2020 · 5 min · 994 words · Samir Paul

Video Stitching

October 13, 2020 · 3 min · 638 words · Samir Paul

Divisor Game

October 13, 2020 · 2 min · 220 words · Samir Paul

Maximum Difference Between Node and Ancestor

October 13, 2020 · 5 min · 973 words · Samir Paul

Longest Arithmetic Subsequence

October 13, 2020 · 3 min · 544 words · Samir Paul

Recover a Tree From Preorder Traversal

October 13, 2020 · 2 min · 347 words · Samir Paul

Two City Scheduling

October 13, 2020 · 3 min · 469 words · Samir Paul

Matrix Cells in Distance Order

October 13, 2020 · 4 min · 761 words · Samir Paul

Maximum Sum of Two Non-Overlapping Subarrays

October 13, 2020 · 4 min · 666 words · Samir Paul

Stream of Characters

October 13, 2020 · 6 min · 1105 words · Samir Paul

Moving Stones Until Consecutive

October 12, 2020 · 4 min · 709 words · Samir Paul

Coloring A Border

October 12, 2020 · 5 min · 973 words · Samir Paul

Uncrossed Lines

October 12, 2020 · 4 min · 654 words · Samir Paul

Escape a Large Maze

October 12, 2020 · 6 min · 1215 words · Samir Paul

Valid Boomerang

October 12, 2020 · 2 min · 366 words · Samir Paul

Binary Search Tree to Greater Sum Tree

October 12, 2020 · 10 min · 2072 words · Samir Paul

Minimum Score Triangulation of Polygon

October 12, 2020 · 8 min · 1639 words · Samir Paul

Moving Stones Until Consecutive II

October 12, 2020 · 4 min · 841 words · Samir Paul

Robot Bounded In Circle

October 12, 2020 · 4 min · 846 words · Samir Paul

Flower Planting With No Adjacent

October 12, 2020 · 4 min · 764 words · Samir Paul

Partition Array for Maximum Sum

October 12, 2020 · 4 min · 686 words · Samir Paul

Longest Duplicate Substring

October 12, 2020 · 4 min · 798 words · Samir Paul

Customers Who Bought All Products

October 12, 2020 · 2 min · 287 words · Samir Paul

Last Stone Weight

October 12, 2020 · 4 min · 698 words · Samir Paul

Remove All Adjacent Duplicates In String

October 12, 2020 · 3 min · 534 words · Samir Paul

Longest String Chain

October 12, 2020 · 5 min · 895 words · Samir Paul

Last Stone Weight II

October 12, 2020 · 6 min · 1169 words · Samir Paul

Actors and Directors Who Cooperated At Least Three Times

October 12, 2020 · 2 min · 249 words · Samir Paul

Height Checker

October 12, 2020 · 3 min · 616 words · Samir Paul

Grumpy Bookstore Owner

October 12, 2020 · 4 min · 797 words · Samir Paul

Previous Permutation With One Swap

October 12, 2020 · 3 min · 550 words · Samir Paul

Distant Barcodes

October 12, 2020 · 3 min · 578 words · Samir Paul

Shortest Way to Form String

October 12, 2020 · 3 min · 538 words · Samir Paul

Confusing Number

October 12, 2020 · 3 min · 588 words · Samir Paul

Campus Bikes

October 11, 2020 · 5 min · 911 words · Samir Paul

Minimize Rounding Error to Meet Target

October 11, 2020 · 4 min · 668 words · Samir Paul

All Paths from Source Lead to Destination

October 11, 2020 · 4 min · 749 words · Samir Paul

Missing Element in Sorted Array

October 11, 2020 · 3 min · 602 words · Samir Paul

Lexicographically Smallest Equivalent String

October 11, 2020 · 4 min · 836 words · Samir Paul

Longest Repeating Substring

October 11, 2020 · 3 min · 448 words · Samir Paul

Number of Valid Subarrays

October 11, 2020 · 5 min · 902 words · Samir Paul

Fixed Point

October 11, 2020 · 3 min · 481 words · Samir Paul

Index Pairs of a String

October 11, 2020 · 4 min · 819 words · Samir Paul

Campus Bikes II

October 11, 2020 · 5 min · 873 words · Samir Paul

Digit Count in Range

October 11, 2020 · 5 min · 944 words · Samir Paul

Product Sales Analysis I

October 11, 2020 · 2 min · 358 words · Samir Paul

Product Sales Analysis II

October 11, 2020 · 2 min · 288 words · Samir Paul

Product Sales Analysis III

October 11, 2020 · 2 min · 390 words · Samir Paul

Greatest Common Divisor of Strings

October 11, 2020 · 3 min · 442 words · Samir Paul

Flip Columns For Maximum Number of Equal Rows

October 11, 2020 · 3 min · 486 words · Samir Paul

Adding Two Negabinary Numbers

October 11, 2020 · 5 min · 1036 words · Samir Paul

Number of Submatrices That Sum to Target

October 11, 2020 · 4 min · 820 words · Samir Paul

Project Employees I

October 11, 2020 · 2 min · 313 words · Samir Paul

Project Employees II

October 11, 2020 · 2 min · 341 words · Samir Paul

Project Employees III

October 11, 2020 · 2 min · 406 words · Samir Paul

Occurrences After Bigram

October 11, 2020 · 3 min · 463 words · Samir Paul

Letter Tile Possibilities

October 11, 2020 · 3 min · 482 words · Samir Paul

Insufficient Nodes in Root to Leaf Paths

October 11, 2020 · 5 min · 922 words · Samir Paul

Smallest Subsequence of Distinct Characters

October 10, 2020 · 4 min · 727 words · Samir Paul

Sales Analysis I

October 10, 2020 · 2 min · 394 words · Samir Paul

Sales Analysis II

October 10, 2020 · 2 min · 355 words · Samir Paul

Sales Analysis III

October 10, 2020 · 2 min · 388 words · Samir Paul

Sum of Digits in the Minimum Number

October 10, 2020 · 2 min · 310 words · Samir Paul

High Five

October 10, 2020 · 4 min · 705 words · Samir Paul

Brace Expansion

October 10, 2020 · 2 min · 423 words · Samir Paul

Confusing Number II

October 10, 2020 · 5 min · 1011 words · Samir Paul

Duplicate Zeros

October 10, 2020 · 4 min · 714 words · Samir Paul

Largest Values From Labels

October 10, 2020 · 4 min · 744 words · Samir Paul

Shortest Path in Binary Matrix

October 10, 2020 · 6 min · 1070 words · Samir Paul

Shortest Common Supersequence

October 10, 2020 · 5 min · 1051 words · Samir Paul

Statistics from a Large Sample

October 10, 2020 · 6 min · 1148 words · Samir Paul

Car Pooling

October 10, 2020 · 5 min · 901 words · Samir Paul

Find in Mountain Array

October 10, 2020 · 7 min · 1457 words · Samir Paul

Brace Expansion II

October 10, 2020 · 4 min · 733 words · Samir Paul

Game Play Analysis V

October 10, 2020 · 2 min · 408 words · Samir Paul

Unpopular Books

October 10, 2020 · 2 min · 357 words · Samir Paul

Two Sum Less Than K

October 10, 2020 · 5 min · 1007 words · Samir Paul

Find K-Length Substrings With No Repeated Characters

October 10, 2020 · 7 min · 1337 words · Samir Paul

The Earliest Moment When Everyone Become Friends

October 10, 2020 · 10 min · 2099 words · Samir Paul

Path With Maximum Minimum Value

October 10, 2020 · 15 min · 3119 words · Samir Paul

Distribute Candies to People

October 10, 2020 · 3 min · 583 words · Samir Paul

Path In Zigzag Labelled Binary Tree

October 10, 2020 · 3 min · 607 words · Samir Paul

Filling Bookcase Shelves

October 9, 2020 · 6 min · 1070 words · Samir Paul

Parsing A Boolean Expression

October 9, 2020 · 6 min · 1202 words · Samir Paul

New Users Daily Count

October 9, 2020 · 2 min · 331 words · Samir Paul

Defanging an IP Address

October 9, 2020 · 1 min · 206 words · Samir Paul

Corporate Flight Bookings

October 9, 2020 · 8 min · 1584 words · Samir Paul

Delete Nodes And Return Forest

October 9, 2020 · 6 min · 1128 words · Samir Paul

Maximum Nesting Depth of Two Valid Parentheses Strings

October 9, 2020 · 3 min · 629 words · Samir Paul

Highest Grade For Each Student

October 9, 2020 · 2 min · 387 words · Samir Paul

Reported Posts

October 9, 2020 · 2 min · 353 words · Samir Paul

Print in Order

October 9, 2020 · 4 min · 850 words · Samir Paul

Print FooBar Alternately

October 9, 2020 · 4 min · 683 words · Samir Paul

Print Zero Even Odd

October 9, 2020 · 4 min · 851 words · Samir Paul

Building H2O

October 9, 2020 · 3 min · 585 words · Samir Paul

Number of Days in a Month

October 9, 2020 · 3 min · 481 words · Samir Paul

Remove Vowels from a String

October 9, 2020 · 2 min · 334 words · Samir Paul

Maximum Average Subtree

October 9, 2020 · 5 min · 922 words · Samir Paul

Divide Array Into Increasing Sequences

October 9, 2020 · 3 min · 536 words · Samir Paul

Relative Sort Array

October 9, 2020 · 3 min · 606 words · Samir Paul

Lowest Common Ancestor of Deepest Leaves

October 9, 2020 · 6 min · 1147 words · Samir Paul

Longest Well-Performing Interval

October 9, 2020 · 4 min · 693 words · Samir Paul

Smallest Sufficient Team

October 9, 2020 · 8 min · 1558 words · Samir Paul

Active Businesses

October 9, 2020 · 2 min · 384 words · Samir Paul

User Purchase Platform

October 9, 2020 · 3 min · 433 words · Samir Paul

Number of Equivalent Domino Pairs

October 9, 2020 · 3 min · 558 words · Samir Paul

Shortest Path with Alternating Colors

October 8, 2020 · 6 min · 1133 words · Samir Paul

Minimum Cost Tree From Leaf Values

October 8, 2020 · 10 min · 2086 words · Samir Paul

Maximum of Absolute Value Expression

October 8, 2020 · 4 min · 842 words · Samir Paul

Reported Posts II

October 8, 2020 · 3 min · 503 words · Samir Paul

Largest Unique Number

October 8, 2020 · 3 min · 531 words · Samir Paul

Armstrong Number

October 8, 2020 · 3 min · 460 words · Samir Paul

Connecting Cities With Minimum Cost

October 8, 2020 · 5 min · 945 words · Samir Paul

Parallel Courses

October 8, 2020 · 5 min · 1020 words · Samir Paul

N-th Tribonacci Number

October 8, 2020 · 10 min · 1961 words · Samir Paul

Alphabet Board Path

October 8, 2020 · 4 min · 688 words · Samir Paul

Largest 1-Bordered Square

October 8, 2020 · 5 min · 889 words · Samir Paul

Stone Game II

October 8, 2020 · 6 min · 1176 words · Samir Paul

User Activity for the Past 30 Days I

October 8, 2020 · 2 min · 318 words · Samir Paul

User Activity for the Past 30 Days II

October 8, 2020 · 2 min · 406 words · Samir Paul

Longest Common Subsequence

October 8, 2020 · 6 min · 1225 words · Samir Paul

Decrease Elements To Make Array Zigzag

October 8, 2020 · 4 min · 755 words · Samir Paul

Binary Tree Coloring Game

October 8, 2020 · 7 min · 1381 words · Samir Paul

Snapshot Array

October 8, 2020 · 5 min · 899 words · Samir Paul

Longest Chunked Palindrome Decomposition

October 8, 2020 · 10 min · 2079 words · Samir Paul

Article Views I

October 8, 2020 · 2 min · 244 words · Samir Paul

Article Views II

October 8, 2020 · 2 min · 248 words · Samir Paul

Check If a Number Is Majority Element in a Sorted Array

October 8, 2020 · 5 min · 1061 words · Samir Paul

Minimum Swaps to Group All 1’s Together

October 8, 2020 · 3 min · 626 words · Samir Paul

Analyze User Website Visit Pattern

October 8, 2020 · 6 min · 1269 words · Samir Paul

String Transforms Into Another String

October 7, 2020 · 4 min · 793 words · Samir Paul

Day of the Year

October 7, 2020 · 4 min · 749 words · Samir Paul

Number of Dice Rolls With Target Sum

October 7, 2020 · 7 min · 1465 words · Samir Paul

Swap For Longest Repeated Character Substring

October 7, 2020 · 5 min · 973 words · Samir Paul

Online Majority Element In Subarray

October 7, 2020 · 12 min · 2367 words · Samir Paul

Market Analysis I

October 7, 2020 · 3 min · 495 words · Samir Paul

Market Analysis II

October 7, 2020 · 3 min · 546 words · Samir Paul

Find Words That Can Be Formed by Characters

October 7, 2020 · 4 min · 843 words · Samir Paul

Maximum Level Sum of a Binary Tree

October 7, 2020 · 8 min · 1658 words · Samir Paul

As Far from Land as Possible

October 7, 2020 · 6 min · 1111 words · Samir Paul

Last Substring in Lexicographical Order

October 7, 2020 · 5 min · 892 words · Samir Paul

Product Price at a Given Date

October 7, 2020 · 3 min · 432 words · Samir Paul

Single-Row Keyboard

October 7, 2020 · 4 min · 701 words · Samir Paul

Design File System

October 7, 2020 · 8 min · 1542 words · Samir Paul

Minimum Cost to Connect Sticks

October 7, 2020 · 5 min · 1037 words · Samir Paul

Optimize Water Distribution in a Village

October 7, 2020 · 13 min · 2625 words · Samir Paul

Invalid Transactions

October 7, 2020 · 5 min · 978 words · Samir Paul

Compare Strings by Frequency of the Smallest Character

October 7, 2020 · 5 min · 940 words · Samir Paul

Remove Zero Sum Consecutive Nodes from Linked List

October 7, 2020 · 6 min · 1107 words · Samir Paul

Dinner Plate Stacks

October 7, 2020 · 18 min · 3805 words · Samir Paul

Immediate Food Delivery I

October 7, 2020 · 2 min · 304 words · Samir Paul

Immediate Food Delivery II

October 7, 2020 · 3 min · 506 words · Samir Paul

Prime Arrangements

October 7, 2020 · 4 min · 808 words · Samir Paul

Diet Plan Performance

October 7, 2020 · 7 min · 1427 words · Samir Paul

Can Make Palindrome from Substring

October 6, 2020 · 5 min · 1052 words · Samir Paul

Number of Valid Words for Each Puzzle

October 6, 2020 · 6 min · 1157 words · Samir Paul

Reformat Department Table

October 6, 2020 · 3 min · 443 words · Samir Paul

Count Substrings with Only One Distinct Letter

October 6, 2020 · 4 min · 824 words · Samir Paul

Before and After Puzzle

October 6, 2020 · 5 min · 876 words · Samir Paul

Shortest Distance to Target Color

October 6, 2020 · 6 min · 1116 words · Samir Paul

Maximum Number of Ones

October 6, 2020 · 4 min · 713 words · Samir Paul

Distance Between Bus Stops

October 6, 2020 · 3 min · 634 words · Samir Paul

Day of the Week

October 6, 2020 · 4 min · 796 words · Samir Paul

Maximum Subarray Sum with One Deletion

October 6, 2020 · 4 min · 835 words · Samir Paul

Make Array Strictly Increasing

October 6, 2020 · 8 min · 1564 words · Samir Paul

Design Bounded Blocking Queue

October 6, 2020 · 4 min · 795 words · Samir Paul

Maximum Number of Balloons

October 6, 2020 · 4 min · 741 words · Samir Paul

Reverse Substrings Between Each Pair of Parentheses

October 6, 2020 · 6 min · 1095 words · Samir Paul

K-Concatenation Maximum Sum

October 6, 2020 · 4 min · 773 words · Samir Paul

Critical Connections in a Network

October 6, 2020 · 5 min · 1009 words · Samir Paul

Monthly Transactions I

October 6, 2020 · 2 min · 327 words · Samir Paul

Tournament Winners

October 6, 2020 · 3 min · 484 words · Samir Paul

Fizz Buzz Multithreaded

October 6, 2020 · 4 min · 746 words · Samir Paul

How Many Apples Can You Put into the Basket

October 6, 2020 · 3 min · 464 words · Samir Paul

Minimum Knight Moves

October 6, 2020 · 12 min · 2549 words · Samir Paul

Find Smallest Common Element in All Rows

October 6, 2020 · 3 min · 439 words · Samir Paul

Minimum Time to Build Blocks

October 6, 2020 · 4 min · 816 words · Samir Paul

Minimum Absolute Difference

October 6, 2020 · 3 min · 612 words · Samir Paul

Ugly Number III

October 5, 2020 · 6 min · 1241 words · Samir Paul

Smallest String With Swaps

October 5, 2020 · 6 min · 1222 words · Samir Paul

Sort Items by Groups Respecting Dependencies

October 5, 2020 · 10 min · 1962 words · Samir Paul

Last Person to Fit in the Bus

October 5, 2020 · 3 min · 478 words · Samir Paul

Monthly Transactions II

October 5, 2020 · 3 min · 445 words · Samir Paul

Design Skiplist

October 5, 2020 · 9 min · 1750 words · Samir Paul

Unique Number of Occurrences

October 5, 2020 · 2 min · 374 words · Samir Paul

Get Equal Substrings Within Budget

October 5, 2020 · 8 min · 1547 words · Samir Paul

Remove All Adjacent Duplicates in String II

October 5, 2020 · 4 min · 788 words · Samir Paul

Minimum Moves to Reach Target with Rotations

October 5, 2020 · 12 min · 2494 words · Samir Paul

Queries Quality and Percentage

October 5, 2020 · 2 min · 380 words · Samir Paul

Team Scores in Football Tournament

October 5, 2020 · 4 min · 666 words · Samir Paul

Intersection of Three Sorted Arrays

October 5, 2020 · 4 min · 794 words · Samir Paul

Two Sum BSTs

October 5, 2020 · 6 min · 1116 words · Samir Paul

Stepping Numbers

October 5, 2020 · 4 min · 814 words · Samir Paul

Valid Palindrome III

October 5, 2020 · 5 min · 959 words · Samir Paul

Minimum Cost to Move Chips to The Same Position

October 5, 2020 · 3 min · 486 words · Samir Paul

Longest Arithmetic Subsequence of Given Difference

October 5, 2020 · 2 min · 421 words · Samir Paul

Path with Maximum Gold

October 5, 2020 · 6 min · 1154 words · Samir Paul

Count Vowels Permutation

October 5, 2020 · 12 min · 2543 words · Samir Paul

Split a String in Balanced Strings

October 5, 2020 · 3 min · 566 words · Samir Paul

Queens That Can Attack the King

October 5, 2020 · 5 min · 925 words · Samir Paul

Dice Roll Simulation

October 5, 2020 · 9 min · 1879 words · Samir Paul

Maximum Equal Frequency

October 5, 2020 · 5 min · 944 words · Samir Paul

Report Contiguous Dates

October 4, 2020 · 3 min · 515 words · Samir Paul

The Dining Philosophers

October 4, 2020 · 3 min · 495 words · Samir Paul

Airplane Seat Assignment Probability

October 4, 2020 · 4 min · 849 words · Samir Paul

Missing Number In Arithmetic Progression

October 4, 2020 · 3 min · 591 words · Samir Paul

Meeting Scheduler

October 4, 2020 · 5 min · 884 words · Samir Paul

Toss Strange Coins

October 4, 2020 · 6 min · 1082 words · Samir Paul

Divide Chocolate

October 4, 2020 · 5 min · 1000 words · Samir Paul

Check If It Is a Straight Line

October 4, 2020 · 2 min · 360 words · Samir Paul

Remove Sub-Folders from the Filesystem

October 4, 2020 · 8 min · 1660 words · Samir Paul

Replace the Substring for Balanced String

October 4, 2020 · 4 min · 818 words · Samir Paul

Maximum Profit in Job Scheduling

October 4, 2020 · 9 min · 1732 words · Samir Paul

Web Crawler

October 4, 2020 · 5 min · 864 words · Samir Paul

Find Positive Integer Solution for a Given Equation

October 4, 2020 · 11 min · 2146 words · Samir Paul

Circular Permutation in Binary Representation

October 4, 2020 · 5 min · 964 words · Samir Paul

Maximum Length of a Concatenated String with Unique Characters

October 4, 2020 · 4 min · 711 words · Samir Paul

Tiling a Rectangle with the Fewest Squares

October 4, 2020 · 14 min · 2914 words · Samir Paul

Number of Comments per Post

October 4, 2020 · 2 min · 373 words · Samir Paul

Web Crawler Multithreaded

October 4, 2020 · 3 min · 492 words · Samir Paul

Array Transformation

October 4, 2020 · 3 min · 633 words · Samir Paul

Design A Leaderboard

October 4, 2020 · 5 min · 1048 words · Samir Paul

Tree Diameter

October 4, 2020 · 5 min · 999 words · Samir Paul

Palindrome Removal

October 4, 2020 · 4 min · 794 words · Samir Paul

Minimum Swaps to Make Strings Equal

October 4, 2020 · 4 min · 763 words · Samir Paul

Count Number of Nice Subarrays

October 4, 2020 · 3 min · 550 words · Samir Paul

Minimum Remove to Make Valid Parentheses

October 3, 2020 · 5 min · 1052 words · Samir Paul

Check If It Is a Good Array

October 3, 2020 · 3 min · 556 words · Samir Paul

Average Selling Price

October 3, 2020 · 3 min · 473 words · Samir Paul

Cells with Odd Values in a Matrix

October 3, 2020 · 7 min · 1455 words · Samir Paul

Reconstruct a 2-Row Binary Matrix

October 3, 2020 · 5 min · 1012 words · Samir Paul

Number of Closed Islands

October 3, 2020 · 16 min · 3205 words · Samir Paul

Maximum Score Words Formed by Letters

October 3, 2020 · 5 min · 1038 words · Samir Paul

Encode Number

October 3, 2020 · 2 min · 226 words · Samir Paul

Smallest Common Region

October 3, 2020 · 3 min · 516 words · Samir Paul

Synonymous Sentences

October 3, 2020 · 8 min · 1704 words · Samir Paul

Handshakes That Don’t Cross

October 3, 2020 · 4 min · 723 words · Samir Paul

Shift 2D Grid

October 3, 2020 · 4 min · 724 words · Samir Paul

Find Elements in a Contaminated Binary Tree

October 3, 2020 · 5 min · 967 words · Samir Paul

Greatest Sum Divisible by Three

October 3, 2020 · 5 min · 1021 words · Samir Paul

Minimum Moves to Move a Box to Their Target Location

October 3, 2020 · 15 min · 3046 words · Samir Paul

Page Recommendations

October 3, 2020 · 3 min · 512 words · Samir Paul

Print Immutable Linked List in Reverse

October 3, 2020 · 4 min · 734 words · Samir Paul

Minimum Time Visiting All Points

October 3, 2020 · 4 min · 710 words · Samir Paul

Count Servers that Communicate

October 3, 2020 · 4 min · 788 words · Samir Paul

Search Suggestions System

October 3, 2020 · 6 min · 1256 words · Samir Paul

Number of Ways to Stay in the Same Place After Some Steps

October 3, 2020 · 5 min · 1058 words · Samir Paul

All People Report to the Given Manager

October 3, 2020 · 3 min · 448 words · Samir Paul

Hexspeak

October 3, 2020 · 3 min · 433 words · Samir Paul

Remove Interval

October 3, 2020 · 4 min · 656 words · Samir Paul

Delete Tree Nodes

October 2, 2020 · 4 min · 668 words · Samir Paul

Number of Ships in a Rectangle

October 2, 2020 · 6 min · 1254 words · Samir Paul

Find Winner on a Tic Tac Toe Game

October 2, 2020 · 5 min · 1006 words · Samir Paul

Number of Burgers with No Waste of Ingredients

October 2, 2020 · 3 min · 626 words · Samir Paul

Count Square Submatrices with All Ones

October 2, 2020 · 3 min · 542 words · Samir Paul

Palindrome Partitioning III

October 2, 2020 · 4 min · 796 words · Samir Paul

Traffic Light Controlled Intersection

October 2, 2020 · 5 min · 921 words · Samir Paul

Students and Examinations

October 2, 2020 · 3 min · 627 words · Samir Paul

Subtract the Product and Sum of Digits of an Integer

October 2, 2020 · 4 min · 662 words · Samir Paul

Group the People Given the Group Size They Belong To

October 2, 2020 · 4 min · 771 words · Samir Paul

Find the Smallest Divisor Given a Threshold

October 2, 2020 · 5 min · 962 words · Samir Paul

Minimum Number of Flips to Convert Binary Matrix to Zero Matrix

October 2, 2020 · 6 min · 1127 words · Samir Paul

Find the Start and End Number of Continuous Ranges

October 2, 2020 · 3 min · 431 words · Samir Paul

Iterator for Combination

October 2, 2020 · 7 min · 1470 words · Samir Paul

Element Appearing More Than 25% In Sorted Array

October 2, 2020 · 2 min · 363 words · Samir Paul

Remove Covered Intervals

October 2, 2020 · 2 min · 385 words · Samir Paul

Minimum Falling Path Sum II

October 2, 2020 · 5 min · 1027 words · Samir Paul

Convert Binary Number in a Linked List to Integer

October 2, 2020 · 5 min · 915 words · Samir Paul

Sequential Digits

October 2, 2020 · 3 min · 451 words · Samir Paul

Maximum Side Length of a Square with Sum Less than or Equal to Threshold

October 2, 2020 · 6 min · 1091 words · Samir Paul

Shortest Path in a Grid with Obstacles Elimination

October 2, 2020 · 5 min · 1061 words · Samir Paul

Weather Type in Each Country

October 2, 2020 · 3 min · 563 words · Samir Paul

Find Numbers with Even Number of Digits

October 2, 2020 · 2 min · 311 words · Samir Paul

Divide Array in Sets of K Consecutive Numbers

October 2, 2020 · 5 min · 880 words · Samir Paul

Maximum Number of Occurrences of a Substring

October 1, 2020 · 3 min · 475 words · Samir Paul

Maximum Candies You Can Get from Boxes

October 1, 2020 · 5 min · 1004 words · Samir Paul

Replace Elements with Greatest Element on Right Side

October 1, 2020 · 2 min · 280 words · Samir Paul

Sum of Mutated Array Closest to Target

October 1, 2020 · 4 min · 647 words · Samir Paul

Number of Paths with Max Score

October 1, 2020 · 5 min · 1065 words · Samir Paul

Deepest Leaves Sum

October 1, 2020 · 9 min · 1766 words · Samir Paul

Find the Team Size

October 1, 2020 · 2 min · 377 words · Samir Paul

Find N Unique Integers Sum up to Zero

October 1, 2020 · 3 min · 509 words · Samir Paul

All Elements in Two Binary Search Trees

October 1, 2020 · 7 min · 1283 words · Samir Paul

Jump Game III

October 1, 2020 · 3 min · 612 words · Samir Paul

Verbal Arithmetic Puzzle

October 1, 2020 · 2 min · 240 words · Samir Paul

Running Total for Different Genders

October 1, 2020 · 3 min · 520 words · Samir Paul

Decrypt String from Alphabet to Integer Mapping

October 1, 2020 · 3 min · 579 words · Samir Paul

XOR Queries of a Subarray

October 1, 2020 · 3 min · 609 words · Samir Paul

Get Watched Videos by Your Friends

October 1, 2020 · 3 min · 587 words · Samir Paul

Minimum Insertion Steps to Make a String Palindrome

October 1, 2020 · 7 min · 1279 words · Samir Paul

Decompress Run-Length Encoded List

October 1, 2020 · 3 min · 591 words · Samir Paul

Matrix Block Sum

October 1, 2020 · 4 min · 836 words · Samir Paul

Sum of Nodes with Even-Valued Grandparent

October 1, 2020 · 3 min · 633 words · Samir Paul

Distinct Echo Substrings

October 1, 2020 · 5 min · 1010 words · Samir Paul

Convert Integer to the Sum of Two No-Zero Integers

October 1, 2020 · 3 min · 633 words · Samir Paul

Minimum Flips to Make a OR b Equal to c

October 1, 2020 · 3 min · 457 words · Samir Paul

Number of Operations to Make Network Connected

October 1, 2020 · 4 min · 646 words · Samir Paul

Minimum Distance to Type a Word Using Two Fingers

October 1, 2020 · 6 min · 1278 words · Samir Paul

September  720

Restaurant Growth

September 30, 2020 · 3 min · 575 words · Samir Paul

Ads Performance

September 30, 2020 · 2 min · 364 words · Samir Paul

Maximum 69 Number

September 30, 2020 · 2 min · 413 words · Samir Paul

Print Words Vertically

September 30, 2020 · 3 min · 526 words · Samir Paul

Delete Leaves With a Given Value

September 30, 2020 · 4 min · 728 words · Samir Paul

Minimum Number of Taps to Open to Water a Garden

September 30, 2020 · 5 min · 932 words · Samir Paul

List the Products Ordered in a Period

September 30, 2020 · 3 min · 442 words · Samir Paul

Break a Palindrome

September 30, 2020 · 3 min · 588 words · Samir Paul

Sort the Matrix Diagonally

September 30, 2020 · 3 min · 446 words · Samir Paul

Reverse Subarray To Maximize Array Value

September 30, 2020 · 5 min · 1048 words · Samir Paul

Rank Transform of an Array

September 30, 2020 · 3 min · 514 words · Samir Paul

Remove Palindromic Subsequences

September 30, 2020 · 3 min · 448 words · Samir Paul

Filter Restaurants by Vegan-Friendly, Price and Distance

September 30, 2020 · 4 min · 683 words · Samir Paul

Find the City With the Smallest Number of Neighbors at a Threshold Distance

September 30, 2020 · 11 min · 2251 words · Samir Paul

Minimum Difficulty of a Job Schedule

September 30, 2020 · 5 min · 922 words · Samir Paul

Number of Transactions per Visit

September 30, 2020 · 4 min · 688 words · Samir Paul

The K Weakest Rows in a Matrix

September 30, 2020 · 4 min · 767 words · Samir Paul

Reduce Array Size to The Half

September 30, 2020 · 3 min · 567 words · Samir Paul

Maximum Product of Splitted Binary Tree

September 30, 2020 · 5 min · 1018 words · Samir Paul

Jump Game V

September 30, 2020 · 7 min · 1383 words · Samir Paul

Movie Rating

September 30, 2020 · 3 min · 489 words · Samir Paul

Number of Steps to Reduce a Number to Zero

September 30, 2020 · 4 min · 704 words · Samir Paul

Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold

September 30, 2020 · 3 min · 507 words · Samir Paul

Angle Between Hands of a Clock

September 30, 2020 · 2 min · 307 words · Samir Paul

Jump Game IV

September 29, 2020 · 4 min · 811 words · Samir Paul

Check If N and Its Double Exist

September 29, 2020 · 8 min · 1598 words · Samir Paul

Minimum Number of Steps to Make Two Strings Anagram

September 29, 2020 · 3 min · 484 words · Samir Paul

Tweet Counts Per Frequency

September 29, 2020 · 4 min · 791 words · Samir Paul

Maximum Students Taking Exam

September 29, 2020 · 8 min · 1504 words · Samir Paul

Students With Invalid Departments

September 29, 2020 · 3 min · 434 words · Samir Paul

Count Negative Numbers in a Sorted Matrix

September 29, 2020 · 7 min · 1335 words · Samir Paul

Product of the Last K Numbers

September 29, 2020 · 4 min · 805 words · Samir Paul

Maximum Number of Events That Can Be Attended

September 29, 2020 · 4 min · 806 words · Samir Paul

Construct Target Array With Multiple Sums

September 29, 2020 · 5 min · 961 words · Samir Paul

Activity Participants

September 29, 2020 · 2 min · 353 words · Samir Paul

Sort Integers by The Number of 1 Bits

September 29, 2020 · 4 min · 800 words · Samir Paul

Apply Discount Every n Orders

September 29, 2020 · 6 min · 1093 words · Samir Paul

Number of Substrings Containing All Three Characters

September 29, 2020 · 2 min · 403 words · Samir Paul

Count All Valid Pickup and Delivery Options

September 29, 2020 · 3 min · 541 words · Samir Paul

Number of Days Between Two Dates

September 29, 2020 · 6 min · 1078 words · Samir Paul

Validate Binary Tree Nodes

September 29, 2020 · 4 min · 793 words · Samir Paul

Closest Divisors

September 29, 2020 · 3 min · 528 words · Samir Paul

Largest Multiple of Three

September 29, 2020 · 6 min · 1265 words · Samir Paul

Number of Trusted Contacts of a Customer

September 29, 2020 · 3 min · 622 words · Samir Paul

How Many Numbers Are Smaller Than the Current Number

September 29, 2020 · 5 min · 1015 words · Samir Paul

Rank Teams by Votes

September 29, 2020 · 4 min · 812 words · Samir Paul

Linked List in Binary Tree

September 29, 2020 · 8 min · 1528 words · Samir Paul

Minimum Cost to Make at Least One Valid Path in a Grid

September 29, 2020 · 7 min · 1319 words · Samir Paul

Get the Second Most Recent Activity

September 28, 2020 · 2 min · 304 words · Samir Paul

Increasing Decreasing String

September 28, 2020 · 5 min · 980 words · Samir Paul

Find the Longest Substring Containing Vowels in Even Counts

September 28, 2020 · 3 min · 496 words · Samir Paul

Longest ZigZag Path in a Binary Tree

September 28, 2020 · 4 min · 649 words · Samir Paul

Maximum Sum BST in Binary Tree

September 28, 2020 · 7 min · 1378 words · Samir Paul

Generate a String With Characters That Have Odd Counts

September 28, 2020 · 2 min · 367 words · Samir Paul

Number of Times Binary String Is Prefix-Aligned

September 28, 2020 · 3 min · 629 words · Samir Paul

Time Needed to Inform All Employees

September 28, 2020 · 5 min · 958 words · Samir Paul

Frog Position After T Seconds

September 28, 2020 · 8 min · 1538 words · Samir Paul

Replace Employee ID With The Unique Identifier

September 28, 2020 · 2 min · 316 words · Samir Paul

Find a Corresponding Node of a Binary Tree in a Clone of That Tree

September 28, 2020 · 5 min · 920 words · Samir Paul

Lucky Numbers in a Matrix

September 28, 2020 · 5 min · 884 words · Samir Paul

Design a Stack With Increment Operation

September 28, 2020 · 6 min · 1236 words · Samir Paul

Balance a Binary Search Tree

September 28, 2020 · 5 min · 1059 words · Samir Paul

Maximum Performance of a Team

September 28, 2020 · 4 min · 766 words · Samir Paul

Total Sales Amount by Year

September 28, 2020 · 3 min · 518 words · Samir Paul

Find the Distance Value Between Two Arrays

September 28, 2020 · 4 min · 823 words · Samir Paul

Cinema Seat Allocation

September 28, 2020 · 5 min · 865 words · Samir Paul

Sort Integers by The Power Value

September 28, 2020 · 5 min · 1045 words · Samir Paul

Pizza With 3n Slices

September 28, 2020 · 6 min · 1187 words · Samir Paul

Create Target Array in the Given Order

September 28, 2020 · 3 min · 450 words · Samir Paul

Four Divisors

September 28, 2020 · 4 min · 691 words · Samir Paul

Check if There is a Valid Path in a Grid

September 28, 2020 · 8 min · 1691 words · Samir Paul

Longest Happy Prefix

September 28, 2020 · 5 min · 904 words · Samir Paul

Capital GainLoss

September 27, 2020 · 3 min · 512 words · Samir Paul

Find Lucky Integer in an Array

September 27, 2020 · 3 min · 554 words · Samir Paul

Count Number of Teams

September 27, 2020 · 11 min · 2193 words · Samir Paul

Design Underground System

September 27, 2020 · 7 min · 1330 words · Samir Paul

Find All Good Strings

September 27, 2020 · 2 min · 214 words · Samir Paul

Customers Who Bought Products A and B but Not C

September 27, 2020 · 2 min · 384 words · Samir Paul

Count Largest Group

September 27, 2020 · 4 min · 704 words · Samir Paul

Construct K Palindrome Strings

September 27, 2020 · 3 min · 580 words · Samir Paul

Circle and Rectangle Overlapping

September 27, 2020 · 5 min · 938 words · Samir Paul

Reducing Dishes

September 27, 2020 · 4 min · 707 words · Samir Paul

Minimum Subsequence in Non-Increasing Order

September 27, 2020 · 4 min · 673 words · Samir Paul

Number of Steps to Reduce a Number in Binary Representation to One

September 27, 2020 · 3 min · 615 words · Samir Paul

Longest Happy String

September 27, 2020 · 5 min · 1055 words · Samir Paul

Stone Game III

September 27, 2020 · 6 min · 1249 words · Samir Paul

Top Travellers

September 27, 2020 · 3 min · 458 words · Samir Paul

String Matching in an Array

September 27, 2020 · 3 min · 541 words · Samir Paul

Queries on a Permutation With Key

September 27, 2020 · 7 min · 1336 words · Samir Paul

HTML Entity Parser

September 27, 2020 · 5 min · 949 words · Samir Paul

Number of Ways to Paint N × 3 Grid

September 27, 2020 · 10 min · 2123 words · Samir Paul

Find the Quiet Students in All Exams

September 27, 2020 · 3 min · 587 words · Samir Paul

Minimum Value to Get Positive Step by Step Sum

September 27, 2020 · 3 min · 522 words · Samir Paul

Find the Minimum Number of Fibonacci Numbers Whose Sum Is K

September 27, 2020 · 3 min · 616 words · Samir Paul

The k-th Lexicographical String of All Happy Strings of Length n

September 27, 2020 · 3 min · 462 words · Samir Paul

Restore The Array

September 27, 2020 · 1 min · 186 words · Samir Paul

Reformat The String

September 26, 2020 · 3 min · 616 words · Samir Paul

Display Table of Food Orders in a Restaurant

September 26, 2020 · 4 min · 811 words · Samir Paul

Minimum Number of Frogs Croaking

September 26, 2020 · 4 min · 820 words · Samir Paul

Build Array Where You Can Find The Maximum Exactly K Comparisons

September 26, 2020 · 5 min · 869 words · Samir Paul

NPV Queries

September 26, 2020 · 2 min · 389 words · Samir Paul

Maximum Score After Splitting a String

September 26, 2020 · 5 min · 1026 words · Samir Paul

Maximum Points You Can Obtain from Cards

September 26, 2020 · 6 min · 1232 words · Samir Paul

Diagonal Traverse II

September 26, 2020 · 3 min · 473 words · Samir Paul

Constrained Subsequence Sum

September 26, 2020 · 3 min · 528 words · Samir Paul

Counting Elements

September 26, 2020 · 3 min · 638 words · Samir Paul

Perform String Shifts

September 26, 2020 · 3 min · 590 words · Samir Paul

Leftmost Column with at Least a One

September 26, 2020 · 7 min · 1367 words · Samir Paul

First Unique Number

September 26, 2020 · 5 min · 944 words · Samir Paul

Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree

September 26, 2020 · 4 min · 704 words · Samir Paul

Kids With the Greatest Number of Candies

September 26, 2020 · 4 min · 685 words · Samir Paul

Max Difference You Can Get From Changing an Integer

September 26, 2020 · 4 min · 660 words · Samir Paul

Check If a String Can Break Another String

September 26, 2020 · 3 min · 529 words · Samir Paul

Number of Ways to Wear Different Hats to Each Other

September 26, 2020 · 6 min · 1193 words · Samir Paul

Create a Session Bar Chart

September 26, 2020 · 2 min · 324 words · Samir Paul

Destination City

September 26, 2020 · 3 min · 600 words · Samir Paul

Check If All 1’s Are at Least Length K Places Away

September 26, 2020 · 2 min · 409 words · Samir Paul

Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

September 26, 2020 · 17 min · 3551 words · Samir Paul

Find the Kth Smallest Sum of a Matrix With Sorted Rows

September 26, 2020 · 3 min · 562 words · Samir Paul

Evaluate Boolean Expression

September 26, 2020 · 3 min · 511 words · Samir Paul

Build an Array With Stack Operations

September 25, 2020 · 5 min · 880 words · Samir Paul

Count Triplets That Can Form Two Arrays of Equal XOR

September 25, 2020 · 3 min · 556 words · Samir Paul

Minimum Time to Collect All Apples in a Tree

September 25, 2020 · 4 min · 701 words · Samir Paul

Number of Ways of Cutting a Pizza

September 25, 2020 · 7 min · 1457 words · Samir Paul

Apples & Oranges

September 25, 2020 · 2 min · 351 words · Samir Paul

Consecutive Characters

September 25, 2020 · 2 min · 379 words · Samir Paul

Simplified Fractions

September 25, 2020 · 3 min · 546 words · Samir Paul

Count Good Nodes in Binary Tree

September 25, 2020 · 4 min · 776 words · Samir Paul

Form Largest Integer With Digits That Add up to Target

September 25, 2020 · 6 min · 1112 words · Samir Paul

Number of Students Doing Homework at a Given Time

September 25, 2020 · 4 min · 803 words · Samir Paul

Rearrange Words in a Sentence

September 25, 2020 · 3 min · 585 words · Samir Paul

People Whose List of Favorite Companies Is Not a Subset of Another List

September 25, 2020 · 4 min · 840 words · Samir Paul

Maximum Number of Darts Inside of a Circular Dartboard

September 25, 2020 · 1 min · 178 words · Samir Paul

Active Users

September 25, 2020 · 2 min · 381 words · Samir Paul

Check If a Word Occurs As a Prefix of Any Word in a Sentence

September 25, 2020 · 3 min · 562 words · Samir Paul

Maximum Number of Vowels in a Substring of Given Length

September 25, 2020 · 4 min · 757 words · Samir Paul

Pseudo-Palindromic Paths in a Binary Tree

September 25, 2020 · 7 min · 1324 words · Samir Paul

Max Dot Product of Two Subsequences

September 25, 2020 · 4 min · 648 words · Samir Paul

Rectangles Area

September 25, 2020 · 2 min · 349 words · Samir Paul

Make Two Arrays Equal by Reversing Subarrays

September 25, 2020 · 5 min · 1002 words · Samir Paul

Check If a String Contains All Binary Codes of Size K

September 25, 2020 · 4 min · 780 words · Samir Paul

Course Schedule IV

September 25, 2020 · 8 min · 1500 words · Samir Paul

Cherry Pickup II

September 25, 2020 · 11 min · 2285 words · Samir Paul

Maximum Product of Two Elements in an Array

September 25, 2020 · 6 min · 1106 words · Samir Paul

Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

September 24, 2020 · 5 min · 983 words · Samir Paul

Reorder Routes to Make All Paths Lead to the City Zero

September 24, 2020 · 5 min · 1004 words · Samir Paul

Probability of a Two Boxes Having The Same Number of Distinct Balls

September 24, 2020 · 8 min · 1577 words · Samir Paul

Calculate Salaries

September 24, 2020 · 3 min · 540 words · Samir Paul

Find All The Lonely Nodes

September 24, 2020 · 4 min · 661 words · Samir Paul

Shuffle the Array

September 24, 2020 · 3 min · 550 words · Samir Paul

The k Strongest Values in an Array

September 24, 2020 · 4 min · 650 words · Samir Paul

Design Browser History

September 24, 2020 · 5 min · 854 words · Samir Paul

Paint House III

September 24, 2020 · 8 min · 1669 words · Samir Paul

Delete N Nodes After M Nodes of a Linked List

September 24, 2020 · 4 min · 781 words · Samir Paul

Final Prices With a Special Discount in a Shop

September 24, 2020 · 7 min · 1451 words · Samir Paul

Subrectangle Queries

September 24, 2020 · 5 min · 961 words · Samir Paul

Find Two Non-overlapping Sub-arrays Each With Target Sum

September 24, 2020 · 4 min · 659 words · Samir Paul

Allocate Mailboxes

September 24, 2020 · 4 min · 741 words · Samir Paul

Sales by Day of the Week

September 24, 2020 · 4 min · 689 words · Samir Paul

Running Sum of 1d Array

September 24, 2020 · 2 min · 373 words · Samir Paul

Least Number of Unique Integers after K Removals

September 24, 2020 · 3 min · 635 words · Samir Paul

Minimum Number of Days to Make m Bouquets

September 24, 2020 · 5 min · 989 words · Samir Paul

Kth Ancestor of a Tree Node

September 24, 2020 · 7 min · 1319 words · Samir Paul

Group Sold Products By The Date

September 24, 2020 · 2 min · 264 words · Samir Paul

Clone Binary Tree With Random Pointer

September 24, 2020 · 4 min · 797 words · Samir Paul

XOR Operation in an Array

September 24, 2020 · 2 min · 324 words · Samir Paul

Making File Names Unique

September 24, 2020 · 3 min · 632 words · Samir Paul

Avoid Flood in The City

September 24, 2020 · 15 min · 3169 words · Samir Paul

Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

September 23, 2020 · 8 min · 1520 words · Samir Paul

Clone N-ary Tree

September 23, 2020 · 3 min · 486 words · Samir Paul

Average Salary Excluding the Minimum and Maximum Salary

September 23, 2020 · 4 min · 650 words · Samir Paul

The kth Factor of n

September 23, 2020 · 4 min · 691 words · Samir Paul

Longest Subarray of 1’s After Deleting One Element

September 23, 2020 · 3 min · 554 words · Samir Paul

Parallel Courses II

September 23, 2020 · 5 min · 1055 words · Samir Paul

Friendly Movies Streamed Last Month

September 23, 2020 · 3 min · 442 words · Samir Paul

Path Crossing

September 23, 2020 · 3 min · 566 words · Samir Paul

Check If Array Pairs Are Divisible by k

September 23, 2020 · 2 min · 403 words · Samir Paul

Number of Subsequences That Satisfy the Given Sum Condition

September 23, 2020 · 4 min · 710 words · Samir Paul

Max Value of Equation

September 23, 2020 · 8 min · 1524 words · Samir Paul

Design a File Sharing System

September 23, 2020 · 5 min · 982 words · Samir Paul

Countries You Can Safely Invest In

September 23, 2020 · 4 min · 796 words · Samir Paul

Can Make Arithmetic Progression From Sequence

September 23, 2020 · 7 min · 1347 words · Samir Paul

Last Moment Before All Ants Fall Out of a Plank

September 23, 2020 · 3 min · 638 words · Samir Paul

Count Submatrices With All Ones

September 23, 2020 · 4 min · 687 words · Samir Paul

Minimum Possible Integer After at Most K Adjacent Swaps On Digits

September 23, 2020 · 5 min · 1058 words · Samir Paul

Find Root of N-Ary Tree

September 23, 2020 · 4 min · 837 words · Samir Paul

Reformat Date

September 23, 2020 · 3 min · 508 words · Samir Paul

Range Sum of Sorted Subarray Sums

September 23, 2020 · 4 min · 667 words · Samir Paul

Minimum Difference Between Largest and Smallest Value in Three Moves

September 23, 2020 · 3 min · 555 words · Samir Paul

Stone Game IV

September 23, 2020 · 5 min · 945 words · Samir Paul

Customer Order Frequency

September 23, 2020 · 3 min · 624 words · Samir Paul

Number of Good Pairs

September 23, 2020 · 4 min · 831 words · Samir Paul

Number of Substrings With Only 1s

September 22, 2020 · 2 min · 419 words · Samir Paul

Path with Maximum Probability

September 22, 2020 · 6 min · 1221 words · Samir Paul

Best Position for a Service Centre

September 22, 2020 · 5 min · 1063 words · Samir Paul

Move Sub-Tree of N-Ary Tree

September 22, 2020 · 2 min · 375 words · Samir Paul

Find Users With Valid E-Mails

September 22, 2020 · 2 min · 298 words · Samir Paul

Water Bottles

September 22, 2020 · 3 min · 457 words · Samir Paul

Number of Nodes in the Sub-Tree With the Same Label

September 22, 2020 · 5 min · 910 words · Samir Paul

Maximum Number of Non-Overlapping Substrings

September 22, 2020 · 2 min · 276 words · Samir Paul

Find a Value of a Mysterious Function Closest to Target

September 22, 2020 · 4 min · 834 words · Samir Paul

Diameter of N-Ary Tree

September 22, 2020 · 8 min · 1494 words · Samir Paul

Count Odd Numbers in an Interval Range

September 22, 2020 · 2 min · 306 words · Samir Paul

Number of Sub-arrays With Odd Sum

September 22, 2020 · 3 min · 436 words · Samir Paul

Number of Good Ways to Split a String

September 22, 2020 · 3 min · 474 words · Samir Paul

Minimum Number of Increments on Subarrays to Form a Target Array

September 22, 2020 · 2 min · 417 words · Samir Paul

Patients With a Condition

September 22, 2020 · 2 min · 222 words · Samir Paul

Shuffle String

September 22, 2020 · 2 min · 336 words · Samir Paul

Minimum Suffix Flips

September 22, 2020 · 2 min · 419 words · Samir Paul

Number of Good Leaf Nodes Pairs

September 22, 2020 · 5 min · 945 words · Samir Paul

String Compression II

September 22, 2020 · 3 min · 531 words · Samir Paul

The Most Recent Three Orders

September 22, 2020 · 3 min · 624 words · Samir Paul

Find the Index of the Large Integer

September 22, 2020 · 6 min · 1159 words · Samir Paul

Count Good Triplets

September 22, 2020 · 3 min · 524 words · Samir Paul

Find the Winner of an Array Game

September 22, 2020 · 3 min · 628 words · Samir Paul

Minimum Swaps to Arrange a Binary Grid

September 22, 2020 · 5 min · 959 words · Samir Paul

Get the Maximum Score

September 21, 2020 · 5 min · 877 words · Samir Paul

Guess the Majority in a Hidden Array

September 21, 2020 · 9 min · 1892 words · Samir Paul

Kth Missing Positive Number

September 21, 2020 · 3 min · 473 words · Samir Paul

Can Convert String in K Moves

September 21, 2020 · 3 min · 598 words · Samir Paul

Minimum Insertions to Balance a Parentheses String

September 21, 2020 · 3 min · 628 words · Samir Paul

Find Longest Awesome Substring

September 21, 2020 · 3 min · 546 words · Samir Paul

Fix Product Name Format

September 21, 2020 · 2 min · 329 words · Samir Paul

Make The String Great

September 21, 2020 · 3 min · 441 words · Samir Paul

Find Kth Bit in Nth Binary String

September 21, 2020 · 4 min · 759 words · Samir Paul

Maximum Number of Non-Overlapping Subarrays With Sum Equals Target

September 21, 2020 · 3 min · 575 words · Samir Paul

Minimum Cost to Cut a Stick

September 21, 2020 · 7 min · 1491 words · Samir Paul

The Most Similar Path in a Graph

September 21, 2020 · 8 min · 1698 words · Samir Paul

The Most Recent Orders for Each Product

September 21, 2020 · 3 min · 637 words · Samir Paul

Three Consecutive Odds

September 21, 2020 · 2 min · 393 words · Samir Paul

Minimum Operations to Make Array Equal

September 21, 2020 · 3 min · 545 words · Samir Paul

Magnetic Force Between Two Balls

September 21, 2020 · 4 min · 816 words · Samir Paul

Minimum Number of Days to Eat N Oranges

September 21, 2020 · 3 min · 527 words · Samir Paul

Strings Differ by One Character

September 21, 2020 · 2 min · 373 words · Samir Paul

Bank Account Summary

September 21, 2020 · 3 min · 494 words · Samir Paul

Thousand Separator

September 21, 2020 · 2 min · 350 words · Samir Paul

Minimum Number of Vertices to Reach All Nodes

September 21, 2020 · 3 min · 519 words · Samir Paul

Minimum Numbers of Function Calls to Make Target Array

September 21, 2020 · 3 min · 438 words · Samir Paul

Detect Cycles in 2D Grid

September 21, 2020 · 7 min · 1315 words · Samir Paul

Most Visited Sector in a Circular Track

September 21, 2020 · 3 min · 537 words · Samir Paul

Maximum Number of Coins You Can Get

September 20, 2020 · 3 min · 585 words · Samir Paul

Find Latest Group of Size M

September 20, 2020 · 7 min · 1428 words · Samir Paul

Stone Game V

September 20, 2020 · 6 min · 1066 words · Samir Paul

Put Boxes Into the Warehouse I

September 20, 2020 · 4 min · 843 words · Samir Paul

Unique Orders and Customers Per Month

September 20, 2020 · 2 min · 380 words · Samir Paul

Detect Pattern of Length M Repeated K or More Times

September 20, 2020 · 3 min · 634 words · Samir Paul

Maximum Length of Subarray With Positive Product

September 20, 2020 · 4 min · 822 words · Samir Paul

Minimum Number of Days to Disconnect Island

September 20, 2020 · 6 min · 1132 words · Samir Paul

Number of Ways to Reorder Array to Get Same BST

September 20, 2020 · 7 min · 1474 words · Samir Paul

Dot Product of Two Sparse Vectors

September 20, 2020 · 5 min · 871 words · Samir Paul

Warehouse Manager

September 20, 2020 · 3 min · 486 words · Samir Paul

Matrix Diagonal Sum

September 20, 2020 · 3 min · 595 words · Samir Paul

Number of Ways to Split a String

September 20, 2020 · 4 min · 784 words · Samir Paul

Shortest Subarray to be Removed to Make Array Sorted

September 20, 2020 · 6 min · 1139 words · Samir Paul

Count All Possible Routes

September 20, 2020 · 10 min · 1993 words · Samir Paul

Replace All ’s to Avoid Consecutive Repeating Characters

September 20, 2020 · 3 min · 616 words · Samir Paul

Number of Ways Where Square of Number Is Equal to Product of Two Numbers

September 20, 2020 · 4 min · 717 words · Samir Paul

Minimum Time to Make Rope Colorful

September 20, 2020 · 3 min · 639 words · Samir Paul

Remove Max Number of Edges to Keep Graph Fully Traversable

September 20, 2020 · 7 min · 1313 words · Samir Paul

Put Boxes Into the Warehouse II

September 20, 2020 · 5 min · 927 words · Samir Paul

Customer Who Visited but Did Not Make Any Transactions

September 20, 2020 · 3 min · 551 words · Samir Paul

Special Positions in a Binary Matrix

September 20, 2020 · 5 min · 924 words · Samir Paul

Count Unhappy Friends

September 20, 2020 · 4 min · 833 words · Samir Paul

Min Cost to Connect All Points

September 20, 2020 · 9 min · 1780 words · Samir Paul

Check If String Is Transformable With Substring Sort Operations

September 19, 2020 · 3 min · 542 words · Samir Paul

Binary Search Tree Iterator II

September 19, 2020 · 8 min · 1614 words · Samir Paul

Bank Account Summary II

September 19, 2020 · 3 min · 438 words · Samir Paul

Sum of All Odd Length Subarrays

September 19, 2020 · 4 min · 663 words · Samir Paul

Maximum Sum Obtained of Any Permutation

September 19, 2020 · 4 min · 830 words · Samir Paul

Make Sum Divisible by P

September 19, 2020 · 4 min · 822 words · Samir Paul

Strange Printer II

September 19, 2020 · 1 min · 163 words · Samir Paul

Rearrange Spaces Between Words

September 19, 2020 · 3 min · 639 words · Samir Paul

Split a String Into the Max Number of Unique Substrings

September 19, 2020 · 3 min · 527 words · Samir Paul

Maximum Non Negative Product in a Matrix

September 19, 2020 · 5 min · 1000 words · Samir Paul

Minimum Cost to Connect Two Groups of Points

September 19, 2020 · 8 min · 1648 words · Samir Paul

The Most Frequently Ordered Products for Each Customer

September 19, 2020 · 4 min · 678 words · Samir Paul

Build Binary Expression Tree From Infix Expression

September 19, 2020 · 2 min · 379 words · Samir Paul

Crawler Log Folder

September 19, 2020 · 3 min · 609 words · Samir Paul

Maximum Profit of Operating a Centennial Wheel

September 19, 2020 · 7 min · 1381 words · Samir Paul

Throne Inheritance

September 19, 2020 · 6 min · 1116 words · Samir Paul

Maximum Number of Achievable Transfer Requests

September 19, 2020 · 6 min · 1257 words · Samir Paul

Find Nearest Right Node in Binary Tree

September 19, 2020 · 8 min · 1513 words · Samir Paul

Design Parking System

September 19, 2020 · 5 min · 1034 words · Samir Paul

Alert Using Same Key-Card Three or More Times in a One Hour Period

September 19, 2020 · 4 min · 691 words · Samir Paul

Find Valid Matrix Given Row and Column Sums

September 19, 2020 · 4 min · 684 words · Samir Paul

Find Servers That Handled Most Number of Requests

September 19, 2020 · 6 min · 1083 words · Samir Paul

Sellers With No Sales

September 19, 2020 · 3 min · 468 words · Samir Paul

Special Array With X Elements Greater Than or Equal X

September 19, 2020 · 6 min · 1095 words · Samir Paul

Even Odd Tree

September 18, 2020 · 8 min · 1563 words · Samir Paul

Maximum Number of Visible Points

September 18, 2020 · 5 min · 894 words · Samir Paul

Minimum One Bit Operations to Make Integers Zero

September 18, 2020 · 3 min · 514 words · Samir Paul

Check If Two Expression Trees are Equivalent

September 18, 2020 · 8 min · 1525 words · Samir Paul

Find the Missing IDs

September 18, 2020 · 2 min · 263 words · Samir Paul

Maximum Nesting Depth of the Parentheses

September 18, 2020 · 3 min · 639 words · Samir Paul

Maximal Network Rank

September 18, 2020 · 4 min · 784 words · Samir Paul

Split Two Strings to Make Palindrome

September 18, 2020 · 5 min · 933 words · Samir Paul

Count Subtrees With Max Distance Between Cities

September 18, 2020 · 12 min · 2441 words · Samir Paul

Maximum Font to Fit a Sentence in a Screen

September 18, 2020 · 6 min · 1168 words · Samir Paul

Mean of Array After Removing Some Elements

September 18, 2020 · 3 min · 441 words · Samir Paul

Coordinate With Maximum Network Quality

September 18, 2020 · 4 min · 817 words · Samir Paul

Number of Sets of K Non-Overlapping Line Segments

September 18, 2020 · 4 min · 852 words · Samir Paul

Fancy Sequence

September 18, 2020 · 11 min · 2157 words · Samir Paul

All Valid Triplets That Can Represent a Country

September 18, 2020 · 3 min · 525 words · Samir Paul

Largest Substring Between Two Equal Characters

September 18, 2020 · 4 min · 644 words · Samir Paul

Lexicographically Smallest String After Applying Operations

September 18, 2020 · 7 min · 1431 words · Samir Paul

Best Team With No Conflicts

September 18, 2020 · 7 min · 1482 words · Samir Paul

Graph Connectivity With Threshold

September 18, 2020 · 7 min · 1440 words · Samir Paul

Design an Expression Tree With Evaluate Function

September 18, 2020 · 7 min · 1281 words · Samir Paul

Slowest Key

September 18, 2020 · 4 min · 725 words · Samir Paul

Arithmetic Subarrays

September 18, 2020 · 6 min · 1226 words · Samir Paul

Path With Minimum Effort

September 18, 2020 · 20 min · 4054 words · Samir Paul

Rank Transform of a Matrix

September 18, 2020 · 7 min · 1440 words · Samir Paul

Percentage of Users Attended a Contest

September 17, 2020 · 3 min · 429 words · Samir Paul

Add Two Polynomials Represented as Linked Lists

September 17, 2020 · 6 min · 1224 words · Samir Paul

Hopper Company Queries I

September 17, 2020 · 5 min · 999 words · Samir Paul

Sort Array by Increasing Frequency

September 17, 2020 · 3 min · 538 words · Samir Paul

Widest Vertical Area Between Two Points Containing No Points

September 17, 2020 · 7 min · 1402 words · Samir Paul

Count Substrings That Differ by One Character

September 17, 2020 · 7 min · 1362 words · Samir Paul

Number of Ways to Form a Target String Given a Dictionary

September 17, 2020 · 10 min · 2075 words · Samir Paul

Check Array Formation Through Concatenation

September 17, 2020 · 6 min · 1099 words · Samir Paul

Count Sorted Vowel Strings

September 17, 2020 · 4 min · 709 words · Samir Paul

Furthest Building You Can Reach

September 17, 2020 · 4 min · 676 words · Samir Paul

Kth Smallest Instructions

September 17, 2020 · 4 min · 765 words · Samir Paul

Lowest Common Ancestor of a Binary Tree II

September 17, 2020 · 5 min · 853 words · Samir Paul

Hopper Company Queries II

September 17, 2020 · 6 min · 1090 words · Samir Paul

Get Maximum in Generated Array

September 17, 2020 · 3 min · 610 words · Samir Paul

Minimum Deletions to Make Character Frequencies Unique

September 17, 2020 · 5 min · 985 words · Samir Paul

Sell Diminishing-Valued Colored Balls

September 17, 2020 · 5 min · 1045 words · Samir Paul

Create Sorted Array through Instructions

September 17, 2020 · 11 min · 2304 words · Samir Paul

Lowest Common Ancestor of a Binary Tree III

September 17, 2020 · 3 min · 575 words · Samir Paul

Hopper Company Queries III

September 17, 2020 · 5 min · 916 words · Samir Paul

Defuse the Bomb

September 17, 2020 · 6 min · 1252 words · Samir Paul

Minimum Deletions to Make String Balanced

September 17, 2020 · 6 min · 1162 words · Samir Paul

Minimum Jumps to Reach Home

September 17, 2020 · 5 min · 1032 words · Samir Paul

Distribute Repeating Integers

September 17, 2020 · 7 min · 1384 words · Samir Paul

Design an Ordered Stream

September 17, 2020 · 5 min · 916 words · Samir Paul

Determine if Two Strings Are Close

September 16, 2020 · 5 min · 901 words · Samir Paul

Minimum Operations to Reduce X to Zero

September 16, 2020 · 7 min · 1468 words · Samir Paul

Maximize Grid Happiness

September 16, 2020 · 16 min · 3344 words · Samir Paul

Correct a Binary Tree

September 16, 2020 · 4 min · 718 words · Samir Paul

Average Time of Process per Machine

September 16, 2020 · 4 min · 663 words · Samir Paul

Check If Two String Arrays are Equivalent

September 16, 2020 · 5 min · 907 words · Samir Paul

Smallest String With A Given Numeric Value

September 16, 2020 · 3 min · 471 words · Samir Paul

Ways to Make a Fair Array

September 16, 2020 · 5 min · 974 words · Samir Paul

Minimum Initial Energy to Finish Tasks

September 16, 2020 · 4 min · 715 words · Samir Paul

Change the Root of a Binary Tree

September 16, 2020 · 4 min · 838 words · Samir Paul

Fix Names in a Table

September 16, 2020 · 1 min · 194 words · Samir Paul

Maximum Repeating Substring

September 16, 2020 · 3 min · 610 words · Samir Paul

Merge In Between Linked Lists

September 16, 2020 · 5 min · 900 words · Samir Paul

Design Front Middle Back Queue

September 16, 2020 · 14 min · 2813 words · Samir Paul

Minimum Number of Removals to Make Mountain Array

September 16, 2020 · 6 min · 1137 words · Samir Paul

Richest Customer Wealth

September 16, 2020 · 3 min · 621 words · Samir Paul

Find the Most Competitive Subsequence

September 16, 2020 · 3 min · 464 words · Samir Paul

Minimum Moves to Make Array Complementary

September 16, 2020 · 5 min · 1064 words · Samir Paul

Minimize Deviation in Array

September 16, 2020 · 5 min · 897 words · Samir Paul

Lowest Common Ancestor of a Binary Tree IV

September 16, 2020 · 4 min · 732 words · Samir Paul

Product’s Worth Over Invoices

September 16, 2020 · 3 min · 549 words · Samir Paul

Goal Parser Interpretation

September 16, 2020 · 5 min · 861 words · Samir Paul

Max Number of K-Sum Pairs

September 16, 2020 · 6 min · 1201 words · Samir Paul

Concatenation of Consecutive Binary Numbers

September 16, 2020 · 4 min · 799 words · Samir Paul

Minimum Incompatibility

September 15, 2020 · 11 min · 2284 words · Samir Paul

Longest Palindromic Subsequence II

September 15, 2020 · 4 min · 795 words · Samir Paul

Invalid Tweets

September 15, 2020 · 2 min · 286 words · Samir Paul

Count the Number of Consistent Strings

September 15, 2020 · 7 min · 1467 words · Samir Paul

Sum of Absolute Differences in a Sorted Array

September 15, 2020 · 4 min · 819 words · Samir Paul

Stone Game VI

September 15, 2020 · 4 min · 830 words · Samir Paul

Delivering Boxes from Storage to Ports

September 15, 2020 · 11 min · 2249 words · Samir Paul

Count of Matches in Tournament

September 15, 2020 · 3 min · 446 words · Samir Paul

Partitioning Into Minimum Number Of Deci-Binary Numbers

September 15, 2020 · 2 min · 410 words · Samir Paul

Stone Game VII

September 15, 2020 · 5 min · 929 words · Samir Paul

Maximum Height by Stacking Cuboids

September 15, 2020 · 5 min · 984 words · Samir Paul

Count Ways to Distribute Candies

September 15, 2020 · 4 min · 820 words · Samir Paul

Daily Leads and Partners

September 15, 2020 · 2 min · 400 words · Samir Paul

Reformat Phone Number

September 15, 2020 · 5 min · 1024 words · Samir Paul

Maximum Erasure Value

September 15, 2020 · 4 min · 681 words · Samir Paul

Jump Game VI

September 15, 2020 · 4 min · 653 words · Samir Paul

Checking Existence of Edge Length Limited Paths

September 15, 2020 · 6 min · 1227 words · Samir Paul

Number of Distinct Substrings in a String

September 15, 2020 · 6 min · 1109 words · Samir Paul

Number of Calls Between Two Persons

September 15, 2020 · 2 min · 384 words · Samir Paul

Number of Students Unable to Eat Lunch

September 15, 2020 · 5 min · 937 words · Samir Paul

Average Waiting Time

September 15, 2020 · 5 min · 856 words · Samir Paul

Maximum Binary String After Change

September 15, 2020 · 3 min · 559 words · Samir Paul

Minimum Adjacent Swaps for K Consecutive Ones

September 15, 2020 · 5 min · 989 words · Samir Paul

Determine if String Halves Are Alike

September 15, 2020 · 4 min · 840 words · Samir Paul

Maximum Number of Eaten Apples

September 14, 2020 · 5 min · 943 words · Samir Paul

Where Will the Ball Fall

September 14, 2020 · 7 min · 1466 words · Samir Paul

Maximum XOR With an Element From Array

September 14, 2020 · 8 min · 1589 words · Samir Paul

Largest Subarray Length K

September 14, 2020 · 3 min · 515 words · Samir Paul

Biggest Window Between Visits

September 14, 2020 · 2 min · 423 words · Samir Paul

Maximum Units on a Truck

September 14, 2020 · 6 min · 1193 words · Samir Paul

Count Good Meals

September 14, 2020 · 6 min · 1182 words · Samir Paul

Ways to Split Array Into Three Subarrays

September 14, 2020 · 5 min · 1019 words · Samir Paul

Minimum Operations to Make a Subsequence

September 14, 2020 · 6 min · 1186 words · Samir Paul

Sum Of Special Evenly-Spaced Elements In Array

September 14, 2020 · 6 min · 1077 words · Samir Paul

Count Apples and Oranges

September 14, 2020 · 3 min · 553 words · Samir Paul

Calculate Money in Leetcode Bank

September 14, 2020 · 2 min · 402 words · Samir Paul

Maximum Score From Removing Substrings

September 14, 2020 · 4 min · 793 words · Samir Paul

Construct the Lexicographically Largest Valid Sequence

September 14, 2020 · 5 min · 936 words · Samir Paul

Number Of Ways To Reconstruct A Tree

September 14, 2020 · 5 min · 1030 words · Samir Paul

Decode XORed Array

September 14, 2020 · 2 min · 321 words · Samir Paul

Swapping Nodes in a Linked List

September 14, 2020 · 5 min · 913 words · Samir Paul

Minimize Hamming Distance After Swap Operations

September 14, 2020 · 6 min · 1131 words · Samir Paul

Find Minimum Time to Finish All Jobs

September 14, 2020 · 4 min · 684 words · Samir Paul

Checking Existence of Edge Length Limited Paths II

September 14, 2020 · 8 min · 1549 words · Samir Paul

Number Of Rectangles That Can Form The Largest Square

September 14, 2020 · 3 min · 615 words · Samir Paul

Tuple with Same Product

September 14, 2020 · 4 min · 734 words · Samir Paul

Largest Submatrix With Rearrangements

September 14, 2020 · 4 min · 713 words · Samir Paul

Cat and Mouse II

September 14, 2020 · 4 min · 793 words · Samir Paul

Find Followers Count

September 13, 2020 · 2 min · 226 words · Samir Paul

Shortest Path to Get Food

September 13, 2020 · 6 min · 1147 words · Samir Paul

The Number of Employees Which Report to Each Employee

September 13, 2020 · 2 min · 343 words · Samir Paul

Find the Highest Altitude

September 13, 2020 · 4 min · 705 words · Samir Paul

Minimum Number of People to Teach

September 13, 2020 · 4 min · 790 words · Samir Paul

Decode XORed Permutation

September 13, 2020 · 3 min · 612 words · Samir Paul

Count Ways to Make Array With Product

September 13, 2020 · 8 min · 1519 words · Samir Paul

Latest Time by Replacing Hidden Digits

September 13, 2020 · 4 min · 679 words · Samir Paul

Change Minimum Characters to Satisfy One of Three Conditions

September 13, 2020 · 6 min · 1167 words · Samir Paul

Find Kth Largest XOR Coordinate Value

September 13, 2020 · 4 min · 833 words · Samir Paul

Building Boxes

September 13, 2020 · 4 min · 702 words · Samir Paul

Find Distance in a Binary Tree

September 13, 2020 · 5 min · 971 words · Samir Paul

Find Total Time Spent by Each Employee

September 13, 2020 · 3 min · 434 words · Samir Paul

Maximum Number of Balls in a Box

September 13, 2020 · 4 min · 715 words · Samir Paul

Restore the Array From Adjacent Pairs

September 13, 2020 · 6 min · 1226 words · Samir Paul

Can You Eat Your Favorite Candy on Your Favorite Day

September 13, 2020 · 4 min · 680 words · Samir Paul

Palindrome Partitioning IV

September 13, 2020 · 3 min · 591 words · Samir Paul

Maximum Subarray Sum After One Operation

September 13, 2020 · 3 min · 573 words · Samir Paul

Leetflex Banned Accounts

September 13, 2020 · 3 min · 448 words · Samir Paul

Sum of Unique Elements

September 13, 2020 · 4 min · 836 words · Samir Paul

Maximum Absolute Sum of Any Subarray

September 13, 2020 · 3 min · 617 words · Samir Paul

Minimum Length of String After Deleting Similar Ends

September 13, 2020 · 5 min · 955 words · Samir Paul

Maximum Number of Events That Can Be Attended II

September 13, 2020 · 7 min · 1412 words · Samir Paul

Check if Array Is Sorted and Rotated

September 13, 2020 · 3 min · 491 words · Samir Paul

Maximum Score From Removing Stones

September 12, 2020 · 4 min · 785 words · Samir Paul

Largest Merge Of Two Strings

September 12, 2020 · 5 min · 929 words · Samir Paul

Closest Subsequence Sum

September 12, 2020 · 8 min · 1620 words · Samir Paul

Design Most Recently Used Queue

September 12, 2020 · 7 min · 1453 words · Samir Paul

Recyclable and Low Fat Products

September 12, 2020 · 2 min · 268 words · Samir Paul

Minimum Changes To Make Alternating Binary String

September 12, 2020 · 3 min · 501 words · Samir Paul

Count Number of Homogenous Substrings

September 12, 2020 · 6 min · 1093 words · Samir Paul

Minimum Limit of Balls in a Bag

September 12, 2020 · 4 min · 792 words · Samir Paul

Minimum Degree of a Connected Trio in a Graph

September 12, 2020 · 5 min · 901 words · Samir Paul

Buildings With an Ocean View

September 12, 2020 · 3 min · 521 words · Samir Paul

Longest Nice Substring

September 12, 2020 · 6 min · 1226 words · Samir Paul

Form Array by Concatenating Subarrays of Another Array

September 12, 2020 · 4 min · 709 words · Samir Paul

Map of Highest Peak

September 12, 2020 · 10 min · 1994 words · Samir Paul

Tree of Coprimes

September 12, 2020 · 6 min · 1135 words · Samir Paul

Find the Subtasks That Did Not Execute

September 12, 2020 · 3 min · 431 words · Samir Paul

Merge Strings Alternately

September 12, 2020 · 4 min · 702 words · Samir Paul

Minimum Number of Operations to Move All Balls to Each Box

September 12, 2020 · 9 min · 1839 words · Samir Paul

Maximum Score from Performing Multiplication Operations

September 12, 2020 · 8 min · 1515 words · Samir Paul

Maximize Palindrome Length From Subsequences

September 12, 2020 · 6 min · 1176 words · Samir Paul

Sort Features by Popularity

September 12, 2020 · 4 min · 845 words · Samir Paul

Count Items Matching a Rule

September 12, 2020 · 3 min · 561 words · Samir Paul

Closest Dessert Cost

September 12, 2020 · 7 min · 1285 words · Samir Paul

Equal Sum Arrays With Minimum Number of Operations

September 12, 2020 · 6 min · 1263 words · Samir Paul

Car Fleet II

September 12, 2020 · 4 min · 651 words · Samir Paul

Product’s Price for Each Store

September 11, 2020 · 2 min · 259 words · Samir Paul

Shortest Path in a Hidden Grid

September 11, 2020 · 7 min · 1478 words · Samir Paul

Find Nearest Point That Has the Same X or Y Coordinate

September 11, 2020 · 5 min · 855 words · Samir Paul

Check if Number is a Sum of Powers of Three

September 11, 2020 · 2 min · 289 words · Samir Paul

Sum of Beauty of All Substrings

September 11, 2020 · 6 min · 1219 words · Samir Paul

Count Pairs Of Nodes

September 11, 2020 · 6 min · 1213 words · Samir Paul

Grand Slam Titles

September 11, 2020 · 3 min · 572 words · Samir Paul

Check if Binary String Has at Most One Segment of Ones

September 11, 2020 · 2 min · 363 words · Samir Paul

Minimum Elements to Add to Form a Given Sum

September 11, 2020 · 4 min · 642 words · Samir Paul

Number of Restricted Paths From First to Last Node

September 11, 2020 · 8 min · 1680 words · Samir Paul

Make the XOR of All Segments Equal to Zero

September 11, 2020 · 4 min · 726 words · Samir Paul

Maximize the Beauty of the Garden

September 11, 2020 · 5 min · 920 words · Samir Paul

Primary Department for Each Employee

September 11, 2020 · 2 min · 383 words · Samir Paul

Check if One String Swap Can Make Strings Equal

September 11, 2020 · 5 min · 953 words · Samir Paul

Find Center of Star Graph

September 11, 2020 · 3 min · 480 words · Samir Paul

Maximum Average Pass Ratio

September 11, 2020 · 5 min · 980 words · Samir Paul

Maximum Score of a Good Subarray

September 11, 2020 · 6 min · 1085 words · Samir Paul

Count Pairs of Equal Substrings With Minimum Difference

September 11, 2020 · 5 min · 862 words · Samir Paul

Rearrange Products Table

September 11, 2020 · 2 min · 344 words · Samir Paul

Second Largest Digit in a String

September 11, 2020 · 6 min · 1182 words · Samir Paul

Design Authentication Manager

September 11, 2020 · 7 min · 1409 words · Samir Paul

Maximum Number of Consecutive Values You Can Make

September 11, 2020 · 3 min · 533 words · Samir Paul

Maximize Score After N Operations

September 11, 2020 · 7 min · 1297 words · Samir Paul

Maximum Ascending Subarray Sum

September 11, 2020 · 4 min · 758 words · Samir Paul

Number of Orders in the Backlog

September 10, 2020 · 9 min · 1717 words · Samir Paul

Maximum Value at a Given Index in a Bounded Array

September 10, 2020 · 5 min · 894 words · Samir Paul

Count Pairs With XOR in a Range

September 10, 2020 · 8 min · 1571 words · Samir Paul

Implement Trie II (Prefix Tree)

September 10, 2020 · 8 min · 1590 words · Samir Paul

Number of Different Integers in a String

September 10, 2020 · 4 min · 760 words · Samir Paul

Minimum Number of Operations to Reinitialize a Permutation

September 10, 2020 · 3 min · 639 words · Samir Paul

Evaluate the Bracket Pairs of a String

September 10, 2020 · 6 min · 1088 words · Samir Paul

Maximize Number of Nice Divisors

September 10, 2020 · 6 min · 1123 words · Samir Paul

Ad-Free Sessions

September 10, 2020 · 2 min · 424 words · Samir Paul

Minimum Path Cost in a Hidden Grid

September 10, 2020 · 7 min · 1323 words · Samir Paul

Find Interview Candidates

September 10, 2020 · 4 min · 696 words · Samir Paul

Determine Color of a Chessboard Square

September 10, 2020 · 2 min · 407 words · Samir Paul

Sentence Similarity III

September 10, 2020 · 5 min · 895 words · Samir Paul

Count Nice Pairs in an Array

September 10, 2020 · 8 min · 1555 words · Samir Paul

Maximum Number of Groups Getting Fresh Donuts

September 10, 2020 · 7 min · 1327 words · Samir Paul

Truncate Sentence

September 10, 2020 · 3 min · 634 words · Samir Paul

Finding the Users Active Minutes

September 10, 2020 · 4 min · 711 words · Samir Paul

Minimum Absolute Sum Difference

September 10, 2020 · 7 min · 1458 words · Samir Paul

Number of Different Subsequences GCDs

September 10, 2020 · 4 min · 729 words · Samir Paul

Maximum Number of Accepted Invitations

September 10, 2020 · 4 min · 731 words · Samir Paul

Find Customers With Positive Revenue this Year

September 10, 2020 · 2 min · 287 words · Samir Paul

Sign of the Product of an Array

September 10, 2020 · 3 min · 606 words · Samir Paul

Find the Winner of the Circular Game

September 10, 2020 · 4 min · 676 words · Samir Paul

Minimum Sideway Jumps

September 10, 2020 · 5 min · 1044 words · Samir Paul

Finding MK Average

September 9, 2020 · 11 min · 2253 words · Samir Paul

Faulty Sensor

September 9, 2020 · 4 min · 796 words · Samir Paul

Minimum Operations to Make the Array Increasing

September 9, 2020 · 4 min · 682 words · Samir Paul

Queries on Number of Points Inside a Circle

September 9, 2020 · 5 min · 882 words · Samir Paul

Maximum XOR for Each Query

September 9, 2020 · 10 min · 1930 words · Samir Paul

Minimum Number of Operations to Make String Sorted

September 9, 2020 · 7 min · 1446 words · Samir Paul

Maximum Transaction Each Day

September 9, 2020 · 2 min · 382 words · Samir Paul

Check if the Sentence Is Pangram

September 9, 2020 · 4 min · 851 words · Samir Paul

Maximum Ice Cream Bars

September 9, 2020 · 3 min · 636 words · Samir Paul

Single-Threaded CPU

September 9, 2020 · 6 min · 1227 words · Samir Paul

Find XOR Sum of All Pairs Bitwise AND

September 9, 2020 · 3 min · 599 words · Samir Paul

Remove Duplicates From an Unsorted Linked List

September 9, 2020 · 4 min · 829 words · Samir Paul

Sum of Digits in Base K

September 9, 2020 · 3 min · 485 words · Samir Paul

Frequency of the Most Frequent Element

September 9, 2020 · 8 min · 1655 words · Samir Paul

Longest Substring Of All Vowels in Order

September 9, 2020 · 5 min · 920 words · Samir Paul

Maximum Building Height

September 9, 2020 · 5 min · 863 words · Samir Paul

League Statistics

September 9, 2020 · 4 min · 686 words · Samir Paul

Next Palindrome Using Same Digits

September 9, 2020 · 5 min · 871 words · Samir Paul

Suspicious Bank Accounts

September 9, 2020 · 4 min · 701 words · Samir Paul

Replace All Digits with Characters

September 9, 2020 · 3 min · 570 words · Samir Paul

Seat Reservation Manager

September 9, 2020 · 5 min · 895 words · Samir Paul

Maximum Element After Decreasing and Rearranging

September 9, 2020 · 4 min · 695 words · Samir Paul

Closest Room

September 9, 2020 · 7 min · 1290 words · Samir Paul

Minimum Distance to the Target Element

September 9, 2020 · 3 min · 545 words · Samir Paul

Splitting a String Into Descending Consecutive Values

September 8, 2020 · 4 min · 721 words · Samir Paul

Minimum Adjacent Swaps to Reach the Kth Smallest Number

September 8, 2020 · 8 min · 1611 words · Samir Paul

Minimum Interval to Include Each Query

September 8, 2020 · 6 min · 1242 words · Samir Paul

Distinct Numbers in Each Subarray

September 8, 2020 · 6 min · 1226 words · Samir Paul

Convert Date Format

September 8, 2020 · 1 min · 141 words · Samir Paul

Maximum Population Year

September 8, 2020 · 4 min · 845 words · Samir Paul

Maximum Distance Between a Pair of Values

September 8, 2020 · 7 min · 1445 words · Samir Paul

Maximum Subarray Min-Product

September 8, 2020 · 7 min · 1289 words · Samir Paul

Largest Color Value in a Directed Graph

September 8, 2020 · 5 min · 974 words · Samir Paul

Longest Word With All Prefixes

September 8, 2020 · 8 min · 1679 words · Samir Paul

Sorting the Sentence

September 8, 2020 · 4 min · 684 words · Samir Paul

Incremental Memory Leak

September 8, 2020 · 4 min · 784 words · Samir Paul

Rotating the Box

September 8, 2020 · 4 min · 771 words · Samir Paul

Sum of Floored Pairs

September 8, 2020 · 6 min · 1175 words · Samir Paul

Sum of All Subset XOR Totals

September 8, 2020 · 7 min · 1414 words · Samir Paul

Minimum Number of Swaps to Make the Binary String Alternating

September 8, 2020 · 3 min · 543 words · Samir Paul

Finding Pairs With a Certain Sum

September 8, 2020 · 5 min · 854 words · Samir Paul

Number of Ways to Rearrange Sticks With K Sticks Visible

September 8, 2020 · 6 min · 1221 words · Samir Paul

Orders With Maximum Quantity Above Average

September 8, 2020 · 3 min · 459 words · Samir Paul

Product of Two Run-Length Encoded Arrays

September 8, 2020 · 4 min · 738 words · Samir Paul

Longer Contiguous Segments of Ones than Zeros

September 8, 2020 · 4 min · 696 words · Samir Paul

Minimum Speed to Arrive on Time

September 8, 2020 · 6 min · 1131 words · Samir Paul

Jump Game VII

September 8, 2020 · 5 min · 951 words · Samir Paul

Stone Game VIII

September 8, 2020 · 8 min · 1542 words · Samir Paul

Calculate Special Bonus

September 7, 2020 · 2 min · 323 words · Samir Paul

Minimize Product Sum of Two Arrays

September 7, 2020 · 2 min · 379 words · Samir Paul

Group Employees of the Same Salary

September 7, 2020 · 3 min · 513 words · Samir Paul

Substrings of Size Three with Distinct Characters

September 7, 2020 · 2 min · 419 words · Samir Paul

Minimize Maximum Pair Sum in Array

September 7, 2020 · 3 min · 491 words · Samir Paul

Get Biggest Three Rhombus Sums in a Grid

September 7, 2020 · 21 min · 4353 words · Samir Paul

Minimum XOR Sum of Two Arrays

September 7, 2020 · 9 min · 1758 words · Samir Paul

Check if Word Equals Summation of Two Words

September 7, 2020 · 4 min · 805 words · Samir Paul

Maximum Value after Insertion

September 7, 2020 · 3 min · 604 words · Samir Paul

Process Tasks Using Servers

September 7, 2020 · 4 min · 817 words · Samir Paul

Minimum Skips to Arrive at Meeting On Time

September 7, 2020 · 7 min · 1290 words · Samir Paul

Egg Drop With 2 Eggs and N Floors

September 7, 2020 · 2 min · 371 words · Samir Paul

Count Pairs in Two Arrays

September 7, 2020 · 3 min · 532 words · Samir Paul

Determine Whether Matrix Can Be Obtained By Rotation

September 7, 2020 · 6 min · 1182 words · Samir Paul

Reduction Operations to Make the Array Elements Equal

September 7, 2020 · 4 min · 767 words · Samir Paul

Minimum Number of Flips to Make the Binary String Alternating

September 7, 2020 · 4 min · 702 words · Samir Paul

Minimum Space Wasted From Packaging

September 7, 2020 · 6 min · 1186 words · Samir Paul

The Latest Login in 2020

September 7, 2020 · 2 min · 349 words · Samir Paul

Cutting Ribbons

September 7, 2020 · 6 min · 1143 words · Samir Paul

Page Recommendations II

September 7, 2020 · 4 min · 647 words · Samir Paul

Check if All the Integers in a Range Are Covered

September 7, 2020 · 4 min · 689 words · Samir Paul

Find the Student that Will Replace the Chalk

September 7, 2020 · 5 min · 917 words · Samir Paul

Largest Magic Square

September 7, 2020 · 9 min · 1860 words · Samir Paul

Minimum Cost to Change the Final Value of Expression

September 7, 2020 · 2 min · 271 words · Samir Paul

Redistribute Characters to Make All Strings Equal

September 6, 2020 · 3 min · 480 words · Samir Paul

Maximum Number of Removable Characters

September 6, 2020 · 6 min · 1168 words · Samir Paul

Merge Triplets to Form Target Triplet

September 6, 2020 · 4 min · 773 words · Samir Paul

The Earliest and Latest Rounds Where Players Compete

September 6, 2020 · 3 min · 592 words · Samir Paul

Find a Peak Element II

September 6, 2020 · 6 min · 1207 words · Samir Paul

Depth of BST Given Insertion Order

September 6, 2020 · 2 min · 399 words · Samir Paul

Largest Odd Number in String

September 6, 2020 · 3 min · 490 words · Samir Paul

The Number of Full Rounds You Have Played

September 6, 2020 · 4 min · 712 words · Samir Paul

Count Sub Islands

September 6, 2020 · 6 min · 1201 words · Samir Paul

Minimum Absolute Difference Queries

September 6, 2020 · 6 min · 1172 words · Samir Paul

Count Salary Categories

September 6, 2020 · 3 min · 453 words · Samir Paul

Game of Nim

September 6, 2020 · 6 min · 1091 words · Samir Paul

Remove One Element to Make the Array Strictly Increasing

September 6, 2020 · 4 min · 772 words · Samir Paul

Remove All Occurrences of a Substring

September 6, 2020 · 2 min · 386 words · Samir Paul

Maximum Alternating Subsequence Sum

September 6, 2020 · 4 min · 787 words · Samir Paul

Design Movie Rental System

September 6, 2020 · 5 min · 853 words · Samir Paul

Maximum Product Difference Between Two Pairs

September 6, 2020 · 2 min · 364 words · Samir Paul

Cyclically Rotating a Grid

September 6, 2020 · 7 min · 1456 words · Samir Paul

Number of Wonderful Substrings

September 6, 2020 · 4 min · 670 words · Samir Paul

Count Ways to Build Rooms in an Ant Colony

September 6, 2020 · 2 min · 287 words · Samir Paul

Leetcodify Friends Recommendations

September 6, 2020 · 3 min · 611 words · Samir Paul

Kth Smallest Subarray Sum

September 6, 2020 · 4 min · 755 words · Samir Paul

Leetcodify Similar Friends

September 6, 2020 · 3 min · 506 words · Samir Paul

Build Array from Permutation

September 6, 2020 · 3 min · 432 words · Samir Paul

Eliminate Maximum Number of Monsters

September 5, 2020 · 5 min · 867 words · Samir Paul

Count Good Numbers

September 5, 2020 · 3 min · 524 words · Samir Paul

Longest Common Subpath

September 5, 2020 · 4 min · 766 words · Samir Paul

Erect the Fence II

September 5, 2020 · 1 min · 195 words · Samir Paul

Count Square Sum Triples

September 5, 2020 · 2 min · 380 words · Samir Paul

Nearest Exit from Entrance in Maze

September 5, 2020 · 5 min · 954 words · Samir Paul

Sum Game

September 5, 2020 · 5 min · 900 words · Samir Paul

Minimum Cost to Reach Destination in Time

September 5, 2020 · 2 min · 379 words · Samir Paul

Concatenation of Array

September 5, 2020 · 2 min · 381 words · Samir Paul

Unique Length-3 Palindromic Subsequences

September 5, 2020 · 3 min · 515 words · Samir Paul

Painting a Grid With Three Different Colors

September 5, 2020 · 8 min · 1619 words · Samir Paul

Merge BSTs to Create Single BST

September 5, 2020 · 2 min · 366 words · Samir Paul

Check if String Is Decomposable Into Value-Equal Substrings

September 5, 2020 · 4 min · 832 words · Samir Paul

Confirmation Rate

September 5, 2020 · 3 min · 487 words · Samir Paul

Maximum Number of Words You Can Type

September 5, 2020 · 4 min · 777 words · Samir Paul

Add Minimum Number of Rungs

September 5, 2020 · 4 min · 657 words · Samir Paul

Maximum Number of Points with Cost

September 5, 2020 · 5 min · 872 words · Samir Paul

Maximum Genetic Difference Query

September 5, 2020 · 2 min · 357 words · Samir Paul

Users That Actively Request Confirmation Messages

September 5, 2020 · 3 min · 451 words · Samir Paul

Longest Common Subsequence Between Sorted Arrays

September 5, 2020 · 3 min · 581 words · Samir Paul

Check if All Characters Have Equal Number of Occurrences

September 5, 2020 · 3 min · 562 words · Samir Paul

The Number of the Smallest Unoccupied Chair

September 5, 2020 · 4 min · 688 words · Samir Paul

Describe the Painting

September 5, 2020 · 4 min · 788 words · Samir Paul

Number of Visible People in a Queue

September 5, 2020 · 4 min · 723 words · Samir Paul

Sum of Digits of String After Convert

September 4, 2020 · 4 min · 802 words · Samir Paul

Largest Number After Mutating Substring

September 4, 2020 · 3 min · 519 words · Samir Paul

Maximum Compatibility Score Sum

September 4, 2020 · 5 min · 913 words · Samir Paul

Delete Duplicate Folders in System

September 4, 2020 · 3 min · 428 words · Samir Paul

Strong Friendship

September 4, 2020 · 2 min · 358 words · Samir Paul

Maximum of Minimum Values in All Subarrays

September 4, 2020 · 5 min · 1041 words · Samir Paul

All the Pairs With the Maximum Number of Common Followers

September 4, 2020 · 2 min · 397 words · Samir Paul

Three Divisors

September 4, 2020 · 3 min · 623 words · Samir Paul

Maximum Number of Weeks for Which You Can Work

September 4, 2020 · 3 min · 633 words · Samir Paul

Minimum Garden Perimeter to Collect Enough Apples

September 4, 2020 · 4 min · 761 words · Samir Paul

Count Number of Special Subsequences

September 4, 2020 · 8 min · 1501 words · Samir Paul

Minimum Time For K Virus Variants to Spread

September 4, 2020 · 2 min · 269 words · Samir Paul

Delete Characters to Make Fancy String

September 4, 2020 · 3 min · 451 words · Samir Paul

Check if Move is Legal

September 4, 2020 · 5 min · 857 words · Samir Paul

Minimum Total Space Wasted With K Resizing Operations

September 4, 2020 · 5 min · 951 words · Samir Paul

Maximum Product of the Length of Two Palindromic Substrings

September 4, 2020 · 1 min · 190 words · Samir Paul

Check If String Is a Prefix of Array

September 4, 2020 · 3 min · 557 words · Samir Paul

Remove Stones to Minimize the Total

September 4, 2020 · 4 min · 759 words · Samir Paul

Minimum Number of Swaps to Make the String Balanced

September 4, 2020 · 4 min · 642 words · Samir Paul

Find the Longest Valid Obstacle Course at Each Position

September 4, 2020 · 7 min · 1308 words · Samir Paul

Employees With Missing Information

September 4, 2020 · 2 min · 346 words · Samir Paul

Binary Searchable Numbers in an Unsorted Array

September 4, 2020 · 5 min · 856 words · Samir Paul

Number of Strings That Appear as Substrings in Word

September 4, 2020 · 2 min · 385 words · Samir Paul

Array With Elements Not Equal to Average of Neighbors

September 4, 2020 · 3 min · 544 words · Samir Paul

Minimum Non-Zero Product of the Array Elements

September 3, 2020 · 4 min · 809 words · Samir Paul

Last Day Where You Can Still Cross

September 3, 2020 · 7 min · 1289 words · Samir Paul

Find if Path Exists in Graph

September 3, 2020 · 6 min · 1082 words · Samir Paul

First and Last Call On the Same Day

September 3, 2020 · 2 min · 405 words · Samir Paul

Count Nodes Equal to Sum of Descendants

September 3, 2020 · 4 min · 658 words · Samir Paul

Minimum Time to Type Word Using Special Typewriter

September 3, 2020 · 3 min · 607 words · Samir Paul

Maximum Matrix Sum

September 3, 2020 · 3 min · 609 words · Samir Paul

Number of Ways to Arrive at Destination

September 3, 2020 · 6 min · 1144 words · Samir Paul

Number of Ways to Separate Numbers

September 3, 2020 · 5 min · 997 words · Samir Paul

Employees Whose Manager Left the Company

September 3, 2020 · 3 min · 433 words · Samir Paul

Find Greatest Common Divisor of Array

September 3, 2020 · 2 min · 394 words · Samir Paul

Find Unique Binary String

September 3, 2020 · 3 min · 497 words · Samir Paul

Minimize the Difference Between Target and Chosen Elements

September 3, 2020 · 4 min · 740 words · Samir Paul

Find Array Given Subset Sums

September 3, 2020 · 9 min · 1729 words · Samir Paul

Widest Pair of Indices With Equal Range Sum

September 3, 2020 · 3 min · 551 words · Samir Paul

Minimum Difference Between Highest and Lowest of K Scores

September 3, 2020 · 3 min · 627 words · Samir Paul

Find the Kth Largest Integer in the Array

September 3, 2020 · 2 min · 377 words · Samir Paul

Minimum Number of Work Sessions to Finish the Tasks

September 3, 2020 · 5 min · 989 words · Samir Paul

Number of Unique Good Subsequences

September 3, 2020 · 4 min · 667 words · Samir Paul

Find Cutoff Score for Each School

September 3, 2020 · 3 min · 569 words · Samir Paul

Maximum Number of People That Can Be Caught in Tag

September 3, 2020 · 4 min · 653 words · Samir Paul

Count the Number of Experiments

September 3, 2020 · 2 min · 417 words · Samir Paul

Find the Middle Index in Array

September 3, 2020 · 3 min · 556 words · Samir Paul

Find All Groups of Farmland

September 3, 2020 · 4 min · 811 words · Samir Paul

Operations on Tree

September 2, 2020 · 9 min · 1819 words · Samir Paul

The Number of Good Subsets

September 2, 2020 · 6 min · 1154 words · Samir Paul

Count Special Quadruplets

September 2, 2020 · 6 min · 1179 words · Samir Paul

The Number of Weak Characters in the Game

September 2, 2020 · 3 min · 605 words · Samir Paul

First Day Where You Have Been in All the Rooms

September 2, 2020 · 4 min · 643 words · Samir Paul

GCD Sort of an Array

September 2, 2020 · 5 min · 892 words · Samir Paul

Smallest Greater Multiple Made of Two Digits

September 2, 2020 · 3 min · 606 words · Samir Paul

Reverse Prefix of Word

September 2, 2020 · 4 min · 690 words · Samir Paul

Number of Pairs of Interchangeable Rectangles

September 2, 2020 · 4 min · 765 words · Samir Paul

Maximum Product of the Length of Two Palindromic Subsequences

September 2, 2020 · 6 min · 1182 words · Samir Paul

Smallest Missing Genetic Value in Each Subtree

September 2, 2020 · 9 min · 1723 words · Samir Paul

The Number of Seniors and Juniors to Join the Company

September 2, 2020 · 3 min · 541 words · Samir Paul

Subtree Removal Game with Fibonacci Tree

September 2, 2020 · 2 min · 284 words · Samir Paul

Count Number of Pairs With Absolute Difference K

September 2, 2020 · 5 min · 1029 words · Samir Paul

Find Original Array From Doubled Array

September 2, 2020 · 5 min · 913 words · Samir Paul

Maximum Earnings From Taxi

September 2, 2020 · 10 min · 1921 words · Samir Paul

Minimum Number of Operations to Make Array Continuous

September 2, 2020 · 6 min · 1213 words · Samir Paul

The Number of Seniors and Juniors to Join the Company II

September 2, 2020 · 3 min · 552 words · Samir Paul

Final Value of Variable After Performing Operations

September 2, 2020 · 4 min · 678 words · Samir Paul

Sum of Beauty in the Array

September 2, 2020 · 5 min · 888 words · Samir Paul

Detect Squares

September 2, 2020 · 6 min · 1088 words · Samir Paul

Longest Subsequence Repeated k Times

September 2, 2020 · 2 min · 250 words · Samir Paul

Average Height of Buildings in Each Segment

September 2, 2020 · 7 min · 1295 words · Samir Paul

Maximum Difference Between Increasing Elements

September 2, 2020 · 4 min · 701 words · Samir Paul

Grid Game

September 1, 2020 · 5 min · 904 words · Samir Paul

Check if Word Can Be Placed In Crossword

September 1, 2020 · 9 min · 1760 words · Samir Paul

The Score of Students Solving Math Expression

September 1, 2020 · 11 min · 2216 words · Samir Paul

Number of Accounts That Did Not Stream

September 1, 2020 · 2 min · 350 words · Samir Paul

Brightest Position on Street

September 1, 2020 · 5 min · 1015 words · Samir Paul

Convert 1D Array Into 2D Array

September 1, 2020 · 4 min · 763 words · Samir Paul

Number of Pairs of Strings With Concatenation Equal to Target

September 1, 2020 · 5 min · 902 words · Samir Paul

Maximize the Confusion of an Exam

September 1, 2020 · 4 min · 772 words · Samir Paul

Maximum Number of Ways to Partition an Array

September 1, 2020 · 6 min · 1109 words · Samir Paul

Low-Quality Problems

September 1, 2020 · 2 min · 315 words · Samir Paul

Minimum Moves to Convert String

September 1, 2020 · 3 min · 595 words · Samir Paul

Find Missing Observations

September 1, 2020 · 6 min · 1095 words · Samir Paul

Stone Game IX

September 1, 2020 · 4 min · 765 words · Samir Paul

Smallest K-Length Subsequence With Occurrences of a Letter

September 1, 2020 · 2 min · 292 words · Samir Paul

Count Subarrays With More Ones Than Zeros

September 1, 2020 · 7 min · 1351 words · Samir Paul

Two Out of Three

September 1, 2020 · 4 min · 738 words · Samir Paul

Minimum Operations to Make a Uni-Value Grid

September 1, 2020 · 4 min · 740 words · Samir Paul

Stock Price Fluctuation

September 1, 2020 · 6 min · 1170 words · Samir Paul

Partition Array Into Two Arrays to Minimize Sum Difference

September 1, 2020 · 6 min · 1132 words · Samir Paul

Maximum Alternating Subarray Sum

September 1, 2020 · 3 min · 596 words · Samir Paul

Minimum Number of Moves to Seat Everyone

September 1, 2020 · 4 min · 840 words · Samir Paul

Remove Colored Pieces if Both Neighbors are the Same Color

September 1, 2020 · 5 min · 882 words · Samir Paul

The Time When the Network Becomes Idle

September 1, 2020 · 7 min · 1470 words · Samir Paul

Kth Smallest Product of Two Sorted Arrays

September 1, 2020 · 2 min · 264 words · Samir Paul

August  744

Accepted Candidates From the Interviews

August 31, 2020 · 3 min · 499 words · Samir Paul

Check if Numbers Are Ascending in a Sentence

August 31, 2020 · 5 min · 931 words · Samir Paul

Simple Bank System

August 31, 2020 · 9 min · 1722 words · Samir Paul

Count Number of Maximum Bitwise-OR Subsets

August 31, 2020 · 8 min · 1600 words · Samir Paul

Second Minimum Time to Reach Destination

August 31, 2020 · 5 min · 874 words · Samir Paul

Sort Linked List Already Sorted Using Absolute Values

August 31, 2020 · 3 min · 599 words · Samir Paul

Number of Valid Words in a Sentence

August 31, 2020 · 4 min · 688 words · Samir Paul

Next Greater Numerically Balanced Number

August 31, 2020 · 4 min · 687 words · Samir Paul

Count Nodes With the Highest Score

August 31, 2020 · 7 min · 1466 words · Samir Paul

Parallel Courses III

August 31, 2020 · 6 min · 1137 words · Samir Paul

The Category of Each Member in the Store

August 31, 2020 · 4 min · 708 words · Samir Paul

Minimum Cost to Separate Sentence Into Rows

August 31, 2020 · 6 min · 1094 words · Samir Paul

Kth Distinct String in an Array

August 31, 2020 · 3 min · 436 words · Samir Paul

Two Best Non-Overlapping Events

August 31, 2020 · 4 min · 689 words · Samir Paul

Plates Between Candles

August 31, 2020 · 5 min · 915 words · Samir Paul

Number of Valid Move Combinations On Chessboard

August 31, 2020 · 2 min · 421 words · Samir Paul

Smallest Index With Equal Value

August 31, 2020 · 2 min · 366 words · Samir Paul

Find the Minimum and Maximum Number of Nodes Between Critical Points

August 31, 2020 · 6 min · 1184 words · Samir Paul

Minimum Operations to Convert Number

August 31, 2020 · 12 min · 2423 words · Samir Paul

Check if an Original String Exists Given Two Encoded Strings

August 31, 2020 · 4 min · 663 words · Samir Paul

Number of Spaces Cleaning Robot Cleaned

August 31, 2020 · 7 min · 1396 words · Samir Paul

Count Vowel Substrings of a String

August 31, 2020 · 4 min · 652 words · Samir Paul

Vowels of All Substrings

August 31, 2020 · 3 min · 528 words · Samir Paul

Minimized Maximum of Products Distributed to Any Store

August 31, 2020 · 4 min · 736 words · Samir Paul

Maximum Path Quality of a Graph

August 30, 2020 · 3 min · 584 words · Samir Paul

Account Balance

August 30, 2020 · 2 min · 374 words · Samir Paul

Number of Equal Count Substrings

August 30, 2020 · 5 min · 988 words · Samir Paul

Check Whether Two Strings are Almost Equivalent

August 30, 2020 · 5 min · 976 words · Samir Paul

Walking Robot Simulation II

August 30, 2020 · 2 min · 413 words · Samir Paul

Most Beautiful Item for Each Query

August 30, 2020 · 4 min · 729 words · Samir Paul

Maximum Number of Tasks You Can Assign

August 30, 2020 · 6 min · 1101 words · Samir Paul

The Winner University

August 30, 2020 · 3 min · 479 words · Samir Paul

Time Needed to Buy Tickets

August 30, 2020 · 3 min · 638 words · Samir Paul

Reverse Nodes in Even Length Groups

August 30, 2020 · 5 min · 986 words · Samir Paul

Decode the Slanted Ciphertext

August 30, 2020 · 4 min · 683 words · Samir Paul

Process Restricted Friend Requests

August 30, 2020 · 5 min · 1030 words · Samir Paul

Paths in Maze That Lead to Same Room

August 30, 2020 · 4 min · 757 words · Samir Paul

Two Furthest Houses With Different Colors

August 30, 2020 · 4 min · 785 words · Samir Paul

Watering Plants

August 30, 2020 · 5 min · 969 words · Samir Paul

Range Frequency Queries

August 30, 2020 · 4 min · 688 words · Samir Paul

Sum of k-Mirror Numbers

August 30, 2020 · 3 min · 444 words · Samir Paul

The Number of Rich Customers

August 30, 2020 · 2 min · 219 words · Samir Paul

Substrings That Begin and End With the Same Letter

August 30, 2020 · 2 min · 389 words · Samir Paul

Drop Type 1 Orders for Customers With Type 0 Orders

August 30, 2020 · 3 min · 437 words · Samir Paul

Count Common Words With One Occurrence

August 30, 2020 · 4 min · 657 words · Samir Paul

Minimum Number of Food Buckets to Feed the Hamsters

August 30, 2020 · 3 min · 583 words · Samir Paul

Minimum Cost Homecoming of a Robot in a Grid

August 30, 2020 · 4 min · 815 words · Samir Paul

Count Fertile Pyramids in a Land

August 30, 2020 · 6 min · 1246 words · Samir Paul

Find Target Indices After Sorting Array

August 29, 2020 · 2 min · 383 words · Samir Paul

K Radius Subarray Averages

August 29, 2020 · 6 min · 1232 words · Samir Paul

Removing Minimum and Maximum From Array

August 29, 2020 · 4 min · 710 words · Samir Paul

Find All People With Secret

August 29, 2020 · 7 min · 1445 words · Samir Paul

Minimum Cost to Reach City With Discounts

August 29, 2020 · 4 min · 823 words · Samir Paul

Finding 3-Digit Even Numbers

August 29, 2020 · 4 min · 810 words · Samir Paul

Delete the Middle Node of a Linked List

August 29, 2020 · 4 min · 721 words · Samir Paul

Step-By-Step Directions From a Binary Tree Node to Another

August 29, 2020 · 5 min · 900 words · Samir Paul

Valid Arrangement of Pairs

August 29, 2020 · 1 min · 212 words · Samir Paul

Subsequence of Size K With the Largest Even Sum

August 29, 2020 · 4 min · 831 words · Samir Paul

Find Subsequence of Length K With the Largest Sum

August 29, 2020 · 3 min · 447 words · Samir Paul

Find Good Days to Rob the Bank

August 29, 2020 · 6 min · 1147 words · Samir Paul

Detonate the Maximum Bombs

August 29, 2020 · 5 min · 1034 words · Samir Paul

Sequentially Ordinal Rank Tracker

August 29, 2020 · 3 min · 556 words · Samir Paul

Rings and Rods

August 29, 2020 · 6 min · 1140 words · Samir Paul

Sum of Subarray Ranges

August 29, 2020 · 7 min · 1432 words · Samir Paul

Watering Plants II

August 29, 2020 · 5 min · 1006 words · Samir Paul

Maximum Fruits Harvested After at Most K Steps

August 29, 2020 · 4 min · 797 words · Samir Paul

Number of Unique Flavors After Sharing K Candies

August 29, 2020 · 5 min · 910 words · Samir Paul

Find First Palindromic String in the Array

August 29, 2020 · 3 min · 601 words · Samir Paul

Adding Spaces to a String

August 29, 2020 · 3 min · 590 words · Samir Paul

Number of Smooth Descent Periods of a Stock

August 29, 2020 · 3 min · 594 words · Samir Paul

Minimum Operations to Make the Array K-Increasing

August 29, 2020 · 5 min · 894 words · Samir Paul

The Airport With the Most Traffic

August 29, 2020 · 3 min · 441 words · Samir Paul

Elements in Array After Removing and Replacing Elements

August 28, 2020 · 4 min · 739 words · Samir Paul

Maximum Number of Words Found in Sentences

August 28, 2020 · 3 min · 597 words · Samir Paul

Find All Possible Recipes from Given Supplies

August 28, 2020 · 4 min · 803 words · Samir Paul

Check if a Parentheses String Can Be Valid

August 28, 2020 · 4 min · 757 words · Samir Paul

Abbreviating the Product of a Range

August 28, 2020 · 7 min · 1332 words · Samir Paul

Build the Equation

August 28, 2020 · 2 min · 418 words · Samir Paul

A Number After a Double Reversal

August 28, 2020 · 2 min · 237 words · Samir Paul

Execution of All Suffix Instructions Staying in a Grid

August 28, 2020 · 7 min · 1384 words · Samir Paul

Intervals Between Identical Elements

August 28, 2020 · 4 min · 803 words · Samir Paul

Recover the Original Array

August 28, 2020 · 5 min · 983 words · Samir Paul

Minimum Operations to Remove Adjacent Ones in Matrix

August 28, 2020 · 7 min · 1281 words · Samir Paul

Check if All A’s Appears Before All B’s

August 28, 2020 · 2 min · 224 words · Samir Paul

Number of Laser Beams in a Bank

August 28, 2020 · 4 min · 761 words · Samir Paul

Destroying Asteroids

August 28, 2020 · 3 min · 490 words · Samir Paul

Maximum Employees to Be Invited to a Meeting

August 28, 2020 · 9 min · 1820 words · Samir Paul

Remove All Ones With Row and Column Flips

August 28, 2020 · 3 min · 456 words · Samir Paul

Capitalize the Title

August 28, 2020 · 3 min · 532 words · Samir Paul

Maximum Twin Sum of a Linked List

August 28, 2020 · 9 min · 1810 words · Samir Paul

Longest Palindrome by Concatenating Two Letter Words

August 28, 2020 · 3 min · 605 words · Samir Paul

Stamping the Grid

August 28, 2020 · 12 min · 2440 words · Samir Paul

Check if Every Row and Column Contains All Numbers

August 28, 2020 · 4 min · 665 words · Samir Paul

Minimum Swaps to Group All 1’s Together II

August 28, 2020 · 4 min · 770 words · Samir Paul

Count Words Obtained After Adding a Letter

August 28, 2020 · 5 min · 859 words · Samir Paul

Earliest Possible Day of Full Bloom

August 28, 2020 · 5 min · 873 words · Samir Paul

Pour Water Between Buckets to Make Water Levels Equal

August 27, 2020 · 5 min · 898 words · Samir Paul

Divide a String Into Groups of Size k

August 27, 2020 · 3 min · 548 words · Samir Paul

Minimum Moves to Reach Target Score

August 27, 2020 · 5 min · 1017 words · Samir Paul

Solving Questions With Brainpower

August 27, 2020 · 6 min · 1073 words · Samir Paul

Maximum Running Time of N Computers

August 27, 2020 · 6 min · 1077 words · Samir Paul

The Number of Passengers in Each Bus I

August 27, 2020 · 2 min · 398 words · Samir Paul

Choose Numbers From Two Arrays in Range

August 27, 2020 · 6 min · 1236 words · Samir Paul

Minimum Cost of Buying Candies With Discount

August 27, 2020 · 3 min · 606 words · Samir Paul

Count the Hidden Sequences

August 27, 2020 · 3 min · 548 words · Samir Paul

K Highest Ranked Items Within a Price Range

August 27, 2020 · 7 min · 1487 words · Samir Paul

Number of Ways to Divide a Long Corridor

August 27, 2020 · 5 min · 954 words · Samir Paul

Count Elements With Strictly Smaller and Greater Elements

August 27, 2020 · 3 min · 482 words · Samir Paul

Rearrange Array Elements by Sign

August 27, 2020 · 3 min · 525 words · Samir Paul

Find All Lonely Numbers in the Array

August 27, 2020 · 3 min · 551 words · Samir Paul

Maximum Good People Based on Statements

August 27, 2020 · 6 min · 1241 words · Samir Paul

Minimum Number of Lines to Cover Points

August 27, 2020 · 5 min · 1055 words · Samir Paul

The Number of Passengers in Each Bus II

August 27, 2020 · 3 min · 536 words · Samir Paul

Keep Multiplying Found Values by Two

August 27, 2020 · 2 min · 381 words · Samir Paul

All Divisions With the Highest Score of a Binary Array

August 27, 2020 · 5 min · 963 words · Samir Paul

Find Substring With Given Hash Value

August 27, 2020 · 3 min · 562 words · Samir Paul

Groups of Strings

August 27, 2020 · 7 min · 1340 words · Samir Paul

Amount of New Area Painted Each Day

August 27, 2020 · 8 min · 1562 words · Samir Paul

Order Two Columns Independently

August 27, 2020 · 1 min · 191 words · Samir Paul

Minimum Sum of Four Digit Number After Splitting Digits

August 27, 2020 · 3 min · 557 words · Samir Paul

Partition Array According to Given Pivot

August 26, 2020 · 3 min · 623 words · Samir Paul

Minimum Cost to Set Cooking Time

August 26, 2020 · 6 min · 1177 words · Samir Paul

Minimum Difference in Sums After Removal of Elements

August 26, 2020 · 7 min · 1293 words · Samir Paul

Sort Even and Odd Indices Independently

August 26, 2020 · 4 min · 643 words · Samir Paul

Smallest Value of the Rearranged Number

August 26, 2020 · 4 min · 751 words · Samir Paul

Design Bitset

August 26, 2020 · 7 min · 1279 words · Samir Paul

Minimum Time to Remove All Cars Containing Illegal Goods

August 26, 2020 · 5 min · 930 words · Samir Paul

Unique Substrings With Equal Digit Frequency

August 26, 2020 · 3 min · 559 words · Samir Paul

Count Operations to Obtain Zero

August 26, 2020 · 3 min · 518 words · Samir Paul

Minimum Operations to Make the Array Alternating

August 26, 2020 · 5 min · 921 words · Samir Paul

Removing Minimum Number of Magic Beans

August 26, 2020 · 4 min · 731 words · Samir Paul

Maximum AND Sum of Array

August 26, 2020 · 5 min · 861 words · Samir Paul

Longest Winning Streak

August 26, 2020 · 2 min · 408 words · Samir Paul

Remove All Ones With Row and Column Flips II

August 26, 2020 · 5 min · 992 words · Samir Paul

The Change in Global Rankings

August 26, 2020 · 3 min · 618 words · Samir Paul

Count Equal and Divisible Pairs in an Array

August 26, 2020 · 4 min · 660 words · Samir Paul

Find Three Consecutive Integers That Sum to a Given Number

August 26, 2020 · 2 min · 312 words · Samir Paul

Maximum Split of Positive Even Integers

August 26, 2020 · 3 min · 622 words · Samir Paul

Count Good Triplets in an Array

August 26, 2020 · 10 min · 2045 words · Samir Paul

Count Integers With Even Digit Sum

August 26, 2020 · 4 min · 776 words · Samir Paul

Merge Nodes in Between Zeros

August 26, 2020 · 5 min · 1062 words · Samir Paul

Construct String With Repeat Limit

August 26, 2020 · 6 min · 1085 words · Samir Paul

Count Array Pairs Divisible by K

August 26, 2020 · 1 min · 162 words · Samir Paul

Number of Ways to Build Sturdy Brick Wall

August 26, 2020 · 7 min · 1458 words · Samir Paul

Counting Words With a Given Prefix

August 25, 2020 · 5 min · 948 words · Samir Paul

Minimum Number of Steps to Make Two Strings Anagram II

August 25, 2020 · 3 min · 601 words · Samir Paul

Minimum Time to Complete Trips

August 25, 2020 · 3 min · 595 words · Samir Paul

Minimum Time to Finish the Race

August 25, 2020 · 6 min · 1081 words · Samir Paul

Number of Ways to Build House of Cards

August 25, 2020 · 4 min · 744 words · Samir Paul

Most Frequent Number Following Key In an Array

August 25, 2020 · 4 min · 682 words · Samir Paul

Sort the Jumbled Numbers

August 25, 2020 · 4 min · 846 words · Samir Paul

All Ancestors of a Node in a Directed Acyclic Graph

August 25, 2020 · 5 min · 907 words · Samir Paul

Minimum Number of Moves to Make Palindrome

August 25, 2020 · 4 min · 666 words · Samir Paul

Cells in a Range on an Excel Sheet

August 25, 2020 · 3 min · 452 words · Samir Paul

Append K Integers With Minimal Sum

August 25, 2020 · 3 min · 628 words · Samir Paul

Create Binary Tree From Descriptions

August 25, 2020 · 6 min · 1258 words · Samir Paul

Replace Non-Coprime Numbers in Array

August 25, 2020 · 2 min · 339 words · Samir Paul

Number of Single Divisor Triplets

August 25, 2020 · 6 min · 1069 words · Samir Paul

Finding the Topic of Each Post

August 25, 2020 · 3 min · 586 words · Samir Paul

Find All K-Distant Indices in an Array

August 25, 2020 · 9 min · 1851 words · Samir Paul

Count Artifacts That Can Be Extracted

August 25, 2020 · 6 min · 1115 words · Samir Paul

Maximize the Topmost Element After K Moves

August 25, 2020 · 3 min · 639 words · Samir Paul

Minimum Weighted Subgraph With the Required Paths

August 25, 2020 · 4 min · 755 words · Samir Paul

Distance to a Cycle in Undirected Graph

August 25, 2020 · 7 min · 1295 words · Samir Paul

The Number of Users That Are Eligible for Discount

August 25, 2020 · 2 min · 322 words · Samir Paul

Divide Array Into Equal Pairs

August 25, 2020 · 2 min · 336 words · Samir Paul

Maximize Number of Subsequences in a String

August 25, 2020 · 3 min · 515 words · Samir Paul

Minimum Operations to Halve Array Sum

August 25, 2020 · 5 min · 887 words · Samir Paul

Minimum White Tiles After Covering With Carpets

August 24, 2020 · 4 min · 811 words · Samir Paul

Count Hills and Valleys in an Array

August 24, 2020 · 5 min · 1049 words · Samir Paul

Count Collisions on a Road

August 24, 2020 · 4 min · 677 words · Samir Paul

Maximum Points in an Archery Competition

August 24, 2020 · 6 min · 1222 words · Samir Paul

Longest Substring of One Repeating Character

August 24, 2020 · 10 min · 1966 words · Samir Paul

Minimum Health to Beat Game

August 24, 2020 · 4 min · 643 words · Samir Paul

Find the Difference of Two Arrays

August 24, 2020 · 5 min · 887 words · Samir Paul

Minimum Deletions to Make Array Beautiful

August 24, 2020 · 6 min · 1215 words · Samir Paul

Find Palindrome With Fixed Length

August 24, 2020 · 4 min · 758 words · Samir Paul

Maximum Value of K Coins From Piles

August 24, 2020 · 4 min · 691 words · Samir Paul

Maximum Sum Score of Array

August 24, 2020 · 4 min · 645 words · Samir Paul

Minimum Bit Flips to Convert Number

August 24, 2020 · 3 min · 624 words · Samir Paul

Find Triangular Sum of an Array

August 24, 2020 · 2 min · 398 words · Samir Paul

Number of Ways to Select Buildings

August 24, 2020 · 3 min · 594 words · Samir Paul

Sum of Scores of Built Strings

August 24, 2020 · 2 min · 303 words · Samir Paul

Minimum Number of Operations to Convert Time

August 24, 2020 · 3 min · 496 words · Samir Paul

Find Players With Zero or One Losses

August 24, 2020 · 4 min · 819 words · Samir Paul

Maximum Candies Allocated to K Children

August 24, 2020 · 3 min · 563 words · Samir Paul

Encrypt and Decrypt Strings

August 24, 2020 · 5 min · 987 words · Samir Paul

Users With Two Purchases Within Seven Days

August 24, 2020 · 2 min · 273 words · Samir Paul

Check if an Array Is Consecutive

August 24, 2020 · 3 min · 441 words · Samir Paul

The Users That Are Eligible for Discount

August 24, 2020 · 2 min · 350 words · Samir Paul

Largest Number After Digit Swaps by Parity

August 24, 2020 · 4 min · 721 words · Samir Paul

Minimize Result by Adding Parentheses to Expression

August 24, 2020 · 4 min · 665 words · Samir Paul

Maximum Product After K Increments

August 23, 2020 · 3 min · 615 words · Samir Paul

Maximum Total Beauty of the Gardens

August 23, 2020 · 8 min · 1540 words · Samir Paul

Add Two Integers

August 23, 2020 · 3 min · 510 words · Samir Paul

Root Equals Sum of Children

August 23, 2020 · 4 min · 715 words · Samir Paul

Count Positions on Street With Required Brightness

August 23, 2020 · 4 min · 792 words · Samir Paul

Number of Times a Driver Was a Passenger

August 23, 2020 · 2 min · 265 words · Samir Paul

Find Closest Number to Zero

August 23, 2020 · 3 min · 466 words · Samir Paul

Number of Ways to Buy Pens and Pencils

August 23, 2020 · 3 min · 546 words · Samir Paul

Design an ATM Machine

August 23, 2020 · 5 min · 1029 words · Samir Paul

Maximum Score of a Node Sequence

August 23, 2020 · 3 min · 551 words · Samir Paul

Calculate Digit Sum of a String

August 23, 2020 · 4 min · 798 words · Samir Paul

Minimum Rounds to Complete All Tasks

August 23, 2020 · 3 min · 565 words · Samir Paul

Maximum Trailing Zeros in a Cornered Path

August 23, 2020 · 8 min · 1634 words · Samir Paul

Longest Path With Different Adjacent Characters

August 23, 2020 · 4 min · 788 words · Samir Paul

Maximum Cost of Trip With K Highways

August 23, 2020 · 6 min · 1256 words · Samir Paul

Intersection of Multiple Arrays

August 23, 2020 · 4 min · 805 words · Samir Paul

Count Lattice Points Inside a Circle

August 23, 2020 · 4 min · 774 words · Samir Paul

Count Number of Rectangles Containing Each Point

August 23, 2020 · 5 min · 959 words · Samir Paul

Number of Flowers in Full Bloom

August 23, 2020 · 8 min · 1512 words · Samir Paul

Dynamic Pivoting of a Table

August 23, 2020 · 3 min · 477 words · Samir Paul

Dynamic Unpivoting of a Table

August 23, 2020 · 3 min · 493 words · Samir Paul

Design Video Sharing Platform

August 23, 2020 · 4 min · 764 words · Samir Paul

Count Prefixes of a Given String

August 23, 2020 · 2 min · 400 words · Samir Paul

Minimum Average Difference

August 23, 2020 · 6 min · 1110 words · Samir Paul

Count Unguarded Cells in the Grid

August 22, 2020 · 6 min · 1271 words · Samir Paul

Escape the Spreading Fire

August 22, 2020 · 13 min · 2705 words · Samir Paul

Remove Digit From Number to Maximize Result

August 22, 2020 · 5 min · 884 words · Samir Paul

Minimum Consecutive Cards to Pick Up

August 22, 2020 · 3 min · 495 words · Samir Paul

K Divisible Elements Subarrays

August 22, 2020 · 4 min · 743 words · Samir Paul

Total Appeal of A String

August 22, 2020 · 5 min · 972 words · Samir Paul

Make Array Non-decreasing or Non-increasing

August 22, 2020 · 4 min · 724 words · Samir Paul

Largest 3-Same-Digit Number in String

August 22, 2020 · 3 min · 461 words · Samir Paul

Count Nodes Equal to Average of Subtree

August 22, 2020 · 4 min · 789 words · Samir Paul

Count Number of Texts

August 22, 2020 · 4 min · 748 words · Samir Paul

Check if There Is a Valid Parentheses String Path

August 22, 2020 · 5 min · 875 words · Samir Paul

Minimum Number of Keypresses

August 22, 2020 · 3 min · 547 words · Samir Paul

Find the K-Beauty of a Number

August 22, 2020 · 3 min · 545 words · Samir Paul

Number of Ways to Split Array

August 22, 2020 · 3 min · 589 words · Samir Paul

Maximum White Tiles Covered by a Carpet

August 22, 2020 · 3 min · 639 words · Samir Paul

Substring With Largest Variance

August 22, 2020 · 3 min · 614 words · Samir Paul

Find Resultant Array After Removing Anagrams

August 22, 2020 · 3 min · 471 words · Samir Paul

Maximum Consecutive Floors Without Special Floors

August 22, 2020 · 2 min · 394 words · Samir Paul

Largest Combination With Bitwise AND Greater Than Zero

August 22, 2020 · 2 min · 417 words · Samir Paul

Count Integers in Intervals

August 22, 2020 · 12 min · 2374 words · Samir Paul

Closest Node to Path in Tree

August 22, 2020 · 2 min · 372 words · Samir Paul

Percentage of Letter in String

August 22, 2020 · 2 min · 374 words · Samir Paul

Maximum Bags With Full Capacity of Rocks

August 22, 2020 · 4 min · 743 words · Samir Paul

Minimum Lines to Represent a Line Chart

August 22, 2020 · 4 min · 678 words · Samir Paul

Sum of Total Strength of Wizards

August 21, 2020 · 7 min · 1464 words · Samir Paul

Number of People That Can Be Seen in a Grid

August 21, 2020 · 6 min · 1139 words · Samir Paul

Check if Number Has Equal Digit Count and Digit Value

August 21, 2020 · 3 min · 606 words · Samir Paul

Sender With Largest Word Count

August 21, 2020 · 3 min · 637 words · Samir Paul

Maximum Total Importance of Roads

August 21, 2020 · 3 min · 622 words · Samir Paul

Booking Concert Tickets in Groups

August 21, 2020 · 13 min · 2747 words · Samir Paul

Rearrange Characters to Make Target String

August 21, 2020 · 4 min · 838 words · Samir Paul

Apply Discount to Prices

August 21, 2020 · 4 min · 733 words · Samir Paul

Steps to Make Array Non-decreasing

August 21, 2020 · 3 min · 474 words · Samir Paul

Minimum Obstacle Removal to Reach Corner

August 21, 2020 · 5 min · 989 words · Samir Paul

Maximum Profit From Trading Stocks

August 21, 2020 · 5 min · 991 words · Samir Paul

Products With Three or More Orders in Two Consecutive Years

August 21, 2020 · 2 min · 379 words · Samir Paul

Min Max Game

August 21, 2020 · 4 min · 735 words · Samir Paul

Partition Array Such That Maximum Difference Is K

August 21, 2020 · 3 min · 639 words · Samir Paul

Replace Elements in an Array

August 21, 2020 · 3 min · 507 words · Samir Paul

Design a Text Editor

August 21, 2020 · 6 min · 1160 words · Samir Paul

Jump Game VIII

August 21, 2020 · 5 min · 1055 words · Samir Paul

Tasks Count in the Weekend

August 21, 2020 · 2 min · 270 words · Samir Paul

Strong Password Checker II

August 21, 2020 · 5 min · 933 words · Samir Paul

Successful Pairs of Spells and Potions

August 21, 2020 · 4 min · 685 words · Samir Paul

Match Substring After Replacement

August 21, 2020 · 6 min · 1247 words · Samir Paul

Count Subarrays With Score Less Than K

August 21, 2020 · 6 min · 1176 words · Samir Paul

Calculate Amount Paid in Taxes

August 21, 2020 · 4 min · 732 words · Samir Paul

Minimum Path Cost in a Grid

August 21, 2020 · 6 min · 1128 words · Samir Paul

Fair Distribution of Cookies

August 20, 2020 · 5 min · 1055 words · Samir Paul

Naming a Company

August 20, 2020 · 6 min · 1132 words · Samir Paul

Check for Contradictions in Equations

August 20, 2020 · 7 min · 1294 words · Samir Paul

Arrange Table by Gender

August 20, 2020 · 2 min · 399 words · Samir Paul

Greatest English Letter in Upper and Lower Case

August 20, 2020 · 6 min · 1157 words · Samir Paul

Sum of Numbers With Units Digit K

August 20, 2020 · 5 min · 860 words · Samir Paul

Longest Binary Subsequence Less Than or Equal to K

August 20, 2020 · 4 min · 740 words · Samir Paul

Selling Pieces of Wood

August 20, 2020 · 7 min · 1479 words · Samir Paul

Minimum Flips in Binary Tree to Get Result

August 20, 2020 · 7 min · 1450 words · Samir Paul

The First Day of the Maximum Recorded Degree in Each City

August 20, 2020 · 2 min · 342 words · Samir Paul

Count Asterisks

August 20, 2020 · 4 min · 661 words · Samir Paul

Count Unreachable Pairs of Nodes in an Undirected Graph

August 20, 2020 · 6 min · 1085 words · Samir Paul

Maximum XOR After Operations

August 20, 2020 · 2 min · 366 words · Samir Paul

Number of Distinct Roll Sequences

August 20, 2020 · 6 min · 1159 words · Samir Paul

Check if Matrix Is X-Matrix

August 20, 2020 · 4 min · 776 words · Samir Paul

Count Number of Ways to Place Houses

August 20, 2020 · 4 min · 702 words · Samir Paul

Maximum Score Of Spliced Array

August 20, 2020 · 4 min · 721 words · Samir Paul

Minimum Score After Removals on a Tree

August 20, 2020 · 7 min · 1400 words · Samir Paul

Find Minimum Time to Finish All Jobs II

August 20, 2020 · 3 min · 491 words · Samir Paul

Product Sales Analysis IV

August 20, 2020 · 3 min · 434 words · Samir Paul

Decode the Message

August 20, 2020 · 4 min · 790 words · Samir Paul

Spiral Matrix IV

August 20, 2020 · 6 min · 1091 words · Samir Paul

Number of People Aware of a Secret

August 20, 2020 · 5 min · 965 words · Samir Paul

Number of Increasing Paths in a Grid

August 20, 2020 · 6 min · 1254 words · Samir Paul

Product Sales Analysis V

August 19, 2020 · 2 min · 356 words · Samir Paul

Valid Palindrome IV

August 19, 2020 · 3 min · 452 words · Samir Paul

Evaluate Boolean Binary Tree

August 19, 2020 · 7 min · 1455 words · Samir Paul

The Latest Time to Catch a Bus

August 19, 2020 · 6 min · 1127 words · Samir Paul

Minimum Sum of Squared Difference

August 19, 2020 · 6 min · 1142 words · Samir Paul

Subarray With Elements Greater Than Varying Threshold

August 19, 2020 · 8 min · 1586 words · Samir Paul

Minimum Amount of Time to Fill Cups

August 19, 2020 · 4 min · 709 words · Samir Paul

Smallest Number in Infinite Set

August 19, 2020 · 18 min · 3775 words · Samir Paul

Move Pieces to Obtain a String

August 19, 2020 · 8 min · 1581 words · Samir Paul

Count the Number of Ideal Arrays

August 19, 2020 · 9 min · 1855 words · Samir Paul

All the Matches of the League

August 19, 2020 · 2 min · 220 words · Samir Paul

Minimum Adjacent Swaps to Make a Valid Array

August 19, 2020 · 4 min · 726 words · Samir Paul

Maximum Number of Pairs in Array

August 19, 2020 · 4 min · 814 words · Samir Paul

Max Sum of a Pair With Equal Sum of Digits

August 19, 2020 · 4 min · 823 words · Samir Paul

Query Kth Smallest Trimmed Number

August 19, 2020 · 4 min · 694 words · Samir Paul

Minimum Deletions to Make Array Divisible

August 19, 2020 · 5 min · 933 words · Samir Paul

Finding the Number of Visible Mountains

August 19, 2020 · 4 min · 838 words · Samir Paul

Compute the Rank as a Percentage

August 19, 2020 · 2 min · 404 words · Samir Paul

Best Poker Hand

August 19, 2020 · 5 min · 949 words · Samir Paul

Number of Zero-Filled Subarrays

August 19, 2020 · 2 min · 414 words · Samir Paul

Design a Number Container System

August 19, 2020 · 4 min · 785 words · Samir Paul

Shortest Impossible Sequence of Rolls

August 19, 2020 · 3 min · 488 words · Samir Paul

First Letter to Appear Twice

August 19, 2020 · 5 min · 918 words · Samir Paul

Equal Row and Column Pairs

August 19, 2020 · 5 min · 946 words · Samir Paul

Design a Food Rating System

August 18, 2020 · 4 min · 722 words · Samir Paul

Number of Excellent Pairs

August 18, 2020 · 4 min · 671 words · Samir Paul

Maximum Number of Books You Can Take

August 18, 2020 · 5 min · 936 words · Samir Paul

Number of Unique Subjects Taught by Each Teacher

August 18, 2020 · 2 min · 267 words · Samir Paul

Make Array Zero by Subtracting Equal Amounts

August 18, 2020 · 2 min · 424 words · Samir Paul

Maximum Number of Groups Entering a Competition

August 18, 2020 · 3 min · 565 words · Samir Paul

Find Closest Node to Given Two Nodes

August 18, 2020 · 10 min · 1989 words · Samir Paul

Longest Cycle in a Graph

August 18, 2020 · 4 min · 745 words · Samir Paul

Minimum Costs Using the Train Line

August 18, 2020 · 7 min · 1410 words · Samir Paul

Generate the Invoice

August 18, 2020 · 2 min · 402 words · Samir Paul

Merge Similar Items

August 18, 2020 · 5 min · 978 words · Samir Paul

Count Number of Bad Pairs

August 18, 2020 · 3 min · 454 words · Samir Paul

Task Scheduler II

August 18, 2020 · 3 min · 548 words · Samir Paul

Minimum Replacements to Sort the Array

August 18, 2020 · 4 min · 693 words · Samir Paul

Number of Arithmetic Triplets

August 18, 2020 · 5 min · 857 words · Samir Paul

Reachable Nodes With Restrictions

August 18, 2020 · 7 min · 1290 words · Samir Paul

Check if There is a Valid Partition For The Array

August 18, 2020 · 8 min · 1583 words · Samir Paul

Longest Ideal Subsequence

August 18, 2020 · 4 min · 703 words · Samir Paul

Minimize Maximum Value in a Grid

August 18, 2020 · 4 min · 794 words · Samir Paul

Calculate the Influence of Each Salesperson

August 18, 2020 · 3 min · 460 words · Samir Paul

Largest Local Values in a Matrix

August 18, 2020 · 3 min · 621 words · Samir Paul

Node With Highest Edge Score

August 18, 2020 · 4 min · 657 words · Samir Paul

Construct Smallest Number From DI String

August 18, 2020 · 5 min · 1011 words · Samir Paul

Count Special Integers

August 18, 2020 · 8 min · 1627 words · Samir Paul

Sort the Olympic Table

August 17, 2020 · 2 min · 346 words · Samir Paul

Choose Edges to Maximize Score in a Tree

August 17, 2020 · 4 min · 753 words · Samir Paul

Minimum Recolors to Get K Consecutive Black Blocks

August 17, 2020 · 5 min · 892 words · Samir Paul

Time Needed to Rearrange a Binary String

August 17, 2020 · 4 min · 680 words · Samir Paul

Shifting Letters II

August 17, 2020 · 4 min · 669 words · Samir Paul

Maximum Segment Sum After Removals

August 17, 2020 · 5 min · 1026 words · Samir Paul

Minimum Hours of Training to Win a Competition

August 17, 2020 · 8 min · 1630 words · Samir Paul

Largest Palindromic Number

August 17, 2020 · 4 min · 819 words · Samir Paul

Amount of Time for Binary Tree to Be Infected

August 17, 2020 · 9 min · 1819 words · Samir Paul

Find the K-Sum of an Array

August 17, 2020 · 4 min · 751 words · Samir Paul

Median of a Row Wise Sorted Matrix

August 17, 2020 · 3 min · 616 words · Samir Paul

Change Null Values in a Table to the Previous Value

August 17, 2020 · 3 min · 436 words · Samir Paul

Longest Subsequence With Limited Sum

August 17, 2020 · 7 min · 1288 words · Samir Paul

Removing Stars From a String

August 17, 2020 · 3 min · 538 words · Samir Paul

Minimum Amount of Time to Collect Garbage

August 17, 2020 · 8 min · 1667 words · Samir Paul

Build a Matrix With Conditions

August 17, 2020 · 7 min · 1473 words · Samir Paul

Count Strictly Increasing Subarrays

August 17, 2020 · 4 min · 830 words · Samir Paul

Employees With Deductions

August 17, 2020 · 3 min · 536 words · Samir Paul

Find Subarrays With Equal Sum

August 17, 2020 · 3 min · 522 words · Samir Paul

Strictly Palindromic Number

August 17, 2020 · 2 min · 269 words · Samir Paul

Maximum Rows Covered by Columns

August 17, 2020 · 6 min · 1122 words · Samir Paul

Maximum Number of Robots Within Budget

August 17, 2020 · 4 min · 695 words · Samir Paul

Check Distances Between Same Letters

August 17, 2020 · 4 min · 728 words · Samir Paul

Number of Ways to Reach a Position After Exactly k Steps

August 17, 2020 · 6 min · 1166 words · Samir Paul

Longest Nice Subarray

August 16, 2020 · 4 min · 738 words · Samir Paul

Meeting Rooms III

August 16, 2020 · 7 min · 1412 words · Samir Paul

Minimum Time to Kill All Monsters

August 16, 2020 · 9 min · 1727 words · Samir Paul

Most Frequent Even Element

August 16, 2020 · 4 min · 761 words · Samir Paul

Optimal Partition of String

August 16, 2020 · 4 min · 741 words · Samir Paul

Divide Intervals Into Minimum Number of Groups

August 16, 2020 · 3 min · 600 words · Samir Paul

Longest Increasing Subsequence II

August 16, 2020 · 9 min · 1714 words · Samir Paul

Design SQL

August 16, 2020 · 5 min · 923 words · Samir Paul

Count Days Spent Together

August 16, 2020 · 4 min · 755 words · Samir Paul

Maximum Matching of Players With Trainers

August 16, 2020 · 3 min · 549 words · Samir Paul

Smallest Subarrays With Maximum Bitwise OR

August 16, 2020 · 4 min · 827 words · Samir Paul

Minimum Money Required Before Transactions

August 16, 2020 · 3 min · 580 words · Samir Paul

Smallest Even Multiple

August 16, 2020 · 2 min · 306 words · Samir Paul

Length of the Longest Alphabetical Continuous Substring

August 16, 2020 · 4 min · 683 words · Samir Paul

Reverse Odd Levels of Binary Tree

August 16, 2020 · 7 min · 1348 words · Samir Paul

Sum of Prefix Scores of Strings

August 16, 2020 · 7 min · 1293 words · Samir Paul

Closest Fair Integer

August 16, 2020 · 3 min · 605 words · Samir Paul

Sort the People

August 16, 2020 · 5 min · 887 words · Samir Paul

Longest Subarray With Maximum Bitwise AND

August 16, 2020 · 3 min · 514 words · Samir Paul

Find All Good Indices

August 16, 2020 · 4 min · 800 words · Samir Paul

Number of Good Paths

August 16, 2020 · 6 min · 1256 words · Samir Paul

Merge Operations to Turn Array Into a Palindrome

August 16, 2020 · 4 min · 790 words · Samir Paul

Remove Letter To Equalize Frequency

August 16, 2020 · 4 min · 843 words · Samir Paul

Longest Uploaded Prefix

August 16, 2020 · 4 min · 704 words · Samir Paul

Bitwise XOR of All Pairings

August 15, 2020 · 4 min · 672 words · Samir Paul

Number of Pairs Satisfying Inequality

August 15, 2020 · 5 min · 992 words · Samir Paul

Number of Common Factors

August 15, 2020 · 5 min · 890 words · Samir Paul

Maximum Sum of an Hourglass

August 15, 2020 · 4 min · 749 words · Samir Paul

Minimize XOR

August 15, 2020 · 6 min · 1108 words · Samir Paul

Maximum Deletions on a String

August 15, 2020 · 9 min · 1884 words · Samir Paul

Maximize Total Tastiness of Purchased Fruits

August 15, 2020 · 6 min · 1068 words · Samir Paul

The Employee That Worked on the Longest Task

August 15, 2020 · 6 min · 1207 words · Samir Paul

Find The Original Array of Prefix Xor

August 15, 2020 · 3 min · 585 words · Samir Paul

Using a Robot to Print the Lexicographically Smallest String

August 15, 2020 · 6 min · 1149 words · Samir Paul

Paths in Matrix Whose Sum Is Divisible by K

August 15, 2020 · 9 min · 1790 words · Samir Paul

Minimum Split Into Subarrays With GCD Greater Than One

August 15, 2020 · 4 min · 707 words · Samir Paul

Number of Valid Clock Times

August 15, 2020 · 7 min · 1377 words · Samir Paul

Range Product Queries of Powers

August 15, 2020 · 4 min · 727 words · Samir Paul

Minimize Maximum of Array

August 15, 2020 · 4 min · 666 words · Samir Paul

Create Components With Same Value

August 15, 2020 · 6 min · 1268 words · Samir Paul

Largest Positive Integer That Exists With Its Negative

August 15, 2020 · 3 min · 583 words · Samir Paul

Count Number of Distinct Integers After Reverse Operations

August 15, 2020 · 3 min · 592 words · Samir Paul

Sum of Number and Its Reverse

August 15, 2020 · 3 min · 585 words · Samir Paul

Count Subarrays With Fixed Bounds

August 15, 2020 · 5 min · 1024 words · Samir Paul

Number of Nodes With Value One

August 15, 2020 · 4 min · 852 words · Samir Paul

Determine if Two Events Have Conflict

August 15, 2020 · 2 min · 373 words · Samir Paul

Number of Subarrays With GCD Equal to K

August 15, 2020 · 4 min · 669 words · Samir Paul

Minimum Cost to Make Array Equal

August 15, 2020 · 9 min · 1764 words · Samir Paul

Minimum Number of Operations to Make Arrays Similar

August 14, 2020 · 5 min · 1042 words · Samir Paul

Number of Distinct Binary Strings After Applying Operations

August 14, 2020 · 3 min · 533 words · Samir Paul

Odd String Difference

August 14, 2020 · 5 min · 970 words · Samir Paul

Words Within Two Edits of Dictionary

August 14, 2020 · 4 min · 688 words · Samir Paul

Destroy Sequential Targets

August 14, 2020 · 3 min · 631 words · Samir Paul

Next Greater Element IV

August 14, 2020 · 17 min · 3497 words · Samir Paul

Average Value of Even Numbers That Are Divisible by Three

August 14, 2020 · 4 min · 646 words · Samir Paul

Most Popular Video Creator

August 14, 2020 · 5 min · 1001 words · Samir Paul

Minimum Addition to Make Integer Beautiful

August 14, 2020 · 5 min · 939 words · Samir Paul

Height of Binary Tree After Subtree Removal Queries

August 14, 2020 · 7 min · 1298 words · Samir Paul

Sort Array by Moving Items to Empty Space

August 14, 2020 · 5 min · 911 words · Samir Paul

Apply Operations to an Array

August 14, 2020 · 5 min · 877 words · Samir Paul

Maximum Sum of Distinct Subarrays With Length K

August 14, 2020 · 5 min · 908 words · Samir Paul

Total Cost to Hire K Workers

August 14, 2020 · 7 min · 1450 words · Samir Paul

Minimum Total Distance Traveled

August 14, 2020 · 6 min · 1269 words · Samir Paul

Minimum Subarrays in a Valid Split

August 14, 2020 · 5 min · 928 words · Samir Paul

Number of Distinct Averages

August 14, 2020 · 6 min · 1142 words · Samir Paul

Count Ways To Build Good Strings

August 14, 2020 · 4 min · 756 words · Samir Paul

Most Profitable Path in a Tree

August 14, 2020 · 8 min · 1702 words · Samir Paul

Split Message Based on Limit

August 14, 2020 · 6 min · 1071 words · Samir Paul

Convert the Temperature

August 14, 2020 · 2 min · 349 words · Samir Paul

Number of Subarrays With LCM Equal to K

August 14, 2020 · 3 min · 574 words · Samir Paul

Minimum Number of Operations to Sort a Binary Tree by Level

August 14, 2020 · 8 min · 1659 words · Samir Paul

Maximum Number of Non-overlapping Palindrome Substrings

August 14, 2020 · 5 min · 905 words · Samir Paul

Minimum Cost to Buy Apples

August 13, 2020 · 7 min · 1343 words · Samir Paul

Customers With Strictly Increasing Purchases

August 13, 2020 · 3 min · 487 words · Samir Paul

Number of Unequal Triplets in Array

August 13, 2020 · 10 min · 2048 words · Samir Paul

Closest Nodes Queries in a Binary Search Tree

August 13, 2020 · 7 min · 1331 words · Samir Paul

Minimum Fuel Cost to Report to the Capital

August 13, 2020 · 7 min · 1350 words · Samir Paul

Number of Beautiful Partitions

August 13, 2020 · 5 min · 885 words · Samir Paul

Maximum XOR of Two Non-Overlapping Subtrees

August 13, 2020 · 7 min · 1477 words · Samir Paul

Form a Chemical Bond

August 13, 2020 · 2 min · 343 words · Samir Paul

Minimum Cuts to Divide a Circle

August 13, 2020 · 2 min · 409 words · Samir Paul

Difference Between Ones and Zeros in Row and Column

August 13, 2020 · 7 min · 1298 words · Samir Paul

Minimum Penalty for a Shop

August 13, 2020 · 4 min · 825 words · Samir Paul

Count Palindromic Subsequences

August 13, 2020 · 6 min · 1149 words · Samir Paul

Find the Pivot Integer

August 13, 2020 · 4 min · 846 words · Samir Paul

Append Characters to String to Make Subsequence

August 13, 2020 · 4 min · 675 words · Samir Paul

Remove Nodes From Linked List

August 13, 2020 · 8 min · 1588 words · Samir Paul

Count Subarrays With Median K

August 13, 2020 · 5 min · 877 words · Samir Paul

Number of Substrings With Fixed Ratio

August 13, 2020 · 3 min · 606 words · Samir Paul

Circular Sentence

August 13, 2020 · 6 min · 1160 words · Samir Paul

Divide Players Into Teams of Equal Skill

August 13, 2020 · 6 min · 1188 words · Samir Paul

Minimum Score of a Path Between Two Cities

August 13, 2020 · 8 min · 1561 words · Samir Paul

Divide Nodes Into the Maximum Number of Groups

August 13, 2020 · 8 min · 1656 words · Samir Paul

Merge Overlapping Events in the Same Hall

August 13, 2020 · 2 min · 426 words · Samir Paul

Number of Subarrays Having Even Product

August 13, 2020 · 2 min · 345 words · Samir Paul

Maximum Value of a String in an Array

August 13, 2020 · 5 min · 976 words · Samir Paul

Maximum Star Sum of a Graph

August 12, 2020 · 4 min · 738 words · Samir Paul

Frog Jump II

August 12, 2020 · 3 min · 441 words · Samir Paul

Minimum Total Cost to Make Arrays Unequal

August 12, 2020 · 5 min · 967 words · Samir Paul

Delete Greatest Value in Each Row

August 12, 2020 · 4 min · 658 words · Samir Paul

Longest Square Streak in an Array

August 12, 2020 · 5 min · 853 words · Samir Paul

Design Memory Allocator

August 12, 2020 · 9 min · 1877 words · Samir Paul

Maximum Number of Points From Grid Queries

August 12, 2020 · 6 min · 1265 words · Samir Paul

Concatenate the Name and the Profession

August 12, 2020 · 2 min · 263 words · Samir Paul

Bitwise OR of All Subsequence Sums

August 12, 2020 · 3 min · 495 words · Samir Paul

Count Pairs Of Similar Strings

August 12, 2020 · 4 min · 669 words · Samir Paul

Smallest Value After Replacing With Sum of Prime Factors

August 12, 2020 · 3 min · 480 words · Samir Paul

Add Edges to Make Degrees of All Nodes Even

August 12, 2020 · 5 min · 999 words · Samir Paul

Cycle Length Queries in a Tree

August 12, 2020 · 4 min · 749 words · Samir Paul

Check if There is a Path With Equal Number of 0’s And 1’s

August 12, 2020 · 4 min · 781 words · Samir Paul

Maximum Enemy Forts That Can Be Captured

August 12, 2020 · 5 min · 914 words · Samir Paul

Reward Top K Students

August 12, 2020 · 7 min · 1356 words · Samir Paul

Minimize the Maximum of Two Arrays

August 12, 2020 · 4 min · 808 words · Samir Paul

Count Anagrams

August 12, 2020 · 4 min · 738 words · Samir Paul

Shortest Distance to Target String in a Circular Array

August 12, 2020 · 5 min · 893 words · Samir Paul

Take K of Each Character From Left and Right

August 12, 2020 · 4 min · 836 words · Samir Paul

Maximum Tastiness of Candy Basket

August 12, 2020 · 5 min · 872 words · Samir Paul

Number of Great Partitions

August 12, 2020 · 4 min · 815 words · Samir Paul

Count the Number of K-Big Indices

August 12, 2020 · 5 min · 957 words · Samir Paul

Count the Digits That Divide a Number

August 12, 2020 · 3 min · 583 words · Samir Paul

Distinct Prime Factors of Product of Array

August 11, 2020 · 3 min · 480 words · Samir Paul

Partition String Into Substrings With Values at Most K

August 11, 2020 · 4 min · 726 words · Samir Paul

Closest Prime Numbers in Range

August 11, 2020 · 5 min · 954 words · Samir Paul

Maximum Frequency Score of a Subarray

August 11, 2020 · 5 min · 995 words · Samir Paul

Categorize Box According to Criteria

August 11, 2020 · 7 min · 1332 words · Samir Paul

Find Consecutive Integers from a Data Stream

August 11, 2020 · 4 min · 668 words · Samir Paul

Find Xor-Beauty of Array

August 11, 2020 · 2 min · 401 words · Samir Paul

Maximize the Minimum Powered City

August 11, 2020 · 7 min · 1336 words · Samir Paul

Maximum Count of Positive Integer and Negative Integer

August 11, 2020 · 6 min · 1118 words · Samir Paul

Maximal Score After Applying K Operations

August 11, 2020 · 5 min · 942 words · Samir Paul

Make Number of Distinct Characters Equal

August 11, 2020 · 4 min · 795 words · Samir Paul

Time to Cross a Bridge

August 11, 2020 · 9 min · 1892 words · Samir Paul

Number of Good Binary Strings

August 11, 2020 · 4 min · 831 words · Samir Paul

Time Taken to Cross the Door

August 11, 2020 · 3 min · 530 words · Samir Paul

Difference Between Element Sum and Digit Sum of an Array

August 11, 2020 · 4 min · 703 words · Samir Paul

Increment Submatrices by One

August 11, 2020 · 5 min · 889 words · Samir Paul

Count the Number of Good Subarrays

August 11, 2020 · 4 min · 745 words · Samir Paul

Difference Between Maximum and Minimum Price Sum

August 11, 2020 · 5 min · 928 words · Samir Paul

Count the Number of Good Subsequences

August 11, 2020 · 6 min · 1113 words · Samir Paul

Minimum Common Value

August 11, 2020 · 4 min · 824 words · Samir Paul

Minimum Operations to Make Array Equal II

August 11, 2020 · 6 min · 1166 words · Samir Paul

Maximum Subsequence Score

August 11, 2020 · 4 min · 824 words · Samir Paul

Check if Point Is Reachable

August 11, 2020 · 3 min · 605 words · Samir Paul

Alternating Digit Sum

August 11, 2020 · 3 min · 626 words · Samir Paul

Sort the Students by Their Kth Score

August 10, 2020 · 3 min · 489 words · Samir Paul

Apply Bitwise Operations to Make Strings Equal

August 10, 2020 · 3 min · 508 words · Samir Paul

Minimum Cost to Split an Array

August 10, 2020 · 6 min · 1199 words · Samir Paul

Maximum Price to Fill a Bag

August 10, 2020 · 4 min · 708 words · Samir Paul

Count Distinct Numbers on Board

August 10, 2020 · 2 min · 423 words · Samir Paul

Count Collisions of Monkeys on a Polygon

August 10, 2020 · 4 min · 765 words · Samir Paul

Put Marbles in Bags

August 10, 2020 · 4 min · 744 words · Samir Paul

Count Increasing Quadruplets

August 10, 2020 · 6 min · 1071 words · Samir Paul

Separate the Digits in an Array

August 10, 2020 · 4 min · 794 words · Samir Paul

Maximum Number of Integers to Choose From a Range I

August 10, 2020 · 8 min · 1689 words · Samir Paul

Maximize Win From Two Segments

August 10, 2020 · 5 min · 861 words · Samir Paul

Disconnect Path in a Binary Matrix by at Most One Flip

August 10, 2020 · 5 min · 948 words · Samir Paul

Maximum Number of Integers to Choose From a Range II

August 10, 2020 · 5 min · 943 words · Samir Paul

Take Gifts From the Richest Pile

August 10, 2020 · 4 min · 699 words · Samir Paul

Count Vowel Strings in Ranges

August 10, 2020 · 7 min · 1403 words · Samir Paul

House Robber IV

August 10, 2020 · 5 min · 971 words · Samir Paul

Rearranging Fruits

August 10, 2020 · 5 min · 913 words · Samir Paul

Find the Array Concatenation Value

August 10, 2020 · 5 min · 1054 words · Samir Paul

Count the Number of Fair Pairs

August 10, 2020 · 4 min · 736 words · Samir Paul

Substring XOR Queries

August 10, 2020 · 5 min · 932 words · Samir Paul

Subsequence With the Minimum Score

August 10, 2020 · 7 min · 1352 words · Samir Paul

Maximum Difference by Remapping a Digit

August 10, 2020 · 5 min · 1044 words · Samir Paul

Minimum Score by Changing Two Elements

August 10, 2020 · 4 min · 781 words · Samir Paul

Minimum Impossible OR

August 10, 2020 · 3 min · 506 words · Samir Paul

Handling Sum Queries After Update

August 9, 2020 · 12 min · 2402 words · Samir Paul

Merge Two 2D Arrays by Summing Values

August 9, 2020 · 5 min · 871 words · Samir Paul

Minimum Operations to Reduce an Integer to 0

August 9, 2020 · 4 min · 791 words · Samir Paul

Count the Number of Square-Free Subsets

August 9, 2020 · 7 min · 1473 words · Samir Paul

Find the String with LCP

August 9, 2020 · 6 min · 1250 words · Samir Paul

Left and Right Sum Differences

August 9, 2020 · 5 min · 977 words · Samir Paul

Find the Divisibility Array of a String

August 9, 2020 · 4 min · 658 words · Samir Paul

Find the Maximum Number of Marked Indices

August 9, 2020 · 4 min · 732 words · Samir Paul

Minimum Time to Visit a Cell In a Grid

August 9, 2020 · 7 min · 1480 words · Samir Paul

Split With Minimum Sum

August 9, 2020 · 6 min · 1232 words · Samir Paul

Count Total Number of Colored Cells

August 9, 2020 · 2 min · 381 words · Samir Paul

Count Ways to Group Overlapping Ranges

August 9, 2020 · 6 min · 1173 words · Samir Paul

Count Number of Possible Root Nodes

August 9, 2020 · 8 min · 1565 words · Samir Paul

Pass the Pillow

August 9, 2020 · 5 min · 1027 words · Samir Paul

Kth Largest Sum in a Binary Tree

August 9, 2020 · 9 min · 1811 words · Samir Paul

Split the Array to Make Coprime Products

August 9, 2020 · 5 min · 909 words · Samir Paul

Number of Ways to Earn Points

August 9, 2020 · 6 min · 1168 words · Samir Paul

Count the Number of Vowel Strings in Range

August 9, 2020 · 4 min · 745 words · Samir Paul

Rearrange Array to Maximize Prefix Score

August 9, 2020 · 3 min · 620 words · Samir Paul

Count the Number of Beautiful Subarrays

August 9, 2020 · 4 min · 735 words · Samir Paul

Minimum Time to Complete All Tasks

August 9, 2020 · 5 min · 934 words · Samir Paul

Design a Todo List

August 9, 2020 · 8 min · 1552 words · Samir Paul

Distribute Money to Maximum Children

August 9, 2020 · 4 min · 771 words · Samir Paul

Maximize Greatness of an Array

August 9, 2020 · 3 min · 429 words · Samir Paul

Find Score of an Array After Marking All Elements

August 8, 2020 · 9 min · 1750 words · Samir Paul

Minimum Time to Repair Cars

August 8, 2020 · 4 min · 824 words · Samir Paul

Number of Even and Odd Bits

August 8, 2020 · 4 min · 761 words · Samir Paul

Check Knight Tour Configuration

August 8, 2020 · 5 min · 959 words · Samir Paul

The Number of Beautiful Subsets

August 8, 2020 · 4 min · 834 words · Samir Paul

Smallest Missing Non-negative Integer After Operations

August 8, 2020 · 3 min · 637 words · Samir Paul

Make the Prefix Sum Non-negative

August 8, 2020 · 4 min · 673 words · Samir Paul

K Items With the Maximum Sum

August 8, 2020 · 3 min · 625 words · Samir Paul

Prime Subtraction Operation

August 8, 2020 · 6 min · 1101 words · Samir Paul

Minimum Operations to Make All Array Elements Equal

August 8, 2020 · 6 min · 1155 words · Samir Paul

Collect Coins in a Tree

August 8, 2020 · 8 min · 1515 words · Samir Paul

Minimum Time to Eat All Grains

August 8, 2020 · 8 min · 1547 words · Samir Paul

Form Smallest Number From Two Digit Arrays

August 8, 2020 · 11 min · 2156 words · Samir Paul

Find the Substring With Maximum Cost

August 8, 2020 · 7 min · 1417 words · Samir Paul

Make K-Subarray Sums Equal

August 8, 2020 · 4 min · 850 words · Samir Paul

Shortest Cycle in a Graph

August 8, 2020 · 10 min · 2121 words · Samir Paul

Find the Longest Balanced Substring of a Binary String

August 8, 2020 · 8 min · 1532 words · Samir Paul

Convert an Array Into a 2D Array With Conditions

August 8, 2020 · 4 min · 657 words · Samir Paul

Mice and Cheese

August 8, 2020 · 6 min · 1094 words · Samir Paul

Minimum Reverse Operations

August 8, 2020 · 35 min · 7433 words · Samir Paul

Beautiful Pairs

August 8, 2020 · 12 min · 2355 words · Samir Paul

Prime In Diagonal

August 8, 2020 · 4 min · 831 words · Samir Paul

Sum of Distances

August 8, 2020 · 4 min · 717 words · Samir Paul

Minimize the Maximum Difference of Pairs

August 8, 2020 · 5 min · 920 words · Samir Paul

Minimum Number of Visited Cells in a Grid

August 7, 2020 · 7 min · 1306 words · Samir Paul

Check if Object Instance of Class

August 7, 2020 · 2 min · 294 words · Samir Paul

Array Prototype Last

August 7, 2020 · 1 min · 156 words · Samir Paul

Counter

August 7, 2020 · 1 min · 172 words · Samir Paul

Sleep

August 7, 2020 · 1 min · 118 words · Samir Paul

Cache With Time Limit

August 7, 2020 · 3 min · 567 words · Samir Paul

Memoize

August 7, 2020 · 3 min · 439 words · Samir Paul

Snail Traversal

August 7, 2020 · 2 min · 421 words · Samir Paul

Flatten Deeply Nested Array

August 7, 2020 · 2 min · 392 words · Samir Paul

Array Reduce Transformation

August 7, 2020 · 2 min · 322 words · Samir Paul

Debounce

August 7, 2020 · 3 min · 462 words · Samir Paul

JSON Deep Equal

August 7, 2020 · 2 min · 377 words · Samir Paul

Function Composition

August 7, 2020 · 2 min · 257 words · Samir Paul

Memoize II

August 7, 2020 · 3 min · 429 words · Samir Paul

Group By

August 7, 2020 · 2 min · 421 words · Samir Paul

Curry

August 7, 2020 · 2 min · 343 words · Samir Paul

Convert Object to JSON String

August 7, 2020 · 2 min · 246 words · Samir Paul

Filter Elements from Array

August 7, 2020 · 2 min · 293 words · Samir Paul

Apply Transform Over Each Element in Array

August 7, 2020 · 2 min · 230 words · Samir Paul

Promise Pool

August 7, 2020 · 3 min · 560 words · Samir Paul

Promise Time Limit

August 7, 2020 · 2 min · 397 words · Samir Paul

Count the Number of K-Free Subsets

August 7, 2020 · 5 min · 1024 words · Samir Paul

Find the Width of Columns of a Grid

August 7, 2020 · 3 min · 527 words · Samir Paul

Find the Score of All Prefixes of an Array

August 7, 2020 · 4 min · 644 words · Samir Paul

Cousins in Binary Tree II

August 6, 2020 · 11 min · 2275 words · Samir Paul

Design Graph With Shortest Path Calculator

August 6, 2020 · 9 min · 1766 words · Samir Paul

Row With Maximum Ones

August 6, 2020 · 3 min · 584 words · Samir Paul

Find the Maximum Divisibility Score

August 6, 2020 · 4 min · 831 words · Samir Paul

Minimum Additions to Make Valid String

August 6, 2020 · 4 min · 726 words · Samir Paul

Minimize the Total Price of the Trips

August 6, 2020 · 8 min · 1537 words · Samir Paul

Color the Triangle Red

August 6, 2020 · 6 min · 1130 words · Samir Paul

Generate Fibonacci Sequence

August 6, 2020 · 1 min · 157 words · Samir Paul

Nested Array Generator

August 6, 2020 · 1 min · 203 words · Samir Paul

Design Cancellable Function

August 6, 2020 · 5 min · 888 words · Samir Paul

Calculate Delayed Arrival Time

August 6, 2020 · 2 min · 287 words · Samir Paul

Sum Multiples

August 6, 2020 · 6 min · 1096 words · Samir Paul

Sliding Subarray Beauty

August 6, 2020 · 5 min · 1031 words · Samir Paul

Minimum Number of Operations to Make All Array Elements Equal to 1

August 6, 2020 · 5 min · 913 words · Samir Paul

Find Maximal Uncovered Ranges

August 6, 2020 · 4 min · 683 words · Samir Paul

Maximum Sum With Exactly K Elements

August 6, 2020 · 4 min · 673 words · Samir Paul

Find the Prefix Common Array of Two Arrays

August 6, 2020 · 6 min · 1251 words · Samir Paul

Maximum Number of Fish in a Grid

August 6, 2020 · 6 min · 1175 words · Samir Paul

Make Array Empty

August 6, 2020 · 7 min · 1447 words · Samir Paul

Determine the Winner of a Bowling Game

August 6, 2020 · 5 min · 1013 words · Samir Paul

First Completely Painted Row or Column

August 6, 2020 · 5 min · 955 words · Samir Paul

Minimum Cost of a Path With Special Roads

August 6, 2020 · 9 min · 1751 words · Samir Paul

Lexicographically Smallest Beautiful String

August 6, 2020 · 6 min · 1268 words · Samir Paul

The Knight’s Tour

August 6, 2020 · 6 min · 1272 words · Samir Paul

Counter II

August 5, 2020 · 2 min · 226 words · Samir Paul

Allow One Function Call

August 5, 2020 · 2 min · 248 words · Samir Paul

Create Hello World Function

August 5, 2020 · 1 min · 133 words · Samir Paul

Find Latest Salaries

August 5, 2020 · 3 min · 476 words · Samir Paul

Count Artist Occurrences On Spotify Ranking List

August 5, 2020 · 2 min · 269 words · Samir Paul

Find the Distinct Difference Array

August 5, 2020 · 5 min · 1064 words · Samir Paul

Frequency Tracker

August 5, 2020 · 5 min · 986 words · Samir Paul

Number of Adjacent Elements With the Same Color

August 5, 2020 · 5 min · 937 words · Samir Paul

Make Costs of Paths Equal in a Binary Tree

August 5, 2020 · 4 min · 715 words · Samir Paul

Split a Circular Linked List

August 5, 2020 · 4 min · 827 words · Samir Paul

Array of Objects to Matrix

August 5, 2020 · 3 min · 636 words · Samir Paul

Throttle

August 5, 2020 · 3 min · 567 words · Samir Paul

Chunk Array

August 5, 2020 · 2 min · 295 words · Samir Paul

Number of Senior Citizens

August 5, 2020 · 3 min · 561 words · Samir Paul

Sum in a Matrix

August 5, 2020 · 3 min · 623 words · Samir Paul

Maximum OR

August 5, 2020 · 5 min · 864 words · Samir Paul

Power of Heroes

August 5, 2020 · 4 min · 665 words · Samir Paul

Find the Losers of the Circular Game

August 5, 2020 · 5 min · 881 words · Samir Paul

Neighboring Bitwise XOR

August 5, 2020 · 2 min · 413 words · Samir Paul

Maximum Number of Moves in a Grid

August 5, 2020 · 4 min · 786 words · Samir Paul

Count the Number of Complete Components

August 5, 2020 · 4 min · 826 words · Samir Paul

Immediate Food Delivery III

August 5, 2020 · 2 min · 398 words · Samir Paul

Bikes Last Time Used

August 5, 2020 · 2 min · 311 words · Samir Paul

Find Active Users

August 5, 2020 · 2 min · 408 words · Samir Paul

Extract Kth Character From The Rope Tree

August 4, 2020 · 5 min · 917 words · Samir Paul

Infinite Method Object

August 4, 2020 · 1 min · 142 words · Samir Paul

Immutability Helper

August 4, 2020 · 2 min · 425 words · Samir Paul

Make Object Immutable

August 4, 2020 · 3 min · 532 words · Samir Paul

Call Function with Custom Context

August 4, 2020 · 2 min · 296 words · Samir Paul

Event Emitter

August 4, 2020 · 4 min · 741 words · Samir Paul

Array Wrapper

August 4, 2020 · 2 min · 253 words · Samir Paul

Minimum String Length After Removing Substrings

August 4, 2020 · 4 min · 702 words · Samir Paul

Lexicographically Smallest Palindrome

August 4, 2020 · 4 min · 645 words · Samir Paul

Find the Punishment Number of an Integer

August 4, 2020 · 5 min · 1005 words · Samir Paul

Modify Graph Edge Weights

August 4, 2020 · 10 min · 2024 words · Samir Paul

Differences Between Two Objects

August 4, 2020 · 3 min · 634 words · Samir Paul

Consecutive Transactions with Increasing Amounts

August 4, 2020 · 4 min · 677 words · Samir Paul

Minimum Operations to Make Numbers Non-positive

August 4, 2020 · 5 min · 950 words · Samir Paul

Return Length of Arguments Passed

August 4, 2020 · 1 min · 113 words · Samir Paul

To Be Or Not To Be

August 4, 2020 · 2 min · 325 words · Samir Paul

Compact Object

August 4, 2020 · 2 min · 307 words · Samir Paul

Buy Two Chocolates

August 4, 2020 · 5 min · 1001 words · Samir Paul

Extra Characters in a String

August 4, 2020 · 10 min · 1976 words · Samir Paul

Maximum Strength of a Group

August 4, 2020 · 4 min · 736 words · Samir Paul

Greatest Common Divisor Traversal

August 4, 2020 · 7 min · 1445 words · Samir Paul

Remove Trailing Zeros From a String

August 4, 2020 · 2 min · 315 words · Samir Paul

Difference of Number of Distinct Values on Diagonals

August 4, 2020 · 5 min · 1022 words · Samir Paul

Minimum Cost to Make All Characters Equal

August 4, 2020 · 3 min · 539 words · Samir Paul

Maximum Strictly Increasing Cells in a Matrix

August 3, 2020 · 4 min · 816 words · Samir Paul

Find Shortest Path with K Hops

August 3, 2020 · 8 min · 1574 words · Samir Paul

Timeout Cancellation

August 3, 2020 · 3 min · 624 words · Samir Paul

Minimize String Length

August 3, 2020 · 4 min · 668 words · Samir Paul

Semi-Ordered Permutation

August 3, 2020 · 5 min · 896 words · Samir Paul

Sum of Matrix After Queries

August 3, 2020 · 4 min · 823 words · Samir Paul

Count of Integers

August 3, 2020 · 7 min · 1368 words · Samir Paul

Popularity Percentage

August 3, 2020 · 4 min · 648 words · Samir Paul

Execute Asynchronous Functions in Parallel

August 3, 2020 · 2 min · 380 words · Samir Paul

Join Two Arrays by ID

August 3, 2020 · 3 min · 452 words · Samir Paul

Add Two Promises

August 3, 2020 · 2 min · 223 words · Samir Paul

Sort By

August 3, 2020 · 1 min · 212 words · Samir Paul

Interval Cancellation

August 3, 2020 · 3 min · 565 words · Samir Paul

Calculator with Method Chaining

August 3, 2020 · 3 min · 438 words · Samir Paul

Is Object Empty

August 3, 2020 · 2 min · 220 words · Samir Paul

Count Houses in a Circular Street

August 3, 2020 · 4 min · 714 words · Samir Paul

Check if The Number is Fascinating

August 3, 2020 · 3 min · 625 words · Samir Paul

Find the Longest Semi-Repetitive Substring

August 3, 2020 · 3 min · 593 words · Samir Paul

Movement of Robots

August 3, 2020 · 6 min · 1072 words · Samir Paul

Find a Good Subset of the Matrix

August 3, 2020 · 2 min · 359 words · Samir Paul

Neither Minimum nor Maximum

August 3, 2020 · 3 min · 488 words · Samir Paul

Lexicographically Smallest String After Substring Operation

August 3, 2020 · 4 min · 779 words · Samir Paul

Collecting Chocolates

August 3, 2020 · 6 min · 1205 words · Samir Paul

Maximum Sum Queries

August 3, 2020 · 11 min · 2167 words · Samir Paul

Find the Closest Marked Node

August 2, 2020 · 6 min · 1230 words · Samir Paul

Count Occurrences in Text

August 2, 2020 · 2 min · 386 words · Samir Paul

Total Distance Traveled

August 2, 2020 · 3 min · 526 words · Samir Paul

Find the Value of the Partition

August 2, 2020 · 2 min · 412 words · Samir Paul

Special Permutations

August 2, 2020 · 4 min · 698 words · Samir Paul

Painting the Walls

August 2, 2020 · 6 min · 1074 words · Samir Paul

Count Substrings Without Repeating Character

August 2, 2020 · 3 min · 634 words · Samir Paul

Find Maximum Number of String Pairs

August 2, 2020 · 3 min · 625 words · Samir Paul

Construct the Longest New String

August 2, 2020 · 4 min · 683 words · Samir Paul

Decremental String Concatenation

August 2, 2020 · 6 min · 1183 words · Samir Paul

Count Zero Request Servers

August 2, 2020 · 5 min · 993 words · Samir Paul

Number of Beautiful Pairs

August 2, 2020 · 4 min · 801 words · Samir Paul

Minimum Operations to Make the Integer Zero

August 2, 2020 · 3 min · 449 words · Samir Paul

Ways to Split Array Into Good Subarrays

August 2, 2020 · 4 min · 640 words · Samir Paul

Robot Collisions

August 2, 2020 · 3 min · 428 words · Samir Paul

Customers with Maximum Number of Transactions on Consecutive Days

August 2, 2020 · 2 min · 381 words · Samir Paul

Count Houses in a Circular Street II

August 2, 2020 · 4 min · 755 words · Samir Paul

Bind Function to Context

August 2, 2020 · 2 min · 273 words · Samir Paul

Deep Merge of Two Objects

August 2, 2020 · 3 min · 429 words · Samir Paul

Query Batching

August 2, 2020 · 3 min · 531 words · Samir Paul

Generate Circular Array Values

August 2, 2020 · 2 min · 379 words · Samir Paul

Next Day

August 2, 2020 · 1 min · 137 words · Samir Paul

Convert JSON String to Object

August 2, 2020 · 3 min · 540 words · Samir Paul

Longest Even Odd Subarray With Threshold

August 2, 2020 · 7 min · 1357 words · Samir Paul

Prime Pairs With Target Sum

August 1, 2020 · 4 min · 765 words · Samir Paul

Continuous Subarrays

August 1, 2020 · 4 min · 680 words · Samir Paul

Sum of Imbalance Numbers of All Subarrays

August 1, 2020 · 5 min · 871 words · Samir Paul

Is Array a Preorder of Some ‌Binary Tree

August 1, 2020 · 4 min · 736 words · Samir Paul

Longest Alternating Subarray

August 1, 2020 · 4 min · 776 words · Samir Paul

Relocate Marbles

August 1, 2020 · 4 min · 684 words · Samir Paul

Partition String Into Minimum Beautiful Substrings

August 1, 2020 · 7 min · 1312 words · Samir Paul

Number of Black Blocks

August 1, 2020 · 6 min · 1093 words · Samir Paul

Find the Maximum Achievable Number

August 1, 2020 · 2 min · 385 words · Samir Paul

Maximum Number of Jumps to Reach the Last Index

August 1, 2020 · 6 min · 1117 words · Samir Paul

Longest Non-decreasing Subarray From Two Arrays

August 1, 2020 · 5 min · 889 words · Samir Paul

Apply Operations to Make All Array Elements Equal to Zero

August 1, 2020 · 5 min · 877 words · Samir Paul

Height of Special Binary Tree

August 1, 2020 · 5 min · 958 words · Samir Paul

Array Upper Bound

August 1, 2020 · 2 min · 307 words · Samir Paul

Undefined to Null

August 1, 2020 · 1 min · 207 words · Samir Paul

Convert Callback Based Function to Promise Based Function

August 1, 2020 · 3 min · 454 words · Samir Paul

Date Range Generator

August 1, 2020 · 2 min · 255 words · Samir Paul

Sum of Squares of Special Elements

August 1, 2020 · 3 min · 475 words · Samir Paul

Maximum Beauty of an Array After Applying Operation

August 1, 2020 · 4 min · 654 words · Samir Paul

Minimum Index of a Valid Split

August 1, 2020 · 5 min · 902 words · Samir Paul

Length of the Longest Valid Substring

August 1, 2020 · 4 min · 643 words · Samir Paul

Number of Unique Categories

August 1, 2020 · 5 min · 940 words · Samir Paul

Flight Occupancy and Waitlist Analysis

August 1, 2020 · 3 min · 451 words · Samir Paul

Check if Array is Good

August 1, 2020 · 4 min · 723 words · Samir Paul

July  234

Sort Vowels in a String

July 31, 2020 · 4 min · 816 words · Samir Paul

Visit Array Positions to Maximize Score

July 31, 2020 · 3 min · 575 words · Samir Paul

Ways to Express an Integer as Sum of Powers

July 31, 2020 · 4 min · 688 words · Samir Paul

Split Strings by Separator

July 31, 2020 · 3 min · 521 words · Samir Paul

Largest Element in an Array after Merge Operations

July 31, 2020 · 3 min · 534 words · Samir Paul

Maximum Number of Groups With Increasing Length

July 31, 2020 · 4 min · 657 words · Samir Paul

Count Paths That Can Form a Palindrome in a Tree

July 31, 2020 · 5 min · 940 words · Samir Paul

Count Nodes That Are Great Enough

July 31, 2020 · 6 min · 1150 words · Samir Paul

Status of Flight Tickets

July 31, 2020 · 3 min · 505 words · Samir Paul

Create Object from Two Arrays

July 31, 2020 · 2 min · 324 words · Samir Paul

Parallel Execution of Promises for Individual Results Retrieval

July 31, 2020 · 3 min · 639 words · Samir Paul

Repeat String

July 31, 2020 · 1 min · 143 words · Samir Paul

Partial Function with Placeholders

July 31, 2020 · 3 min · 431 words · Samir Paul

Number of Employees Who Met the Target

July 31, 2020 · 3 min · 449 words · Samir Paul

Count Complete Subarrays in an Array

July 31, 2020 · 6 min · 1152 words · Samir Paul

Shortest String That Contains Three Strings

July 31, 2020 · 7 min · 1279 words · Samir Paul

Count Stepping Numbers in Range

July 31, 2020 · 9 min · 1766 words · Samir Paul

Find The K-th Lucky Number

July 31, 2020 · 4 min · 645 words · Samir Paul

Factorial Generator

July 31, 2020 · 1 min · 188 words · Samir Paul

Array Prototype ForEach

July 31, 2020 · 2 min · 342 words · Samir Paul

Custom Interval

July 31, 2020 · 2 min · 397 words · Samir Paul

Account Balance After Rounded Purchase

July 31, 2020 · 3 min · 570 words · Samir Paul

Insert Greatest Common Divisors in Linked List

July 31, 2020 · 5 min · 909 words · Samir Paul

Minimum Seconds to Equalize a Circular Array

July 31, 2020 · 4 min · 843 words · Samir Paul

Minimum Time to Make Array Sum At Most x

July 30, 2020 · 10 min · 2063 words · Samir Paul

Faulty Keyboard

July 30, 2020 · 3 min · 630 words · Samir Paul

Check if it is Possible to Split Array

July 30, 2020 · 8 min · 1639 words · Samir Paul

Find the Safest Path in a Grid

July 30, 2020 · 15 min · 3185 words · Samir Paul

Maximum Elegance of a K-Length Subsequence

July 30, 2020 · 6 min · 1231 words · Samir Paul

Minimum Time Takes to Reach Destination Without Drowning

July 30, 2020 · 11 min · 2283 words · Samir Paul

Max Pair Sum in an Array

July 30, 2020 · 4 min · 726 words · Samir Paul

Double a Number Represented as a Linked List

July 30, 2020 · 5 min · 1063 words · Samir Paul

Minimum Absolute Difference Between Elements With Constraint

July 30, 2020 · 14 min · 2881 words · Samir Paul

Apply Operations to Maximize Score

July 30, 2020 · 11 min · 2291 words · Samir Paul

Minimum Relative Loss After Buying Chocolates

July 30, 2020 · 9 min · 1910 words · Samir Paul

Election Results

July 30, 2020 · 3 min · 517 words · Samir Paul

Delay the Resolution of Each Promise

July 30, 2020 · 2 min · 274 words · Samir Paul

Inversion of Object

July 30, 2020 · 2 min · 308 words · Samir Paul

Deep Object Filter

July 30, 2020 · 2 min · 402 words · Samir Paul

Count Pairs Whose Sum is Less than Target

July 30, 2020 · 4 min · 781 words · Samir Paul

Make String a Subsequence Using Cyclic Increments

July 30, 2020 · 4 min · 668 words · Samir Paul

Sorting Three Groups

July 30, 2020 · 6 min · 1137 words · Samir Paul

Number of Beautiful Integers in the Range

July 30, 2020 · 9 min · 1845 words · Samir Paul

Check if a String Is an Acronym of Words

July 30, 2020 · 5 min · 879 words · Samir Paul

Determine the Minimum Sum of a k-avoiding Array

July 30, 2020 · 3 min · 574 words · Samir Paul

Maximize the Profit as the Salesman

July 30, 2020 · 5 min · 911 words · Samir Paul

Find the Longest Equal Subarray

July 30, 2020 · 4 min · 714 words · Samir Paul

Maximal Range That Each Element Is Maximum in It

July 30, 2020 · 5 min · 973 words · Samir Paul

Furthest Point From Origin

July 29, 2020 · 3 min · 524 words · Samir Paul

Find the Minimum Possible Sum of a Beautiful Array

July 29, 2020 · 4 min · 680 words · Samir Paul

Minimum Operations to Form Subsequence With Target Sum

July 29, 2020 · 8 min · 1517 words · Samir Paul

Maximize Value of Function in a Ball Passing Game

July 29, 2020 · 6 min · 1267 words · Samir Paul

Total Traveled Distance

July 29, 2020 · 3 min · 476 words · Samir Paul

Maximum Coins Heroes Can Collect

July 29, 2020 · 6 min · 1125 words · Samir Paul

Check if Strings Can be Made Equal With Operations I

July 29, 2020 · 3 min · 627 words · Samir Paul

Check if Strings Can be Made Equal With Operations II

July 29, 2020 · 4 min · 654 words · Samir Paul

Maximum Sum of Almost Unique Subarray

July 29, 2020 · 5 min · 939 words · Samir Paul

Count K-Subsequences of a String With Maximum Beauty

July 29, 2020 · 10 min · 1928 words · Samir Paul

Count Symmetric Integers

July 29, 2020 · 4 min · 737 words · Samir Paul

Minimum Operations to Make a Special Number

July 29, 2020 · 5 min · 940 words · Samir Paul

Count of Interesting Subarrays

July 29, 2020 · 5 min · 995 words · Samir Paul

Minimum Edge Weight Equilibrium Queries in a Tree

July 29, 2020 · 11 min · 2256 words · Samir Paul

Smallest Number With Given Digit Product

July 29, 2020 · 4 min · 724 words · Samir Paul

Points That Intersect With Cars

July 29, 2020 · 3 min · 556 words · Samir Paul

Determine if a Cell Is Reachable at a Given Time

July 29, 2020 · 3 min · 567 words · Samir Paul

Minimum Moves to Spread Stones Over Grid

July 29, 2020 · 10 min · 1967 words · Samir Paul

String Transformation

July 29, 2020 · 9 min · 1814 words · Samir Paul

Sum of Remoteness of All Cells

July 29, 2020 · 8 min · 1646 words · Samir Paul

Highest Salaries Difference

July 29, 2020 · 2 min · 282 words · Samir Paul

Rolling Average Steps

July 29, 2020 · 4 min · 709 words · Samir Paul

Minimum Right Shifts to Sort the Array

July 29, 2020 · 4 min · 648 words · Samir Paul

Minimum Array Length After Pair Removals

July 29, 2020 · 5 min · 1035 words · Samir Paul

Count Pairs of Points With Distance k

July 28, 2020 · 4 min · 838 words · Samir Paul

Minimum Edge Reversals So Every Node Is Reachable

July 28, 2020 · 6 min · 1142 words · Samir Paul

Sum of Values at Indices With K Set Bits

July 28, 2020 · 3 min · 514 words · Samir Paul

Happy Students

July 28, 2020 · 4 min · 707 words · Samir Paul

Maximum Number of Alloys

July 28, 2020 · 7 min · 1365 words · Samir Paul

Maximum Element-Sum of a Complete Subset of Indices

July 28, 2020 · 5 min · 952 words · Samir Paul

Maximum Length of Semi-Decreasing Subarrays

July 28, 2020 · 4 min · 782 words · Samir Paul

Maximum Odd Binary Number

July 28, 2020 · 3 min · 442 words · Samir Paul

Beautiful Towers I

July 28, 2020 · 12 min · 2452 words · Samir Paul

Beautiful Towers II

July 28, 2020 · 9 min · 1870 words · Samir Paul

Count Valid Paths in a Tree

July 28, 2020 · 14 min · 2888 words · Samir Paul

The Wording Game

July 28, 2020 · 7 min · 1366 words · Samir Paul

Minimum Operations to Collect Elements

July 28, 2020 · 4 min · 641 words · Samir Paul

Minimum Number of Operations to Make Array Empty

July 28, 2020 · 4 min · 666 words · Samir Paul

Split Array Into Maximum Number of Subarrays

July 28, 2020 · 4 min · 669 words · Samir Paul

Maximum Number of K-Divisible Components

July 28, 2020 · 6 min · 1250 words · Samir Paul

Maximum Value of an Ordered Triplet I

July 28, 2020 · 3 min · 538 words · Samir Paul

Maximum Value of an Ordered Triplet II

July 28, 2020 · 3 min · 538 words · Samir Paul

Minimum Size Subarray in Infinite Array

July 28, 2020 · 7 min · 1368 words · Samir Paul

Count Visited Nodes in a Directed Graph

July 28, 2020 · 6 min · 1212 words · Samir Paul

Create a DataFrame from List

July 28, 2020 · 1 min · 142 words · Samir Paul

Get the Size of a DataFrame

July 28, 2020 · 2 min · 240 words · Samir Paul

Display the First Three Rows

July 28, 2020 · 1 min · 191 words · Samir Paul

Select Data

July 28, 2020 · 1 min · 147 words · Samir Paul

Create a New Column

July 27, 2020 · 1 min · 202 words · Samir Paul

Drop Duplicate Rows

July 27, 2020 · 1 min · 212 words · Samir Paul

Drop Missing Data

July 27, 2020 · 1 min · 172 words · Samir Paul

Modify Columns

July 27, 2020 · 1 min · 151 words · Samir Paul

Rename Columns

July 27, 2020 · 2 min · 233 words · Samir Paul

Change Data Type

July 27, 2020 · 1 min · 165 words · Samir Paul

Fill Missing Data

July 27, 2020 · 1 min · 170 words · Samir Paul

Reshape Data Concatenate

July 27, 2020 · 2 min · 235 words · Samir Paul

Reshape Data Pivot

July 27, 2020 · 2 min · 233 words · Samir Paul

Reshape Data Melt

July 27, 2020 · 2 min · 222 words · Samir Paul

Method Chaining

July 27, 2020 · 2 min · 266 words · Samir Paul

Minimizing Array After Replacing Pairs With Their Product

July 27, 2020 · 4 min · 719 words · Samir Paul

Calculate Orders Within Each Interval

July 27, 2020 · 2 min · 377 words · Samir Paul

Divisible and Non-divisible Sums Difference

July 27, 2020 · 3 min · 624 words · Samir Paul

Minimum Processing Time

July 27, 2020 · 4 min · 741 words · Samir Paul

Apply Operations to Make Two Strings Equal

July 27, 2020 · 8 min · 1520 words · Samir Paul

Apply Operations on Array to Maximize Sum of Squares

July 27, 2020 · 6 min · 1097 words · Samir Paul

Maximum Linear Stock Score

July 27, 2020 · 4 min · 717 words · Samir Paul

Last Visited Integers

July 27, 2020 · 5 min · 888 words · Samir Paul

Longest Unequal Adjacent Groups Subsequence I

July 27, 2020 · 4 min · 711 words · Samir Paul

Longest Unequal Adjacent Groups Subsequence II

July 27, 2020 · 10 min · 2053 words · Samir Paul

Count of Sub-Multisets With Bounded Sum

July 27, 2020 · 4 min · 705 words · Samir Paul

Find Indices With Index and Value Difference I

July 27, 2020 · 6 min · 1095 words · Samir Paul

Shortest and Lexicographically Smallest Beautiful String

July 27, 2020 · 9 min · 1798 words · Samir Paul

Find Indices With Index and Value Difference II

July 26, 2020 · 5 min · 885 words · Samir Paul

Construct Product Matrix

July 26, 2020 · 6 min · 1243 words · Samir Paul

Maximum Profitable Triplets With Increasing Prices I

July 26, 2020 · 20 min · 4189 words · Samir Paul

Minimum Sum of Mountain Triplets I

July 26, 2020 · 5 min · 891 words · Samir Paul

Minimum Sum of Mountain Triplets II

July 26, 2020 · 5 min · 891 words · Samir Paul

Minimum Number of Groups to Create a Valid Assignment

July 26, 2020 · 6 min · 1174 words · Samir Paul

Minimum Changes to Make K Semi-palindromes

July 26, 2020 · 9 min · 1912 words · Samir Paul

Number of Ways to Reach Destination in the Grid

July 26, 2020 · 6 min · 1271 words · Samir Paul

Subarrays Distinct Element Sum of Squares I

July 26, 2020 · 4 min · 648 words · Samir Paul

Minimum Number of Changes to Make Binary String Beautiful

July 26, 2020 · 3 min · 527 words · Samir Paul

Length of the Longest Subsequence That Sums to Target

July 26, 2020 · 6 min · 1216 words · Samir Paul

Subarrays Distinct Element Sum of Squares II

July 26, 2020 · 2 min · 233 words · Samir Paul

Find the K-or of an Array

July 26, 2020 · 4 min · 704 words · Samir Paul

Minimum Equal Sum of Two Arrays After Replacing Zeros

July 26, 2020 · 4 min · 742 words · Samir Paul

Minimum Increment Operations to Make Array Beautiful

July 26, 2020 · 4 min · 795 words · Samir Paul

Maximum Points After Collecting Coins From All Nodes

July 26, 2020 · 8 min · 1558 words · Samir Paul

Maximum Profitable Triplets With Increasing Prices II

July 26, 2020 · 9 min · 1877 words · Samir Paul

Market Analysis III

July 26, 2020 · 3 min · 588 words · Samir Paul

Find Champion I

July 26, 2020 · 3 min · 614 words · Samir Paul

Find Champion II

July 26, 2020 · 4 min · 778 words · Samir Paul

Maximum Score After Applying Operations on a Tree

July 26, 2020 · 7 min · 1346 words · Samir Paul

Maximum Balanced Subsequence Sum

July 26, 2020 · 8 min · 1698 words · Samir Paul

Distribute Candies Among Children III

July 26, 2020 · 4 min · 846 words · Samir Paul

Distribute Candies Among Children I

July 26, 2020 · 4 min · 846 words · Samir Paul

Distribute Candies Among Children II

July 25, 2020 · 4 min · 846 words · Samir Paul

Number of Strings Which Can Be Rearranged to Contain Substring

July 25, 2020 · 12 min · 2391 words · Samir Paul

Maximum Spending After Buying Items

July 25, 2020 · 7 min · 1387 words · Samir Paul

Maximum Strong Pair XOR I

July 25, 2020 · 10 min · 2095 words · Samir Paul

High-Access Employees

July 25, 2020 · 5 min · 990 words · Samir Paul

Minimum Operations to Maximize Last Elements in Arrays

July 25, 2020 · 6 min · 1066 words · Samir Paul

Maximum Strong Pair XOR II

July 25, 2020 · 9 min · 1767 words · Samir Paul

Number of Equal Numbers Blocks

July 25, 2020 · 7 min · 1355 words · Samir Paul

Make Three Strings Equal

July 25, 2020 · 4 min · 682 words · Samir Paul

Separate Black and White Balls

July 25, 2020 · 3 min · 614 words · Samir Paul

Maximum Xor Product

July 25, 2020 · 6 min · 1076 words · Samir Paul

Find Building Where Alice and Bob Can Meet

July 25, 2020 · 10 min · 2060 words · Samir Paul

Maximum GCD-Sum of a Subarray

July 25, 2020 · 6 min · 1191 words · Samir Paul

Find Words Containing Character

July 25, 2020 · 3 min · 431 words · Samir Paul

Maximize Area of Square Hole in Grid

July 25, 2020 · 6 min · 1272 words · Samir Paul

Minimum Number of Coins for Fruits

July 25, 2020 · 10 min · 1972 words · Samir Paul

Find Maximum Non-decreasing Array Length

July 25, 2020 · 4 min · 785 words · Samir Paul

Matrix Similarity After Cyclic Shifts

July 25, 2020 · 4 min · 664 words · Samir Paul

Count Beautiful Substrings I

July 25, 2020 · 4 min · 834 words · Samir Paul

Make Lexicographically Smallest Array by Swapping Elements

July 25, 2020 · 5 min · 872 words · Samir Paul

Count Beautiful Substrings II

July 25, 2020 · 2 min · 313 words · Samir Paul

Number of Divisible Substrings

July 25, 2020 · 10 min · 1983 words · Samir Paul

Find the Peaks

July 25, 2020 · 3 min · 512 words · Samir Paul

Minimum Number of Coins to be Added

July 25, 2020 · 4 min · 804 words · Samir Paul

Count Complete Substrings

July 24, 2020 · 8 min · 1662 words · Samir Paul

Count the Number of Infection Sequences

July 24, 2020 · 10 min · 2072 words · Samir Paul

Number of Same-End Substrings

July 24, 2020 · 6 min · 1229 words · Samir Paul

Find Common Elements Between Two Arrays

July 24, 2020 · 4 min · 716 words · Samir Paul

Remove Adjacent Almost-Equal Characters

July 24, 2020 · 3 min · 584 words · Samir Paul

Length of Longest Subarray With at Most K Frequency

July 24, 2020 · 4 min · 728 words · Samir Paul

Number of Possible Sets of Closing Branches

July 24, 2020 · 9 min · 1712 words · Samir Paul

Count Tested Devices After Test Operations

July 24, 2020 · 3 min · 610 words · Samir Paul

Double Modular Exponentiation

July 24, 2020 · 4 min · 787 words · Samir Paul

Count Subarrays Where Max Element Appears at Least K Times

July 24, 2020 · 4 min · 755 words · Samir Paul

Count the Number of Good Partitions

July 24, 2020 · 5 min · 1005 words · Samir Paul

Number of Divisible Triplet Sums

July 24, 2020 · 4 min · 677 words · Samir Paul

Find Missing and Repeated Values

July 24, 2020 · 4 min · 747 words · Samir Paul

Divide Array Into Arrays With Max Difference

July 24, 2020 · 3 min · 610 words · Samir Paul

Minimum Cost to Make Array Equalindromic

July 24, 2020 · 8 min · 1513 words · Samir Paul

Apply Operations to Maximize Frequency Score

July 24, 2020 · 8 min · 1589 words · Samir Paul

Minimum Number of Coins for Fruits II

July 24, 2020 · 8 min · 1599 words · Samir Paul

Count the Number of Incremovable Subarrays I

July 24, 2020 · 6 min · 1140 words · Samir Paul

Find Polygon With the Largest Perimeter

July 24, 2020 · 4 min · 710 words · Samir Paul

Count the Number of Incremovable Subarrays II

July 24, 2020 · 6 min · 1142 words · Samir Paul

Find Number of Coins to Place in Tree Nodes

July 24, 2020 · 8 min · 1639 words · Samir Paul

Minimum Number Game

July 24, 2020 · 5 min · 1004 words · Samir Paul

Maximum Square Area by Removing Fences From a Field

July 24, 2020 · 5 min · 1020 words · Samir Paul

Minimum Cost to Convert String I

July 24, 2020 · 8 min · 1590 words · Samir Paul

Minimum Cost to Convert String II

July 23, 2020 · 14 min · 2913 words · Samir Paul

Symmetric Coordinates

July 23, 2020 · 2 min · 399 words · Samir Paul

Most Expensive Item That Can Not Be Bought

July 23, 2020 · 2 min · 407 words · Samir Paul

Check if Bitwise OR Has Trailing Zeros

July 23, 2020 · 3 min · 533 words · Samir Paul

Find Longest Special Substring That Occurs Thrice I

July 23, 2020 · 7 min · 1286 words · Samir Paul

Find Longest Special Substring That Occurs Thrice II

July 23, 2020 · 7 min · 1288 words · Samir Paul

Palindrome Rearrangement Queries

July 23, 2020 · 15 min · 3033 words · Samir Paul

Find Peak Calling Hours for Each City

July 23, 2020 · 2 min · 381 words · Samir Paul

Calculate Compressed Mean

July 23, 2020 · 2 min · 264 words · Samir Paul

Find Third Transaction

July 23, 2020 · 2 min · 419 words · Samir Paul

Find Expensive Cities

July 23, 2020 · 2 min · 345 words · Samir Paul

Manager of the Largest Department

July 23, 2020 · 2 min · 419 words · Samir Paul

Class Performance

July 23, 2020 · 2 min · 381 words · Samir Paul

Loan Types

July 23, 2020 · 2 min · 341 words · Samir Paul

Top Three Wineries

July 23, 2020 · 4 min · 713 words · Samir Paul

Number of Self-Divisible Permutations

July 23, 2020 · 9 min · 1754 words · Samir Paul

Friday Purchases I

July 23, 2020 · 3 min · 443 words · Samir Paul

Friday Purchases II

July 23, 2020 · 3 min · 470 words · Samir Paul

Viewers Turned Streamers

July 23, 2020 · 3 min · 498 words · Samir Paul

Smallest Missing Integer Greater Than Sequential Prefix Sum

July 23, 2020 · 3 min · 638 words · Samir Paul

Minimum Number of Operations to Make Array XOR Equal to K

July 23, 2020 · 3 min · 539 words · Samir Paul

Minimum Number of Operations to Make X and Y Equal

July 23, 2020 · 5 min · 907 words · Samir Paul

Count the Number of Powerful Integers

July 23, 2020 · 6 min · 1225 words · Samir Paul

Maximum Area of Longest Diagonal Rectangle

July 23, 2020 · 3 min · 574 words · Samir Paul

Minimum Moves to Capture The Queen

July 22, 2020 · 6 min · 1119 words · Samir Paul

Maximum Size of a Set After Removals

July 22, 2020 · 4 min · 789 words · Samir Paul

Maximize the Number of Partitions After Operations

July 22, 2020 · 8 min · 1493 words · Samir Paul

Maximum Subtree of the Same Color

July 22, 2020 · 6 min · 1238 words · Samir Paul

Count Elements With Maximum Frequency

July 22, 2020 · 3 min · 545 words · Samir Paul

Find Beautiful Indices in the Given Array I

July 22, 2020 · 8 min · 1542 words · Samir Paul

Maximum Number That Sum of the Prices Is Less Than or Equal to K

July 22, 2020 · 6 min · 1189 words · Samir Paul

Find Beautiful Indices in the Given Array II

July 22, 2020 · 8 min · 1546 words · Samir Paul

Maximum Number of Intersections on the Chart

July 22, 2020 · 2 min · 259 words · Samir Paul

Divide an Array Into Subarrays With Minimum Cost I

July 22, 2020 · 3 min · 637 words · Samir Paul

Find if Array Can Be Sorted

July 22, 2020 · 5 min · 924 words · Samir Paul

Minimize Length of Array Using Operations

July 22, 2020 · 5 min · 945 words · Samir Paul

Divide an Array Into Subarrays With Minimum Cost II

July 22, 2020 · 9 min · 1810 words · Samir Paul

Minimum Number of Pushes to Type Word I

July 22, 2020 · 4 min · 744 words · Samir Paul

Count the Number of Houses at a Certain Distance I

July 22, 2020 · 5 min · 1052 words · Samir Paul

Minimum Number of Pushes to Type Word II

July 22, 2020 · 5 min · 894 words · Samir Paul

Count the Number of Houses at a Certain Distance II

July 22, 2020 · 6 min · 1183 words · Samir Paul

Maximum Number of Removal Queries That Can Be Processed I

July 22, 2020 · 7 min · 1390 words · Samir Paul