Tag: ios

  • Same Tree with Swift

    Problem: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical and the nodes have the same value. Solution Using Breadth-First Search traverse trees and compare nodes during traversal. /** * Definition for a binary tree node.…

  • How to hide strange unwanted Xcode 8 logs

    by

    in

    Running app in the simulator in a new shine xcode 8 noticed that there are a lot of extra information that is coming from the logs. To disable it and see regular logs do the following: 1. Click on your project name and select “Edit Scheme” 2. Add environment variable OS_ACTIVITY_MODE and set it to…