Tag: C++ coding exercise
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. Merging …
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only …
You are given an array x of n positive numbers. You start at point (0,0) and moves x metres to the north, then x metres to the west, x …
This is classified as a hard puzzle: https://leetcode.com/problems/palindrome-pairs/ A palindrome string is a string whose reverse string is exactly the same, e.g. ABBA, 1, UIU… Brute Force Almost every …
Leetcode Online Judge: https://leetcode.com/problems/nim-game/ You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take …