Divisibility

Cerinta completa Two positive integers and are given. is decimal representation of integer . Lets define . For example, if : For each query you will be given two integers and that define a substring equal to . Your task

Kundu and Tree

Cerinta completa Kundu is true tree lover. Tree is a connected graph having N vertices and N-1 edges. Today when he got a tree, he colored each edge with one of either red(r) or black(b) color. He is interested in

Jesse and Cookies

Cerinta completa Jesse loves cookies and wants the sweetness of some cookies to be greater than value . To do this, two cookies with the least sweetness are repeatedly mixed. This creates a special combined cookie with: sweetness Least sweet

Delete a Node

Cerinta completa This challenge is part of a tutorial track by MyCodeSchool and is accompanied by a video lesson. Delete the node at a given position in a linked list and return a reference to the head node. The head

Jenny’s Subtrees

Cerinta completa Jenny loves experimenting with trees. Her favorite tree has nodes connected by edges, and each edge is unit in length. She wants to cut a subtree (i.e., a connected part of the original tree) of radius from this

Cycle Detection

Cerinta completa A linked list is said to contain a cycle if any node is visited more than once while traversing the list. Given a pointer to the head of a linked list, determine if it contains a cycle. If