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.
Can you solve this real interview question? Intersection of Two Linked Lists - Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, ...
1006-Clumsy-Factorial/cpp-1006 CMakeLists.txt main.cpp 1007-Minimum-Domino-Rotations-For-Equal-Row 1008-Construct-Binary-Search-Tree-from-Preorder-Traversal 1009-Complement-of-Base-10-Integer 1010-Pairs-of-Songs-With-Total-Durations-Divisible-by-60 1011-Capacity-To-Ship-Pa...
I will put my solutions toLeetcode Problemsin this repo. Every problem will be solved in C++; part of the problems will be solved in Java also. I will try my best to support more language in the future :) Please feel free to contact me if you have any questions with this repo:) e...
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row. ...
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times) with the following restrictions: You may not engage in multiple transactions at the same time (ie, you must sell the stock before...
给定一个整数数组和一个目标值,找出数组中和为目标值的两个数。 你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用。 示例: 给定nums = [2, 7, 11, 15], target = 9 因为nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] ...
My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:) 我的Leetcode解答。所有的问题都支持C++语言,一部分问题支持Java语言。近乎所有问题都会提供多个算
My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:) 我的Leetcode解答。所有的问题都支持C++语言,一部分问题支持Java语言。近乎所有问题都会提供多个算