豆子空间
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
Given a linked list, remove the nth node from the end of list and return its head.
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
class Solution { public: bool isPalindrome(int x) { int x1=x;
Reverse digits of an integer.
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list
Given an array of integers, return indices of the two numbers such that they add up to a specific target
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号