Open in app

Sign In

Write

Sign In

Sudip Purkayastha
Sudip Purkayastha

7 Followers

Home

About

Nov 1, 2020

Leetcode — 23. Merge k Sorted Lists

You are given an array of k arrays/linked-lists arrays, each array/linked-list is sorted in ascending or descending order. Merge all the arrays/linked-lists into one sorted array/linked-list and return it. Example 1: Input: arrays= [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6] Explanation: The arrays/linked-lists are: [ 1->4->5, 1->3->4, 2->6 ] merging them into one sorted array/list: 1->1->2->3->4->4->5->6…

Leetcode

4 min read

Leetcode

4 min read


Jul 14, 2019

Leetcode — 117. Populating Next Right Pointers in Each Node II

Given a binary tree struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL. Initially, all next pointers are set to NULL. …

Leetcode

2 min read

Leetcode — 117. Populating Next Right Pointers in Each Node II
Leetcode — 117. Populating Next Right Pointers in Each Node II
Leetcode

2 min read


Apr 25, 2019

Leetcode — 968 — Binary Tree Cameras

Given a binary tree, we install cameras on the nodes of the tree. Each camera at a node can monitor its parent, itself, and its immediate children. Calculate the minimum number of cameras needed to monitor all nodes of the tree. Example 1: Input: [0,0,null,0,0] Output: 1 Explanation: One camera is enough to monitor all nodes if placed as shown. Example 2:

Programming

1 min read

Programming

1 min read


Published in ideahive

·Apr 18, 2019

Leetcode 99 — Recover Binary Search Tree — Constant space

Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure with constant space. Example 1: Input: [1,3,null,null,2] 1 / 3 \ 2 Output: [3,1,null,null,2] 3 / 1 \ 2 Example 2: Input: [3,1,4,null,null,2] 3 /…

Programming

1 min read

Programming

1 min read


Published in ideahive

·Apr 12, 2019

Leetcode 685 — Redundant Connection II

In this problem, a rooted tree is a directed graph such that, there is exactly one node (the root) for which all other nodes are descendants of this node, plus every node has exactly one parent, except for the root node which has no parents. The given input is a…

Leetcode Hard

2 min read

Leetcode Hard

2 min read


Published in ideahive

·Jan 18, 2019

NextWEB: Designing GUI for Web 2.0

This paper was drafted in 2007, as a part of work in Web 2.0 Abstract Designing a web application with Rich graphics like drag-and-drop, dynamic field validation, transitioning from one screen to the other without page refreshes etc. was unimaginable till sometime ago. If you have used Gmail, Google spreadsheet…

Java Script

5 min read

NextWEB: Designing GUI for Web 2.0
NextWEB: Designing GUI for Web 2.0
Java Script

5 min read


Published in ideahive

·Oct 9, 2018

JWT prevents hot linking to your media

Imagine you have some media files published (static http(s) links) on your website for targeted customers, which have been very popular recently. Other sites (search engine) started finding links of your media and putting it on their websites or people started sharing your media links with others. …

Nodejs

2 min read

JWT — Prevent hot linking to your media
JWT — Prevent hot linking to your media
Nodejs

2 min read


Published in ideahive

·Oct 3, 2018

Configure Nginx as a web server and reverse proxy for Nodejs application on Azure Windows

Introduction: NodeJs applications are “Single threaded Event Loop” i.e there is a single thread listening to all incoming requests. On receiving a request, it immediately publish it to its internal “event queue” and is ready to receive the next request. It also polls event queue for any pending tasks and processes…

Ssl

4 min read

Configure Nginx as a web server and reverse proxy for Nodejs application on Azure Windows
Configure Nginx as a web server and reverse proxy for Nodejs application on Azure Windows
Ssl

4 min read

Sudip Purkayastha

Sudip Purkayastha

7 Followers

Ideahive.me — Ideas worth spreading Linkedin: https://www.linkedin.com/in/sudipp

Following
  • Netflix Technology Blog

    Netflix Technology Blog

  • Vikram Jha

    Vikram Jha

  • Eric Elliott

    Eric Elliott

  • Anshika Bhargava

    Anshika Bhargava

  • Sean Prashad

    Sean Prashad

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech