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: Coding

c++

Create Mirror of an m-ary Tree

Given an m-ary tree, write an efficient algorithm to convert the tree to its mirror. An m-ary tree (aka k-ary tree) is a tree in which each node has no more than m children. Each Read more…

By Umar Khan, 5 years ago December 24, 2020
.Net

Is .NET a Swiss army knife?

Hi. I wonder if the .NET platform is such a jack of trades, master of none. The backend is ruled by Java, on the Javascript front, in mobile Kotlin, in games and low-level things C++ Read more…

By Umar Khan, 5 years ago December 24, 2020
c++

Find minimum removals required in an array to satisfy given constraints

Given an array of integers, trim it such that its maximum element becomes less than twice the minimum, return the minimum number of removals required for the conversion. For example, The idea is straightforward and Read more…

By Umar Khan, 5 years ago December 24, 2020
Coding

Finding threading issues in code quickly

Hi, I have inherited 0.5 mio C# LOC across 180 projects written by complete lunatics. Everything is public, ReSharper has more warnings than LOC and even the unit test project itself has less than 10% Read more…

By Umar Khan, 5 years ago December 24, 2020
c++

Check whether an undirected graph is Eulerian

Given an undirected graph, check whether it has an Eulerian path or not. In other words, check if it is possible to construct a path that visits each edge exactly once. An Eulerian trail is Read more…

By Umar Khan, 5 years ago December 24, 2020
Coding

Find next greater element for every element in the array

Given an array of integers, find the next greater element for every element in the array. The next greater element of a number x is the first greater number to the right of x in Read more…

By Umar Khan, 5 years ago December 24, 2020
Coding

Why the C# Record type is important

This is indeed a nice read, but I’m not sure it fully convinces me that record types are actually important (unless you intend to use with). It sets up a problem, solves it with “conventional” Read more…

By Umar Khan, 5 years ago December 24, 2020
Coding

Converting strings to integers

Is there a way to convert strings (given by the user via the console) to integers (more specifically- strings like these: 5 * 4 + 3 or 3 + 6). What is the simplest way Read more…

By Umar Khan, 5 years ago December 24, 2020
Coding

I’m a 12 year experienced PHP Developer. Today I discovered that I don’t know how to write PHP

I applied to a PHP job and the interviewer sent me a test as following: “Write a CRUD application connecting to PostgreSQL, but please don’t use full-stack frameworks like Laravel, Symfony or Code Igniter, also Read more…

By Umar Khan, 5 years ago December 24, 2020
.Net

Is this ‘active navbar’ solution overengineered? Am I overlooking a way easier way to do this?

So my boss told me that she wants to have the ‘active’ link in the navbar to be highlighted on my .net core project web app. I thought it would be super easy. It has Read more…

By Umar Khan, 5 years ago December 24, 2020

Posts pagination

Previous 1 … 2,404 2,405 2,406 … 2,496 Next
Recent Posts
  • You can buy your Bath & Body Works favorites at Amazon, and for less
  • Amazon is selling cooling bamboo boxer briefs that rival luxury brands for under $7 apiece
  • Walmart is selling a 2-in-1 outdoor bench and picnic table for $100 that’s easy to assemble
  • The Financial Damage of War – Markets Weekly Outlook
  • Weekly Gold (XAU/USD) Forecast: 3% Slide to $5000/oz as Rate Cut Bets Tumble, FOMC Up Next
Recent Comments
    Archives
    • 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