Coder Social home page Coder Social logo

nithin999989 / leetcodesolutions Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 100.0 983 KB

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub)

Java 30.08% Python 2.52% C++ 23.49% Jupyter Notebook 43.54% JavaScript 0.36%
hacktoberfest hacktoberfest2023

leetcodesolutions's Introduction

Introduction

Data Structures and Algorithms are very important for Interviews. Most of the top companies prefer to ask question related to DSA. Leetcode is a great platform to practice newer problems of DSA. It has many features like sorting questions based on difficulty level, different companies, etc. Practicing Questions are very important to get a strong hold on DSA. But what will happen if you stuck in the middle of a question?! That's where our solutions come to rescue :) We have tried to curate solutions for majority questions so that you could ace your interview rounds! ** KEEP PRACTICING, KEEP LEARNING!! **

Solutions

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub

QNo Name Link
1 Two Sum https://leetcode.com/problems/two-sum/
4 Median of Two Sorted Arrays https://leetcode.com/problems/median-of-two-sorted-arrays/
11 container-with-most-water https://leetcode.com/problems/container-with-most-water/
13 roman-to-integer https://leetcode.com/problems/roman-to-integer/
14 longest-common-prefix https://leetcode.com/problems/longest-common-prefix/
17 Letter Combinations https://leetcode.com/problems/letter-combinations-of-a-phone-number/
20 valid-parentheses https://leetcode.com/problems/valid-parentheses/
30 Substring with Concatenation of All Words https://leetcode.com/problems/substring-with-concatenation-of-all-words/
34 Find First and Last Position of Element in Sorted Array https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
35 35. Search Insert Position https://leetcode.com/problems/search-insert-position/
37 Sudoku Solver https://leetcode.com/problems/sudoku-solver/
41 First Missing Positive https://leetcode.com/problems/first-missing-positive/
42 Trapping Rain Water https://leetcode.com/problems/trapping-rain-water/
52 N-Queens II https://leetcode.com/problems/n-queens-ii/
58 Length of Last Word https://leetcode.com/problems/length-of-last-word/
81 Search in Rotated Sorted Array II https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
95 Unique Binary Search Trees https://leetcode.com/problems/unique-binary-search-trees/
96 Unique Binary Search Trees https://leetcode.com/problems/unique-binary-search-trees-ii/
100 Same Tree https://leetcode.com/problems/same-tree/
101 Symmetric Tree https://leetcode.com/problems/symmetric-tree/
102 binary-tree-level-order-traversal https://leetcode.com/problems/binary-tree-level-order-traversal/
113 path-sum-ii https://leetcode.com/problems/path-sum-ii/
118 pascals-triangle https://leetcode.com/problems/pascals-triangle/
130 surrounded-regions https://leetcode.com/problems/surrounded-regions/
134 gas-station https://leetcode.com/problems/gas-station/
136 single-number https://leetcode.com/problems/psingle-number/
153 Find Minimum in Rotated Sorted Array https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
154 Find Minimum in Rotated Sorted Array II https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/
162 Find Peak Element https://leetcode.com/problems/find-peak-element/
167 Two Sum II - Input Array Is Sorted https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/s
191 191. Number of 1 Bits
198 house-robber https://leetcode.com/problems/house-robber/
217 contains-duplicate https://leetcode.com/problems/contains-duplicate/
258 Add Digits https://leetcode.com/problems/add-digits/
278 First Bad Version https://leetcode.com/problems/first-bad-version/
852 Peak Index in a Mountain Array
1207 unique-number-of-occurrences https://leetcode.com/problems/unique-number-of-occurrences/
1295 find-num-with-even-digits https://leetcode.com/problems/find-num-with-even-digits/
1302 deepest-leaves-sum https://leetcode.com/problems/deepest-leaves-sum/
1672 richest-customer-wealth https://leetcode.com/problems/richest-customer-wealth/
2278 Percent of letter in a String https://leetcode.com/problems/percentage-of-letter-in-string/

This repository consists of all leetcode solutions keep contributing to this project

Leetcode Questions link:

1: Running Sum 1d Array- Leetcode(1480)

https://leetcode.com/problems/running-sum-of-1d-array/

2: Two Sum( Leetcode(1)

https://leetcode.com/problems/two-sum/

3: Find First and Last Position of Element in Sorted Array

https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/

4: Median of Two Sorted Arrays

https://leetcode.com/problems/median-of-two-sorted-arrays/

5: Longest Palindromic Substring

https://leetcode.com/problems/longest-palindromic-substring/

9: Palindrome Number

https://leetcode.com/problems/palindrome-number/

11: Container With Most Water

https://leetcode.com/problems/container-with-most-water/

13: Roman to Integer

https://leetcode.com/problems/roman-to-integer/

23: Merge K sorted Linked Lists

https://leetcode.com/problems/merge-k-sorted-lists/

450: Delete Node In A BST

https://leetcode.com/problems/delete-node-in-a-bst/

297: Serialize And Deserialize Binary Tree

https://leetcode.com/problems/serialize-and-deserialize-binary-tree/

543: Diameter of Binary Tree

https://leetcode.com/problems/diameter-of-binary-tree/

21: Merge Two Sorted Lists https://leetcode.com/problems/merge-two-sorted-lists/

43: Multiply Strings https://leetcode.com/problems/multiply-strings/

1838: Frequency of the most frequent element https://leetcode.com/problems/frequency-of-the-most-frequent-element/

1854: Maximum population year https://leetcode.com/problems/maximum-population-year/

1903: Largest odd number in string https://leetcode.com/problems/largest-odd-number-in-string/#:~:text=Return%20the%20largest%2Dvalued%20odd,%22%2C%20and%20%2252%22.

leetcodesolutions's People

Contributors

20481a05f2 avatar adarshanand67 avatar adi-ray avatar aksinghanp avatar anshika9946 avatar archithgandla avatar chandel124 avatar das-amit avatar daystarvirus avatar gams0318 avatar harryy0112 avatar iamnimesh avatar initial1ze avatar jayesh3734 avatar mayankmj avatar mdsahilnoob avatar mistake947 avatar naitik234 avatar nithin999989 avatar piyush-chandel avatar pmihsan avatar pranav2437 avatar pranavchaturvedi26 avatar rishabh2209 avatar riya7880 avatar saurav0523 avatar sejzz avatar surbhi162002 avatar tushar161101 avatar vaibhavx42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

leetcodesolutions's Issues

Reverse a stack using recursion

problem statement:
Write a program to reverse a stack using recursion without using any loops.

Please assign this issue to me and add a hacktoberfest label to it.

Code : Stack Using LL

Implement a Stack Data Structure specifically to store integer data using a Singly Linked List.
You need to implement the following public functions :
peek()
push()
pop()
isEmpty()

Please assign this issue to me.

Implement Queue using Linked List

Implement a Queue using Linked List.
A Query Q is of 2 Types
(i) 1 x (a query of this type means pushing 'x' into the queue)
(ii) 2 (a query of this type means to pop an element from the queue and print the poped element)

Please assign this issue to me.

Update Readme file

Upadte my readme file with good english grammar and also describe about this repository in detail

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.