Tag: data structures
August 31, 2020
algorithms, Binary Tree, c / c++, C/C++, code, data structure, interviews, Java, programming languages, Python
A Binary Search Tree (BST) is a commonly used data structure that can be used to search for an item in O(LogN) time. A BST has the following characteristics: …
The puzzle is from Timus Online Judge. Despite detailed description, which may be confusing, the puzzle is really simple to solve. It asks you to find out the identical …
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). …
Question : Given a sorted list represented by a directional link structure (as follows), remove the duplicates and return the new list. /** * Definition for singly-linked list. * …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/278/B The problem asks for the first sequence (sorted in alphabetic order) of character(s) that is not a substring of the given list of strings.The …