Cerinta completa You are given a pointer to the root of a binary search tree and values to be inserted into the tree. Insert the values into their appropriate position in the binary search tree and return the root of
Arrays – DS
Cerinta completa An array is a data structure that stores elements of the same type in a contiguous block of memory. In an array, , of size , each memory location has some unique index, (where ), that can be
Zurikela’s Graph
Cerinta completa Zurikela is creating a graph with a special graph maker. At the begining, it is empty and has no nodes or edges. He can perform types of operations: : Create a set of new nodes and name it
Delete duplicate-value nodes from a sorted linked list
Cerinta completa This challenge is part of a tutorial track by MyCodeSchool You are given the pointer to the head node of a sorted linked list, where the data in the nodes is in ascending order. Delete nodes and return
Yet Another KMP Problem
Cerinta completa This challenge uses the famous KMP algorithm. It isn’t really important to understand how KMP works, but you should understand what it calculates. A KMP algorithm takes a string, , of length as input. Let’s assume that the
Array and Queries
Cerinta completa Given an array, you are asked to perform a number of queries and divide the array into what are called, beautiful subsequences. The array has length . A function is defined to be a minimal possible , such
Counting On a Tree
Cerinta completa Taylor loves trees, and this new challenge has him stumped! Consider a tree, , consisting of nodes. Each node is numbered from to , and each node has an integer, , attached to it. A query on tree
Almost Equal – Advanced
Cerinta completa A Sumo wrestling championship is scheduled to be held this winter in the HackerCity where N wrestlers from different parts of the world are going to participate. The rules state that two wrestlers can fight against each other
XOR Strings
Cerinta completa In this challenge, the task is to debug the existing code to successfully execute all provided test files. Given two strings consisting of digits 0 and 1 only, find the XOR of the two strings. To know more
Components in a graph
Cerinta completa There are nodes in an undirected graph, and a number of edges connecting some nodes. In each edge, the first value will be between and , inclusive. The second node will be between and , inclusive. Given a
