forLập Trình Viênlaptrinhvien.hashnode.dev·Jun 11, 2023[Javascript] Series học thuật toán bằng Javascript phần 1Hi anh em, chúc anh em một ngày làm việc hiệu quả và tràn đầy năng lượng. Hôm nay mình sẽ chia sẻ kiến thức về thuật toán và phần thực hành viết bằng Javascript. Mục đích của bài viết này là để giúp cho anh em mới học front-end có thể hiểu về thuật t...DiscussJavaScript
Abhinandan Mishraabhinandanmishra1.hashnode.dev·Jan 7, 2023Leetcode Daily Problem - 7 Jan 2023Problem Name - Gas Station Problem Link - https://leetcode.com/problems/gas-station/ Solution 1 /** * @param {number[]} gas * @param {number[]} cost * @return {number} */ var canCompleteCircuit = function(gas, cost) { const sum1 = gas.reduce(...Discuss·3 likes·114 readsleetcode
Abhinandan Mishraabhinandanmishra1.hashnode.dev·Jan 4, 2023Leetcode Daily Problem - 4 Jan 2023Problem Name - Minimum Rounds to Complete All Tasks Problem Link - https://leetcode.com/problems/minimum-rounds-to-complete-all-tasks/description/ Solution 1 /** * @param {number[]} tasks * @return {number} */ var minimumRounds = function(tasks) {...Discuss·10 likes·84 readsJavaScript
Abhinandan Mishraabhinandanmishra1.hashnode.dev·Jan 3, 2023Leetcode Daily Problem - 3 Jan 2023Problem Name - Delete Columns to Make Sorted Problem Link - https://leetcode.com/problems/delete-columns-to-make-sorted/description/ /** * @param {string[]} strs * @return {number} */ var minDeletionSize = function(strs) { const rows = strs.le...Discuss·10 likes·72 readsjavascript-algorithms