Coding
How do you track a dead code?
I am working with some terrible written online system (Laravel framework), and I see some of the code that is highly possible to be dead one. The problem is that I cannot trust that much Read more…
I am working with some terrible written online system (Laravel framework), and I see some of the code that is highly possible to be dead one. The problem is that I cannot trust that much Read more…
If your coding standards takes 3 minutes to run in CI, then you’ve messed up your build configuration. We run php lint, cs, and phpstan in under 2 minutes on a big project and in Read more…
I am making an app where I am setting up a socket with UdpClient. I set the socket to Dgram and udp, I set the socket to reuse address and I bind to my NIC’s Read more…
Hello , I am currently deciding between WinAppDriver or Ranorex to build a test automation suite for a complex desktop app which has a fair share of winforms and WPF elements. The company I am Read more…
Construct an expression tree from a given postfix notation and print the infix notation. The binary expression tree is a binary tree whose leaves are operands, such as constants or variable names, and the other Read more…
Given a circularly sorted array of integers, find a pair with a given sum. Assume there are no duplicates in the array, and the rotation is in an anti-clockwise direction around an unknown pivot. For Read more…
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…
Hello, I am working on a problem that would like for me to return the best sum of x numbers given a list of them, without exceeding a limit. The subset is a variable, so Read more…
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…
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…