About 35,400 results
Open links in new tab
  1. Dynamic Programming - LeetCode

    Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

  2. Climbing Stairs - LeetCode

    Can you solve this real interview question? Climbing Stairs - You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps Example …

  3. Dynamic Programming - Study Plan - LeetCode

    Dynamic Programming. Summary. Beginner friendly Common and essential DP patterns Learn DP in a recursive ...

  4. Edit Distance - LeetCode

    Can you solve this real interview question? Edit Distance - Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three operations permitted on a word: * Insert a character * Delete a character * Replace a character Example 1: Input: word1 = "horse", word2 = "ros" Output: 3 Explanation: horse -> rorse (replace 'h ...

  5. Discuss - LeetCode

    Imagine you're designing a network to connect cities with the least amount of cable possible. Sounds like a puzzle, right? Enter Prim's Algorithm—a clever, graph-based technique that finds the Minimum Spanning Tree (MST) to connect all points efficie

  6. Burst Balloons - LeetCode

    Can you solve this real interview question? Burst Balloons - You are given n balloons, indexed from 0 to n - 1. Each balloon is painted with a number on it represented by an array nums. You are asked to burst all the balloons. If you burst the ith balloon, you will get nums[i - 1] * nums[i] * nums[i + 1] coins. If i - 1 or i + 1 goes out of bounds of the array, then treat it as if there is a ...

  7. Coin Change - LeetCode

    Can you solve this real interview question? Coin Change - You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1. You may assume that you have an ...

  8. Longest Palindromic Subsequence - LeetCode

    Can you solve this real interview question? Longest Palindromic Subsequence - Given a string s, find the longest palindromic subsequence's length in s. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements. Example 1: Input: s = "bbbab" Output: 4 …

  9. Maximum Profit in Job Scheduling - LeetCode

    Can you solve this real interview question? Maximum Profit in Job Scheduling - We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtaining a profit of profit[i]. You're given the startTime, endTime and profit arrays, return the maximum profit you can take such that there are no two jobs in the subset with overlapping time range. If you choose a …

  10. Discuss - LeetCode

    Solved all dynamic programming (dp) problems in 7 months. Hi All,I just completed my DP adventure which I started in last June and I would like to share my findings in this post. There are total 241 dp tagged problems in LeetCode as of Today, and 26 of them are locked so I only solved the public ones.First

Refresh