This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ListNode | |
| { | |
| public int val; | |
| public ListNode next; | |
| public ListNode(int val = 0, ListNode next = null) | |
| { | |
| this.val = val; | |
| this.next = next; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM public.ecr.aws/lambda/dotnet:5.0 | |
| #You can alternately also pull these images from DockerHub amazon/aws-lambda-dotnet:5.0 | |
| # Copy function code | |
| COPY net5-lambda-template/bin/Debug/net5.0 ${LAMBDA_TASK_ROOT} | |
| # Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | |
| CMD [ "net5-lambda-template::net5_lambda_template.LambdaFunction::Handler" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * A [--|--] | |
| * B [--|--] | |
| */ | |
| [Test] | |
| public void AllOfAIsLessThanB() | |
| { | |
| var nums1 = new int[]{1,2,3,4}; | |
| var nums2 = new int[]{10,11,12,13,14}; | |
| var appended = new int[] {1, 2, 3, 4, 10, 11, 12, 13, 14}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public int LengthOfLongestSubstring(string s) | |
| { | |
| if(s.Length == 0) | |
| return 0; | |
| if (s.Length == 1) | |
| return 1; | |
| var maxLength = 1; | |
| var curLength = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public string LongestPalindrome(string s) | |
| { | |
| if (s.Length == 0 || s.Length==1) | |
| return s; | |
| var longestPali = s[0].ToString(); | |
| for (var i = 0; i < s.Length; i++) | |
| { | |
| //Walk backward until you find the same character then start looking for a palindrome |
OlderNewer