About 6,150,000 results
Open links in new tab
  1. LeetCode - The World's Leading Online Programming Learning Platform

    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. Study Plan - LeetCode

    Enhance your coding skills and prepare for job interviews with LeetCode's study plans.

  3. Two Sum - LeetCode

    A really brute force way would be to search for all possible pairs of numbers but that would be too slow. Again, it's best to try out brute force solutions just for completeness. It is from these brute force …

  4. Valid Parentheses - LeetCode

    Can you solve this real interview question? Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 1. Open …

  5. 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 …

  6. Swapping Nodes in a Linked List - LeetCode

    You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the k th node from the beginning and the k th node from the end (the list is 1-indexed). …

  7. Word Break - LeetCode

    Can you solve this real interview question? Word Break - Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more …

  8. Top K Frequent Elements - LeetCode

    Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Example 1:

  9. Start your Coding Practice - Help Center

    Code Editor LeetCode is working on providing the best online coding experience for you. In the code editor, we start you off with default code templates based on the question and your choice of …

  10. Find First and Last Position of Element in Sorted Array - LeetCode

    Can you solve this real interview question? Find First and Last Position of Element in Sorted Array - Given an array of integers nums sorted in non-decreasing order, find the starting and ending position …