SKSatyam Kumar pandeyinsatyampundi.hashnode.dev·Aug 31, 2023 · 3 min readPinely Round 2codeforces A. Channel Petya is an administrator of a channel in one of the messengers. A total of n people are subscribed to his channel, and Petya is not considered a subscriber. Petya has published a new post on the channel. At the moment of...00
SKSatyam Kumar pandeyinsatyampundi.hashnode.dev·Oct 26, 2022 · 1 min read102. Binary Tree Level Order TraversalGiven the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level). Example 1: Input: root = [3,9,20,null,null,15,7] Output: [[3],[9,20],[15,7]] Example 2: Input: root = [1] Output: [[1]...00
SKSatyam Kumar pandeyinsatyampundi.hashnode.dev·Aug 15, 2022 · 3 min readBoundary Traversal Of BinaryGiven a Binary Tree, find its Boundary Traversal. The traversal should be in the following order: Left boundary nodes: defined as the path from the root to the left-most node ie- the leaf node you could reach when you always travel preferring the le...00
SKSatyam Kumar pandeyinsatyampundi.hashnode.dev·Jun 9, 2022 · 2 min readMySQL: Customers Who Never OrderSQL Schema Table: Customers +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | +-------------+---------+ id is the primary key column for this table. Each row of this tab...00
SKSatyam Kumar pandeyinsatyampundi.hashnode.dev·Jun 9, 2022 · 1 min readMySQL: Find Customer RefereeSQL Schema Table: Customer +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | referee_id | int | +-------------+---------+ id is the primary key column for this ta...00