Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.

Sign Up

Articles related to "macbook"

Write better code: Day 4 - Duplicate Space Edition

  • I'm going to spend 1-2 hours/day solving different algorithms.
  • Find a duplicate, Space Edition™.
  • It follows that our array has at least one integer which appears at least twice.
  • But it may have several duplicates, and each duplicate may appear more than twice.
  • We're going to run this method on our new, super-hip MacBook Pro With Retina Display™.
  • So we need to optimize for space!
  • If you want to follow along, feel free to post your answers in the comment.
  • My answers are in the comments.
  • Working on a personal project + freelancing.
  • I'm looking for additional freelance work so hit me up if you need help!
  • Used a version of binary search to do this..
  • The problem asked for space efficiency, so we are doing this in-place without creating another array.
  • It has O[1] space, and O[logn] time as we used binary search (cutting in halves).

save | comments | report | share on

Best Buy is having a huge sale on Apple tech — you can save on everything from an iPhone to an Apple Watch

  • If you want some additional help to decide which particular model you should get, we have a handy buying guide for the best MacBooks, Macs, iPads, iPhones, and Apple Watches, so you can make the best choice.
  • The MacBook Pro is Apple's most powerful laptop — so if you need a device for work, photo or video editing, and so on, then it's worth looking into getting a MacBook Pro. The MacBook Air is slightly less powerful, but it's thinner, and still a great choice for common everyday tasks like writing, web browsing, and watching video.
  • The Mac Mini is a great way to experience Apple's macOS operating system without the need for a laptop or all-in-one like the iMac. While the device is new, it is still getting discounted.

save | comments | report | share on