Skip to content

Life In Code

Programming, Engineering, and My Life

  • Home
  • Programming
  • Engineering
  • Life
  • About Me

Month: March 2014

[LeetCode] Gas Station (Java)

July 24, 2014March 18, 2014 by decoet

There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations. Return the starting gas station’s index … Read more [LeetCode] Gas Station (Java)

Categories Programming Leave a comment

Recent Posts

  • [LeetCode] Queue Reconstruction by Height
  • [LeetCode] Median of Two Sorted Arrays (More elegant solution)
  • Reading Notes for [All Abroad the Databus! – Linkedin’s Scalable Consistent Change Data Capture Platform]
  • Reading Notes for [On Brewing Fresh Espresso: LinkedIn’s Distributed Data Serving Platform]
  • Reading Notes for [Kafka, a Distributed Messaging System for Log Processing]

Recent Comments

  • Backtracking | 1 – Lets Code on [LeetCode] Letter Combinations of a Phone Number (Java)
  • java - Comment trouver le nombre minimum de sauts pour atteindre la fin du tableau en O(n) fois on [LeetCode] Jump Game and Jump Game II (Java)
  • java - Cómo encontrar el mínimo número de saltos para llegar a la final de la matriz en O(n) tiempo on [LeetCode] Jump Game and Jump Game II (Java)
  • [LeetCode] 3Sum 三数之和,Two Sum,Two Sum,Two Sum,Two Sum – 数据结构与算法 on [LeetCode] Two Sum, 3 Sum, 3 Sum closest and 4 Sum (Java)
  • 87. Scramble String – Leetcode With Me on [LeetCode] Scramble String (Java)

Archives

  • October 2016
  • September 2016
  • June 2016
  • March 2016
  • August 2015
  • August 2014
  • July 2014
  • June 2014
  • April 2014
  • March 2014
  • February 2014
  • November 2013
  • October 2013
  • September 2013

Categories

  • Life
  • Programming
  • System Design

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2022 Life In Code • Powered by GeneratePress