Fancy Hints

  • Home
  • Blog
  • Coding
    • .Net
    • Csharp
    • iOS
    • CSS
    • Python
    • Java
    • Node.js
    • jquery
    • Javascript
    • Android
    • PHP
  • Tech
    • Systems
    • Digital
    • Computer Science
    • Security
    • Hosting
    • Website
    • Mobile
  • Donate

Category: Python

c++

Check whether leaf traversal of given binary trees is same or not

Given two binary trees, check whether the leaf traversals of both trees are the same or not. For example, the leaf traversals of the following binary trees are 4, 5, 6. A simple solution is Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Find Intersection Point of two Linked Lists

Given two linked lists, where the tail of the second list points to a node in the first list, find the node where both lists intersect. Consider the following linked lists where the second list’s Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Connect n ropes with minimal cost

Given n ropes of different lengths, connect them into a single rope with minimum cost. Assume that the cost to connect two ropes is the same as the sum of their lengths. For example, The Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Print complete binary search tree in increasing order

Given a level order representation of a complete binary search tree, print its elements in increasing order. For example, the level order representation of the complete BST below is [15, 10, 20, 8, 12, 18, Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Find shortest unique prefix for every word in an array

Given an array of words where no word is the prefix of another, find the shortest unique prefix to identify each word in the array uniquely. For example, The idea is to construct a Trie Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Extract Leaves of a Binary Tree into a Doubly Linked List

Given a binary tree, extract all its leaves into a doubly linked list, i.e., remove all leaf nodes from the binary tree and construct a doubly linked list out of them. The extraction should be Read more…

By Umar Khan, 5 years ago January 10, 2021
c++

Fix the Children-Sum Property in a Binary Tree

Write an efficient algorithm to fix the children-sum property in a given binary tree. The only operation allowed is an increment operation on the node’s value For a tree to satisfy the children-sum property, each Read more…

By Umar Khan, 5 years ago January 10, 2021
Coding

Count triplets which form an inversion in an array

Given an array, count the total number of triplets, which leads to an inversion. If (i < j < k) and (A[i] > A[j] > A[k]), then we can say that triplet (i, j, k) Read more…

By Umar Khan, 5 years ago January 10, 2021
Python

Webinar: “Onboarding Contributors with Code With Me, GitHub, and Tasks in JetBrains IDEs” with Steve Piercy

Let’s start 2021 with a fun one. How can tools help projects get contributors up to speed? In this webinar, Steve Piercy, a long-time maintainer with a popular open source project, shows us how he Read more…

By hadi, 5 years ago January 7, 2021
Python

Pillow: Image Processing with Python Book Sample

The Kickstarter for my latest book, Pillow: Image Processing with Python, was fully funded yesterday. I know it can be hard to decide if you want to buy a book without seeing it, so I Read more…

By hadi, 5 years ago January 5, 2021

Posts pagination

Previous 1 … 44 45 46 … 52 Next
Recent Posts
  • Bank of America revamps Sandisk stock price target
  • EUR/GBP Accelerates Through Key Support as ECB/BoE Yield Convergence Trade Reverses
  • Walmart’s 2-in-1 tablet and laptop is only $85 for 4th of July savings
  • Australia Posts Biggest Trade Deficit Since 2015 as Gold, Iron Ore Exports Slump
  • Wti Crude Oil Under Pressure with US NFP in Sharp Focus
Recent Comments
    Archives
    • July 2026
    • June 2026
    • May 2026
    • April 2026
    • March 2026
    • February 2026
    • January 2026
    • December 2025
    • November 2025
    • October 2025
    • September 2025
    • August 2025
    • July 2025
    • June 2025
    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • October 2024
    • September 2024
    • August 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • October 2023
    • September 2023
    • August 2023
    • July 2023
    • June 2023
    • May 2023
    • April 2023
    • March 2023
    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • June 2019
    • May 2019
    • July 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    Categories
    • .Net
    • Android
    • Architecture
    • BigData
    • c++
    • Cloud
    • COBOL
    • Coding
    • Computer Science
    • Cross-Platform
    • crypto
    • Cryptocurrencies
    • Csharp
    • CSS
    • Data science
    • digital
    • Email
    • English
    • Hosting
    • HTML
    • Investments
    • iOS
    • Java
    • Javascript
    • jquery
    • Machine Learning
    • Mobile
    • Node.js
    • PHP
    • Programming
    • Python
    • Security
    • SQL
    • Systems
    • Tech
    • Uncategorized
    • Web-services
    • Website
    • Home
    • Blog
    • Coding
    • Tech
    • Donate
    Hestia | Powered by WordPress