Sitelet https://web.archive.org/web/20211217030352/https://github.com/calvinchankf/AlgoDaily
Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AlgoDaily

I believe that practising algorithms every day is a long-term investment in my life.

Languages

  • golang, python, js

Target topics

  • Binary Search
  • Binary Search Tree
  • Tree(Binary Tree, N-aray Tree, Trie, Binary Indexed Tree, Segment Tree)
  • Graph(Dijkstra, Bellman-Ford, Floyd Warshall, Union Find, Kruskal, Prim's, Minimum Spanning Tree, Topological Ordering, Tarjan...etc)
  • Stack
  • Queue
  • Array
  • Sorting
  • Heap
  • Hash Table
  • Linked list
  • Bit Operation
  • Backtracking
  • Dynamic programming(Kadan, Knapsack, Binary Lifting...etc)
  • Math (Reservoir Sampling, Rejection Sampling...etc)
  • and more...

Questions from

My other related repos

Journey

  • I have been doing this every day since September 1st, 2018
  • On Sep 17th, 2019, day 381, I joined eBay
  • On May 27th, 2021, day 1000
  • On June 1st, 2021, day 1004, I joined Facebook
const start = new Date("09/01/2018");
const now = new Date();
console.log(Math.ceil((now - start) / (1000 * 3600 * 24)));
Day Question Type From remarks
1101 Find All Groups of Farmland graph leetcode 1992
1102 Operations on Tree graph leetcode 1992
1103 Count Special Quadruplets hashtable, binary search leetcode 1995
1104 The Number of Weak Characters in the Game sort leetcode 1996
1105 First Day Where You Have Been in All the Rooms dynamic programming leetcode 1997 📌
1106 Smallest Greater Multiple Made of Two Digits graph leetcode 1999
1107 Max Points on a Line math leetcode 149 ⭐️
1108 String Transforms Into Another String hashtable leetcode 1153 📌
1109 Sum of Subarray Minimums stack leetcode 907 📌
1110 Reverse Prefix of Word string leetcode 2000
1111 Number of Pairs of Interchangeable Rectangles hashtable leetcode 1153
1112 Split Array With Same Average dynamic programming leetcode 805 📌⭐️
1113 Subtree Removal Game with Fibonacci Tree math leetcode 2005 📌🌚 not for interview
1114 Numbers At Most N Given Digit Set math leetcode 902 📌
1115 Count Number of Pairs With Absolute Difference K array leetcode 2006
1116 Find Original Array From Doubled Array hashtable, sort leetcode 2007
1117 Maximum Earnings From Taxi dynamic programming leetcode 2008 ⭐️ knapsack
1118 Final Value of Variable After Performing Operations string leetcode 2011
1119 Sum of Beauty in the Array min max arrays leetcode 2006
1120 Detect Squares hashtable, math leetcode 2013 ⭐️
1121 Average Height of Buildings in Each Segment math, hashtable leetcode 2015 ⭐️ line sweeping
1122 Maximum Number of Eaten Apples heap, math leetcode 1705 ⭐️
1123 Water and Jug Problem graph, math leetcode 365 ⭐️ BFS
1124 Maximum Difference Between Increasing Elements dynamic programming leetcode 2016
1125 Grid Game greedy leetcode 2017 ⭐️ prefix sum
1126 Brightest Position on Street line sweeping leetcode 2021
1127 Find XOR Sum of All Pairs Bitwise AND bit op leetcode 1835 📌
1128 Wrong Subtraction math codeforces 977a 📌
1129 Convert 1D Array Into 2D Array array leetcode 2022
1130 Number of Pairs of Strings With Concatenation Equal to Target hashtable leetcode 2023
1131 Maximize the Confusion of an Exam 2 pointers leetcode 2024
1132 Minimum Moves to Convert String queue leetcode 2027
1133 Find Missing Observations math leetcode 2028
1134 Minimum Number of Increments on Subarrays to Form a Target Array greedy leetcode 1526 📌
1135 Count Subarrays With More Ones Than Zeros hashtable, prefix sum leetcode 2031 📌 need a review
1136 Max Value of Equation heap leetcode 1499 ⭐️ maxheap
1137 Watermelon math codeforces 4a
1138 Way Too Long Words string codeforces 71a
1139 Two Out of Three hashtable leetcode 2032
1140 Minimum Operations to Make a Uni-Value Grid sort, math leetcode 2033 ⭐️ median works
1141 Stock Price Fluctuation heap, hashtable leetcode 2034 ⭐️ 2 heaps + hashtable reverse mapping
1142 Maximum Alternating Subarray Sum dynamic programming leetcode 2036 ⭐️ kadane's
1143 Minimum Number of Moves to Seat Everyone sort leetcode 2037
1144 Progress Bar math codeforces 71b
1145 Remove Colored Pieces if Both Neighbors are the Same Color heap leetcode 2038
1146 The Time When the Network Becomes Idle graph, math leetcode 2039 ⭐️
1147 Check if Numbers Are Ascending in a Sentence string leetcode 2042
1148 Simple Bank System array leetcode 2043
1149 Count Number of Maximum Bitwise-OR Subsets recursion leetcode 2044
1150 Sort Linked List Already Sorted Using Absolute Values linked list leetcode 2046
1151 Number of Valid Words in a Sentence string leetcode 2047
1152 Count Nodes With the Highest Score graph leetcode 2049 ⭐️
1153 Next Greater Numerically Balanced Number greedy leetcode 2048
1154 Team array codeforces 231a
1155 Next Round heap codeforces 158a
1156 Domino piling math codeforces 50a
1157 Kth Distinct String in an Array hashtable leetcode 2053
1158 Two Best Non-Overlapping Events sort, heap leetcode 2054 ⭐️ standard interview question
1159 Plates Between Candles binary search leetcode 2055 prefix sum, binary search
1160 Smallest Index With Equal Value array leetcode 2057
1161 Minimum Operations to Convert Number graph leetcode 2059
1162 Find the Minimum and Maximum Number of Nodes Between Critical Points linked list leetcode 2058
1163 Number of Spaces Cleaning Robot Cleaned graph, hashtable leetcode 2061 ⭐️
1164 Bit++ implementation codeforces 282a
1165 Count Vowel Substrings of a String string leetcode 2062
1166 Minimized Maximum of Products Distributed to Any Store binary search leetcode 2064
1167 Beautiful Matrix implememtation codeforces 263a
1168 Vowels of All Substrings math leetcode 2063 ⭐️
1169 Petya and Strings string codeforces 112a ⭐️
1170 Helpful Maths sort codeforces 339a
1171 Check Whether Two Strings are Almost Equivalent hashtable leetcode 2068
1172 Most Beautiful Item for Each Query sort, binary search leetcode 2070
1173 Time Needed to Buy Tickets array leetcode 2073
1174 Reverse Nodes in Even Length Groups linked list leetcode 2074
1175 Decode the Slanted Ciphertext math leetcode 2075
1176 Paths in Maze That Lead to Same Room graph leetcode 2077
1177 Process Restricted Friend Requests graph leetcode 2076 ⭐️
1178 Two Furthest Houses With Different Colors hashtable leetcode 2078
1179 Watering Plants math leetcode 2079
1180 Range Frequency Queries hashtable, binary search leetcode 2080
1181 Single-Threaded CPU sort, heap leetcode 1834 📌
1182 Word Capitalization string codeforces 281a
1183 Substrings That Begin and End With the Same Letter hashtable leetcode 2083
1184 Stones on the Table string codeforces 266a
1185 Boy or Girl string codeforces 236a ⭐️
1186 Count Common Words With One Occurrence hashtable leetcode 2085
1187 Minimum Number of Buckets Required to Collect Rainwater from Houses hashtable leetcode 2086
1188 Find Target Indices After Sorting Array sort, binary search leetcode 2089
1189 K Radius Subarray Averages sliding window leetcode 2090
1190 Removing Minimum and Maximum From Array greedy leetcode 2091
1191 Minimum Cost to Reach City With Discounts graph leetcode 2093 dijkstra + dynamic programming
1192 Minimum Cost Homecoming of a Robot in a Grid math leetcode 2087 math
1193 Finding 3-Digit Even Numbers array leetcode 2094 bruteforce
1194 Delete the Middle Node of a Linked List linked list leetcode 2095 linked list
1195 Step-By-Step Directions From a Binary Tree Node to Another tree leetcode 2096 LCA + DFS
1196 Bear and Big Brother binary search codeforces 791a
1197 Soldier and Bananas math codeforces 546a
1198 Subsequence of Size K With the Largest Even Sum sort, math leetcode 2098 ⭐️
1199 Find Subsequence of Length K With the Largest Sum sort leetcode 2099
1200 Find Good Days to Rob the Bank array leetcode 2100
1201 Rings and Rods hashtable leetcode 2103
1202 Sum of Subarray Ranges array leetcode 2104
1203 Watering Plants II 2 pointers leetcode 2105