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
Down to Zero II
Cerinta completa You are given queries. Each query consists of a single number . You can perform any of the operations on in each move: 1: If we take 2 integers and where , , then we can change 2:
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
Insert a Node at the Tail of a Linked List
Cerinta completa This challenge is part of a tutorial track by MyCodeSchool and is accompanied by a video lesson. You are given the pointer to the head node of a linked list and an integer to add to the list.
Inserting a Node Into a Sorted Doubly Linked List
Cerinta completa Given a reference to the head of a doubly-linked list and an integer, , create a new DoublyLinkedListNode object having data value and insert it at the proper location to maintain the sort. Example refers to the list
Compare two linked lists
Cerinta completa This challenge is part of a tutorial track by MyCodeSchool You’re given the pointer to the head nodes of two linked lists. Compare the data in the nodes of the linked lists to check if they are equal.
