Category: data structure
February 18, 2014
algorithms, beginner, brainfuck, c / c++, code, code library, data structure, implementation, programming languages, string
The problem is from LeetCode Online Judge . The puzzle appears to be the most-favourite interview questions. It asks you to implement an algorithm to check if a given …
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input …
A Stack is a data structure that satisfies Last-In-First-Out. It can be considered as a pile of plates where you always take the top plate (you put on last). …
Design and Implement a LRU (Least Recently Used) Cache that supports two operations i.e. get and set. get(key) – This method will retrieve the value (non-negative) of the key if …
Question: Given an array and a element, remove all instances of that value in place and return the new length. The order of elements can be changed and it …