- Видео 16
- Просмотров 31 244
Max DeMaio
США
Добавлен 20 фев 2011
Hi, I'm Max! I'm passionate about software, language, and business. To contact me, feel free to visit my website.
LeetCode String to Integer (atoi) | Java
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_java/src/com/eta/StrToIntAtoi.java
My links:
Website - maxwelldemaio.github.io/
GitHub - github.com/maxwelldemaio
LinkedIn - www.linkedin.com/in/maxwell-demaio/
Twitter - maxwelldemaio
My links:
Website - maxwelldemaio.github.io/
GitHub - github.com/maxwelldemaio
LinkedIn - www.linkedin.com/in/maxwell-demaio/
Twitter - maxwelldemaio
Просмотров: 3 457
Видео
LeetCode Reverse Linked List | Java
Просмотров 433 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_java/src/com/eta/ReverseLinkedList.java My links: Website - maxwelldemaio.github.io/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Twitter - maxwelldemaio
MySQL Update and Delete Statement Tutorial
Просмотров 343 года назад
Link to the repository: github.com/maxwelldemaio/databaseManagement/blob/master/ordersDelete.sql Link to my blog post: maxwelldemaio.github.io/blog/2021/07/14/mysqlCrudBasics.html My links: Website - maxdemaio.herokuapp.com/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-d... Twitter - maxwelldemaio
MySQL Insert Statement Tutorial
Просмотров 313 года назад
Link to the repository: github.com/maxwelldemaio/databaseManagement/blob/master/ordersInsert.sql My links: Website - maxdemaio.herokuapp.com/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Twitter - maxwelldemaio
MySQL Create Statement Tutorial
Просмотров 553 года назад
Link to the repository: github.com/maxwelldemaio/databaseManagement/blob/master/Module3/module3ExtraPracticeProblems.sql My links: Website - maxdemaio.herokuapp.com/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Twitter - maxwelldemaio
LeetCode Number of 1 Bits | Python
Просмотров 733 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_py/HammingWeight.py My links: Website - maxdemaio.herokuapp.com/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Twitter - maxwelldemaio
LeetCode Hamming Distance | Python
Просмотров 1243 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_py/HammingDistance.py My links: Website - maxdemaio.herokuapp.com/ GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Twitter - maxwelldemaio
LeetCode Min Stack | JavaScript
Просмотров 2163 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_js/MinStack2.js My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/ Useful video to learn function prototyping (part of a Net Ninja series): ruclips.net/video/4jb4AYEyhRc/видео.html
LeetCode Longest Common Prefix | JavaScript
Просмотров 3713 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_js/LongestCommonPrefix2.js My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
LeetCode First Bad Version | JavaScript
Просмотров 1,4 тыс.3 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_js/FirstBadVersion.js My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
LeetCode Contains Duplicate | JavaScript
Просмотров 2,7 тыс.3 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_js/Duplicates.js My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
LeetCode Remove Duplicates from Sorted Array | JavaScript
Просмотров 973 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_js/RemoveDuplicates.js My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
LeetCode Subarray Sum Equals K Solution Explained | Python
Просмотров 1253 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_py/SubarraySumK.py My links: Website - maxdemaio.herokuapp.com/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
Making an Excel Ribbon App | VBA
Просмотров 22 тыс.3 года назад
Link to the all the code in this video: github.com/maxwelldemaio/demos/tree/main/excel-app-tut Example of a finished Excel ribbon application: github.com/maxwelldemaio/vb-add My links: Website - maxwelldemaio.github.io/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
LeetCode Reverse String Solution Explained | Python
Просмотров 404 года назад
Link to the solution: github.com/maxwelldemaio/practiceProblems/blob/master/leetcode_py/ReverseString.py My links: Website - maxwelldemaio.github.io/ Twitter - maxwelldemaio GitHub - github.com/maxwelldemaio LinkedIn - www.linkedin.com/in/maxwell-demaio/
Thanks that's great
My brother I know it's been 3 years but this is supposed to be in constant time O(1). Your implementation of the getMin is O(n) afaik
Yeah I think they may have changed the problem description over the years. In order for all the operations to be O(1) it looks like you'd just need to make sure when you push you're keeping track of the min value in the stack ~ leetcode.com/problems/min-stack/solutions/49010/clean-6ms-java-solution/
This is a really nice and easy to follow video, it works wonderfully in Excel. Unfortunately I wanted to use it in PowerPoint. You can do all the steps, but when you open the module from ppa/ppam (which is similar to xla) file it doesn't get loaded into the modules. Does anyone have any idea how to solve this issue? Thank you in advance!
I wanted to make the Macro (Excel Add-In) a part of the customized ribbon exactly following the steps suggested by you. Despite that I have loaded the .xlam file, I am unable to find it listed under the Customize the Ribbon >> Choose Command from >> macros. I have tried so many things but not worthy. Please help to resolve.
Thanks I just got my first VBA job thanks to this!!!
What's the job description, what does it entail?
He Max, thank you for this video. I'm trying to make a Macro on Ribbon that hides certain rows. As a "regular" button on the excel it works, but when I try doing it on the Ribbon it does not work. Any advice or would you be keen to make a video about it?
Hey! Without looking at the code for the Macro I'm not sure what the issue would be. But, if you have it working as a "regular" button that points to your VBA code that's a great start. My thought is to make sure that the button on the Ribbon properly points to the VBA subroutine you are trying to execute. I'd give it a shot with a couple smaller examples that maybe just change the color of a cell to make sure your Ribbon works properly 🤔 It's been a while since I've done VBA but hope this helps.
Bro, The quality is exceptional. Why did you stop! It's awesome
Thanks so much! I appreciate the positive feedback 😁 Mostly work/side projects have been occupying my time. But I would love to get back into making videos soon!
@@maxwelldemaio yep would love to see more problems. Earned a sub. Cheers! :)
Hey Max, Your video is supposed to explain how to customise the ribbon and assign new menu items to a code like a macro or something. But then you spend most of your video explaining your sub routines which is not the purpose ... What be great to focus on the subject, kr
Hey there, I did explain how to make an Excel ribbon application. The options link to sub-routines which you can customize for yourself. If you didn't enjoy the video, feel free to find a different one on RUclips.
@@maxwelldemaioIgnore this guy brother. I love your content. Btw, I know the answer to this is no but is there a git that can help me do this for Mac machines? Thanks
@@theexcelproject6973 When you say Git do you mean a GitHub project? If so, I do have an open-source repository with a bunch of useful macros I have programmed: github.com/maxdemaio/vb-add
good
I like how you setup the debugger so it's easy to see how things change. Do you have a video on how you set that up? or one that you referenced? Thanks in advance
I think in VS-Code you should be able to debug any standalone JavaScript file! As long as you set break points, you'll be able to analyze the call stack and local/global variables 😁
how can you return the highest value in the table? like if you had 6 counts(highest) of the number 5, how would you return the number 5?
how does the array get into hTable, it is empty
The way the array gets into the hash table / object / dictionary (whatever you'd like to call it by) is on line 10. We set a key equal to the current item in the array during the for loop and the value to 1. If we ever find a key (item in the array) we've seen already (present in the hash table), we return true. It doesn't matter what the value is bc we're just indexing on keys so I just put the value to 1 😁
in line number 10 why you adding 1 in the end @@maxwelldemaio
Super simple explanation. I was confused as hell between hmaps and tables and when you said object it clicked for some reason today. I hope this saves me on my interview tomorrow lol Cheers!
Great work! I have been looking for this for a long time. Thanks. is it possible to use this add-in on different computers?
If yes, could you please share the steps or share a video of that too.
Hey! Yes you can use it on different computers. You could move the xla file across devices as needed 😁 Basically once the file has been moved, I'd repeat the steps shown here to get it to work!
@@maxwelldemaio Thanks, it was very helpful.
bravo *clap clap*
In above example this is factory function or normal function which returns function
cant understand at the end when you do s.charAt(i++), why it is not s.charAt(i)?
This is post incrementing, so after the character at index i is fetched, it will increase i by 1. This is so it iterates over all characters!
@@maxwelldemaio ok i think i get it, so you are actually getting charAt(i), and after that you icnrement i++? didnt know it was possible to do it like that in the same statement
@@Satenc0 Yes that's correct!!
@@maxwelldemaio yess it was nice explanation, was only able to understand the solution with your code, would be nice if you make a video explaining also exercise #10 on leetcode, struggling alot on that one, and the explanations i find, cant really understand
thanks for the video man
I have created an excel add-in and I want to use it on other PC too. How can I keep the same UI installed on other PC while adding my add-in?
To my knowledge there isn't a way to do so. You can export your ribbon from the PC that has the add-in. However, within that exported file will be hardcoded filepaths to the Macros on that PC (you can check by opening it in a text-editor). You can import the exportedUI file to your new PC, but none of the buttons will work because they will be pointing to incorrect filepaths. You can always move your macros onto the new PC, and just take a little time to remake the ribbon.
Is there a way to display a "ribbon app" only for specific workbook? I want to have certain macros that are only related for specific project.
Good question, that one I'm not sure of. However, what I think would be better is if you only want certain subroutines for a workbook, you should save it as a .XLSM file (macro-enabled). This way you can go into the coding environment, code your subroutines, and actually keep them saved for the next time you open the workbook!
love you bro just save my work hahahaha
Do yo know of any tools that help you design a ribbon visually? I can create buttons, but it would be nice to do more advanced controls like dropdowns, checkboxes, etc while also picking icons visually.
Hi, Tim! To my knowledge, I know you change change the icons of your subroutines by going to the "Customize the Ribbon" setting. As far as drop downs go, that would actually be a type of form the user would interact with. What I've done in the past is displaying a Userform to the user to interact and upon submission the subroutine will execute with the selected parameters!
If you'd like an example of capturing user input, checkout my VBA ribbon application I created called "vb-add" and particularly the subroutine called "rowSpecifyClean" in "Module1.bas" here: github.com/maxwelldemaio/vb-add
@@maxwelldemaio Thank you so much. I appreciate it.
Well articulated and easy to follow. Thank you sir.
This really helped me, thank you
Hey all! Quick correction, the decimal value of the character '9' is 57 (misspoke and said 58). Also, when explaining how you'd obtain the decimal value of a character I meant to say the character '6' minus the character '0' would result in the decimal value of 6. Thanks and have a great day! -Max
Great video <3 ;
Quick correction: when I said "instantiated" I should have said "initialized". Explanation of declaration, initialization, and instantiation: stackoverflow.com/questions/2330767/what-is-the-difference-between-instantiated-and-initialized/11423017. Also, another constraint on the problem is that there will be between 0 and 5000 nodes. Anyways, hope you enjoy the data structure/algorithm video!! Have a sweet day. -Max
Quick clarification on my comment on delete statements: The DELETE statement deletes rows from tbl_name and returns the number of deleted rows. If you don't specify a primary key in the main WHERE clause, all rows are deleted. However, the DROP statement when used on a table removes the table definition and all table data. Just wanted to point out the differences between these two DML/DDL statements. That's it! Have a great day. -Max
Awesome explanation, thank you
Update: Hey everyone! With MS 365, in order to customize the ribbon you can actually right click anywhere in a ribbon tab and click "Customize the Ribbon." Also, while in "Customize the Ribbon" you can export your ribbon as a "exportedUI" file so you can re-import it later on or share with others to import. Keep in mind, the ribbon file will have the hard coded file paths where your functions live. This means, if you wanted to share your ribbon application you should share the "xla" file and not the ribbon file since the filepath of the functions will be specific to your machine. However, if you're in a business setting with a shared drive, if everyone has access to the folder where the functions live you will be A-Okay to share the "exportedUI" file.
How do I add/link the custom ribbon settings inside the xla file in a global manner, as if its built into the xla file, not referencing it locally or by having to import those settings separately? I want to be able to share my add-in file to a coworker with the custom ribbon and when they enable it in their add-ins, the custom ribbon will appear automatically, as if its a part of the add-in itself. Thank you
@@tylerharper819I was also hoping to do this, any idea how?
Sweet video! 😄
Thank you!
Hey guys, at the end I said "constant time" however what I meant to say was constant storage. Time complexity of this algorithm would just be the time complexity of binary search, and memory would be constant!
This looks complicated hahaha 🤣
Promise it's not as bad as it seems! 😁