Skip to content

The repository consists of accepted solutions to the problems of HackerRank and LeetCode in Java. Don't forget to spread love and if you like give a ⭐️

License

Notifications You must be signed in to change notification settings

rohitkumar-rk/Competitive-Programming

Repository files navigation

Competitive Programming

Language  License  Last Commit

Overview

This repository contains accepted solutions to various problems of HackerRank and LeetCode, all coded in Java. Don't forget to give a 🌟 to show your support !!!

Contents

The problems of both HackerRank and LeetCode are grouped into various categories. Contents are currently being updated.

LeetCode

  1. Array
  2. Linked List

LeetCode June Challenge    LeetCode July Challenge

Array

# Title Solution Difficulty
1 Two Sum View Easy
4 Median of Two Sorted Arrays View Easy
11 Container With Most Water View Easy
15 3 Sum View Easy
26 Remove Duplicates from Sorted Array View Easy
33 Search in Rotated Sorted Array View Easy
34 Find First and Last Position of Element in Sorted Array View Easy
35 Search Insert Position View Easy
66 Plus One View Easy
73 Set Matrix Zeroes View Easy
74 Search a 2D Matrix View Easy
75 Sort Colors View Medium
78 Subsets View Medium
179 Largest Number View Medium
287 Find the Duplicate Number View Medium
380 Insert Delete GetRandom O(1) View Medium
485 Max Consecutive Ones View Easy
581 Shortest Unsorted Continuous Subarray View Easy
977 Squares of a Sorted Array View Easy
1295 Find Numbers with Even Number of Digits View Easy
1470 Shuffle the Array View Easy
1471 The k Strongest Values in an Array View Medium
1475 Final Prices With a Special Discount in a Shop View Easy
1476 Subrectangle Queries View Medium
1486 XOR Operation in an Array View Easy
1502 Can Make Arithmetic Progression From Sequence View Easy


Linked List

# Title Solution Difficulty
2 Add Two Numbers View Medium
19 Remove Nth Node From End of List View Medium
23 Merge k Sorted Lists View Hard
24 Swap Nodes in Pairs View Medium
25 Reverse Nodes in k-Group View Hard
141 Linked List Cycle View Medium
203 Remove Linked List Elements View Easy
206 Reverse Linked List View Easy
237 Delete Node in a Linked List View Easy
430 Flatten a Multilevel Doubly Linked List View Medium
817 Linked List Components View Medium
1290 Convert Binary Number in a Linked List to Integer View Easy