Leetcode | Trevor Elwell http://trevorelwell.me/ Tue, 19 Mar 2019 23:29:46 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.3 Topological Sort https://trevorelwell.me/topological-sort/ Mon, 03 Sep 2018 16:41:16 +0000 http://trevorelwell.me/?p=886 Analysis of a leetcode question involving topological sort.

The post Topological Sort first appeared on Trevor Elwell.]]>
Leetcode | Compare Version Numbers https://trevorelwell.me/leetcode-compare-version-numbers/ Wed, 25 Jul 2018 04:08:34 +0000 http://trevorelwell.me/?p=883 I decided to do an easy one today, but it still had a few good tricks! Here is the prompt: Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate number sequences. ... Read More

The post Leetcode | Compare Version Numbers first appeared on Trevor Elwell.]]>
Leetcode | Word Ladder II https://trevorelwell.me/leetcode-word-ladder-ii/ Tue, 24 Jul 2018 04:55:47 +0000 http://trevorelwell.me/?p=879 In preparation for fulltime interviews in the coming months I’ve been doing a lot of leetcode questions. I have many feelings on whether or not this is the best way to determine someone’s coding abilities, but that’s for a different post. I wanted to share my struggles with one particular question: word ladder ii. I’m ... Read More

The post Leetcode | Word Ladder II first appeared on Trevor Elwell.]]>