SunJet LiuRobot Bounded In CircleOn an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructions:3 min read·Aug 2, 2021----
SunJet LiuAlgorithm Practice: Squares of a Sorted ArrayGiven an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.1 min read·Jul 17, 2021----
SunJet LiuTriplet Sum to ZeroGiven an array of unsorted numbers, find all unique triplets in it that add up to zero.2 min read·Jul 11, 2021----
SunJet LiuSimple String Sort Function/* Simple String Sort Function Given two arguments, a string of characters (input) and a sort string (sortStr), implement a simple sort…1 min read·Jul 6, 2021----
SunJet LiuLongest Substring with Repeating Letters after ReplacementProblem Statement1 min read·Jun 21, 2021----
SunJet Liulinked list valuesWrite a function, linkedListValues, that takes in the head of a linked list as an argument. The function should return an array containing…1 min read·Jun 14, 2021----
SunJet LiuMaximum SubarrayGiven an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.1 min read·Jun 7, 2021----
SunJet LiuintersectionWrite a function, intersection, that takes in two arrays, a,b, as arguments. The function should return a new array containing elements…1 min read·May 31, 2021----