Valizada's blog

35. Search Insert Position - June day 10

June 10, 2020Leetcode / Algorithms 1 Min Read

Link to leetcode problem definition Given a sorted array and a target value, return the index if the target is found. If not, return the…

392. Is Subsequence - June day 9

June 09, 2020Leetcode / Algorithms 1 Min Read

link to leetcode problem definition Given a string s and a string t, check if s is subsequence of t. A subsequence of a string is a new…

237. Delete Node in a Linked List - June day 2

June 07, 2020Leetcode / Algorithms 1 Min Read

Linked list problem that can be solved in O(1) Write a function to delete a node (except the tail) in a singly linked list, given only…

226. Invert Binary Tree - June day 1

June 07, 2020Leetcode / Algorithms 2 Min Read

Inspiration of this problem comes from Max Howel's interview experience with Google described in this tweet. Lets jump to the problem The…

344. Reverse String - June day 4

June 07, 2020Leetcode / Algorithms 1 Min Read

link to leedcode problem definition Write a function that reverses a string. The input string is given as an array of characters char[]. Do…

1029. Two City Scheduling - June day 3

June 07, 2020Leetcode 1 Min Read

link to leetcode problem definition There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is…