Skip to content

Latest commit

Β 

History

History
Β 
Β 

java_coding

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

PROBLEM SOLVING:

coding banner show me the code quote

LeetCode
LeetCode is the best platform to help you enhance your skills.

This Repo contains Java Programs on following topics from LeetCode :



1D-Arrays (55/60 Questions)

  • Two Sum
  • Remove Duplicates from Sorted Array
  • Remove Element
  • Search Insert Position
  • Maximum Subarray
  • Plus One
  • Merge Sorted Array [2pointers]
  • Best Time to Buy and Sell Stock
  • Best Time to Buy and Sell Stock II
  • Two Sum II - Input array is sorted [2pointers]
  • Majority Element
  • Rotate Array
  • Contains Duplicate
  • Contains Duplicate II
  • Missing Number
  • Move Zeroes
  • Third Maximum Number
  • Find All Numbers Disappeared in an Array
  • Max Consecutive Ones
  • Fibonacci Number
  • K-diff Pairs in an Array [2pointers]
  • Array Partition I
  • Shortest Unsorted Continuous Subarray
  • Can Place Flowers
  • Maximum Product of Three Numbers
  • Maximum Average Subarray I
  • Non-decreasing Array
  • Longest Continuous Increasing Subsequence
  • Degree of an Array
  • 1-bit and 2-bit Characters
  • Find Pivot Index
  • Min Cost Climbing Stairs [dp]
  • Largest Number At Least Twice of Others
  • Maximize Distance to Closest Person
  • Fair Candy Swap [math]
  • Monotonic Array
  • Sort Array By Parity
  • X of a Kind in a Deck of Cards [math]
  • Sort Array By Parity II
  • Valid Mountain Array
  • Squares of a Sorted Array
  • Add to Array-Form of Integer
  • Find Common Characters [string]
  • Pairs of Songs With Total Durations Divisible by 60
  • Partition Array Into Three Parts With Equal Sum
  • Binary Prefix Divisible By 5 [bit]
  • Height Checker
  • Duplicate Zeros
  • Relative Sort Array
  • Find Words That Can Be Formed by Characters [string]
  • Compare Strings by Frequency of the Smallest Character [string]
  • Distance Between Bus Stops
  • Day of the Week [date][worthless_ques][10x_down]
  • Play with Chips
  • Element Appearing More Than 25% In Sorted Array
  • Find Numbers with Even Number of Digits
  • Replace Elements with Greatest Element on Right Side
  • Find N Unique Integers Sum up to Zero
  • Decompress Run-Length Encoded List
  • Rank Transform of an Array
  • Check If N and Its Double Exist

2D-Arrays (8/18 Questions)

  • Pascal's Triangle [dp]
  • Pascal's Triangle II
  • Reshape the Matrix
  • Image Smoother
  • Toeplitz Matrix
  • Positions of Large Groups [string]
  • Flipping an Image
  • Magic Squares In Grid [regex]
  • Transpose Matrix
  • Sum of Even Numbers After Queries
  • Available Captures for Rook
  • Number of Equivalent Domino Pairs
  • Minimum Absolute Difference
  • Check If It Is a Straight Line
  • Cells with Odd Values in a Matrix
  • Shift 2D Grid
  • Minimum Time Visiting All Points
  • Find Winner on a Tic Tac Toe Game

Arrays [10 Paid Questions]

  • Shortest Word Distance [Paid]
  • Maximum Distance in Arrays [Paid]
  • Fixed Point [Paid]
  • Sum of Digits in the Minimum Number [Paid]
  • High Five [Paid]
  • Two Sum Less Than K [Paid]
  • Largest Unique Number [Paid]
  • Check If a Number Is Majority Element in a Sorted Array [Paid]
  • Diet Plan Performance [Paid]
  • Array Transformation [Paid]

Strings (52 Questions)

  • Roman to Integer
  • Longest Common Prefix
  • Valid Parentheses
  • Implement strStr()
  • Count and Say
  • Length of Last Word
  • Add Binary
  • Valid Palindrome
  • Read N Characters Given Read4
  • Flip Game
  • Reverse String
  • Reverse Vowels of a String
  • Ransom Note
  • First Unique Character in a String
  • Valid Word Abbreviation
  • Add Strings
  • Number of Segments in a String
  • String Compression
  • Repeated Substring Pattern
  • Detect Capital
  • Longest Uncommon Subsequence I
  • Reverse String II
  • Student Attendance Record I
  • Reverse Words in a String III
  • Construct String from Binary Tree
  • Robot Return to Origin
  • Valid Palindrome II
  • Repeated String Match
  • Count Binary Substrings
  • To Lower Case
  • Bold Words in String
  • Rotated Digits
  • Similar RGB Color
  • Unique Morse Code Words
  • Most Common Word
  • Goat Latin
  • Buddy Strings
  • Groups of Special-Equivalent Strings
  • Reverse Only Letters
  • Long Pressed Name
  • Unique Email Addresses
  • Reorder Data in Log Files
  • Index Pairs of a String
  • Greatest Common Divisor of Strings
  • Defanging an IP Address
  • Remove Vowels from a String
  • Single-Row Keyboard
  • Compare Strings by Frequency of the Smallest Character
  • Count Substrings with Only One Distinct Letter
  • Maximum Number of Balloons
  • Split a String in Balanced Strings
  • Hexspeak

Hash Table

Linked Lists

Stack

Two Pointers

Binary Search

Tree

Depth-first Search

Breadth-first Search

Bit Manipulation

Math

Others


HackerEarth

GeeksForGeeks:

Arrays, Strings, Linked Lists, Stack & Queue, Tree, Heap, Recursion, Hashing, Graph, Greedy, Dynamic Programming, Divide and Conquer, Backtracking, Bit Magic

HackerRank

References: