/LeetCode

This repository contains Python solutions for various LeetCode problems. Below is a brief summary of the solved problems

Primary LanguagePython

LeetCode Python Solutions

This repository contains Python solutions for various LeetCode problems. Below is a brief summary of the solved problems:

  1. Two Sum

    • Link to the problem
    • Description: Given an array of integers and a target, return indices of two numbers that add up to the target.
    • File: 1. Two Sum
  2. Print in Order

  3. Roman to Integer

  4. Longest Common Prefix

  5. Add Two Numbers

  6. Delete Node in a Linked List

  7. Permutations

  8. Longest Palindromic Substring

  9. Fibonacci Number

  10. Palindrome Number

  11. Remove Duplicates from Sorted Array II

  12. Merge Sorted Array

  13. Rotate Array

  14. Jump Game

  15. Jump Game II

    • Link to the problem
    • Description: Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of jumps.
    • File: 45. Jump Game II
  16. Best Time to Buy and Sell Stock II

  17. Insert Delete GetRandom O(1)

  18. Gas Station

    • Link to the problem
    • Description: Given gas stations with gas amounts and travel costs, find the starting station index if you can travel the circuit once clockwise with an unlimited gas tank, else return -1.
    • File: 134. Gas Station
  19. Reverse Words in a String

  20. Best Time to Buy and Sell Stock

  21. Candy

  22. ZigZag Conversion

  23. Minimum Length of String After Deleting Similar Ends

  24. Minimum Length of String After Deleting Similar Ends