Robot Bounded In CircleOn an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructions:Aug 2, 2021Aug 2, 2021
Algorithm 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.Jul 17, 2021Jul 17, 2021
Triplet Sum to ZeroGiven an array of unsorted numbers, find all unique triplets in it that add up to zero.Jul 11, 2021Jul 11, 2021
Simple String Sort Function/* Simple String Sort Function Given two arguments, a string of characters (input) and a sort string (sortStr), implement a simple sort…Jul 6, 2021Jul 6, 2021
linked list valuesWrite a function, linkedListValues, that takes in the head of a linked list as an argument. The function should return an array containing…Jun 14, 2021Jun 14, 2021
Maximum SubarrayGiven an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Jun 7, 2021Jun 7, 2021
intersectionWrite a function, intersection, that takes in two arrays, a,b, as arguments. The function should return a new array containing elements…May 31, 2021May 31, 2021