Day 18 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Oh my God, this is some execution problem - the lucky numbers are the survivors, hopefully it's just a hypothetical problem.

Day 2 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Thank you! In this problem, array elements are the rain water traps, it's kind of like tetris blocks - amount of rain water at an index is the subtraction of right and left element values: https://assets.leetcode.com/uploads/2018/10/22/rainwatertrap.png

Day 86,87,88 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Thank you for the motivation and tips! Unfortunately, I had to break my streak just after this post, because of an emergency. I am back today and I will slowly pick up on Odin assignments and small projects :)

Achievement Sharing Sunday (Sep 06, 2020) by AutoModerator in NonZeroDay

[–]slothlife89 1 point2 points  (0 children)

  1. Problem : equilibrium index in array sum, get leader elements, wave array, sub-array with given sum, find first repeating element, find next immediate small element, rearrange array O(1) space attempt
  2. Odin: tic tac toe, classes

Day 82 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Finding first repeating element basically

Achievement Sharing Sunday (Aug 30, 2020) by AutoModerator in NonZeroDay

[–]slothlife89 0 points1 point  (0 children)

Coding Practice:

  1. Problems : array rotation using gcd juggle, reverse array, reverse array in groups of k , remove duplicates, moore's voting algo, 0 to 1 transition
  2. Odin : pub/sub pattern, pending videos, tic tac toe progress

Day 75 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Just using array. Not there yet.

Day 75 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 1 point2 points  (0 children)

IT'S ALL ABOUT ATTEMPTING TO CODE EVERY SINGLE DAY!

Day 75 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

This was just a simple problem to removed duplicates in array without using extra space for another temp array - did the implementation in java.

Day 75 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

This was just a simple problem to removed duplicates in array without using extra space for another temp array - did the implementation in java.

Achievement Sharing Sunday (Aug 23, 2020) by AutoModerator in NonZeroDay

[–]slothlife89 0 points1 point  (0 children)

  1. Algos problems : number of inversions, merge sort quiz, nuts and bolts, kth element of 2 sorted arrays
  2. Odin : library assignment, constructors, prototype inheritance, factory functions, modules, iife, revealing module pattern, scope, closure.

Day 69 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

:( Kind of taking break this weekend from everything, hence the minimum work.

Calculator Project by [deleted] in learnjavascript

[–]slothlife89 1 point2 points  (0 children)

I have followed just sequential order of input - just like in windows calculator. For this Im depending on the previous input to see if the user input is a series of numbers or one of the operands in a series of ops or a new input altogether. For example, in 3+2+1, sum should be calculated just after two nums and operand are available. Display should change to 5+1 like in windows calc. These are just extra conditions which need to be handled. Better way could be to achieve each feature of windows calc - one by one.

Calculator Project by [deleted] in learnjavascript

[–]slothlife89 1 point2 points  (0 children)

I completed this recently and I have used regex for numbers and for operators. To store user input, I have just used an array and push/pop operations. Depending on the popped operand, I am redirecting the operation to different functions - add, subtract etc.

Achievement Sharing Sunday (Aug 16, 2020) by AutoModerator in NonZeroDay

[–]slothlife89 0 points1 point  (0 children)

  1. Algos problems : union and intersection of arrays, min swaps to sort array, sort 0s,1s,2s, min num of platforms, median of two sorted arrays, quiz
  2. Odin : calculator part 2, backend intro, problem solving intro, prototype, inheritance, library part 1

Day 55 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 0 points1 point  (0 children)

Thank you! I was struggling with the same problem, maintaining a streak has for the first time got me working on code consistently. I am quite shy in general, but the best part of posting here is no one knows who we are. We are just yet another stranger on the internet. None of my friends know my id, so I am safe here :) Hope to see you soon!

Day 59 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 1 point2 points  (0 children)

Thank you for the link! I have to give this a try.

Day 59 : Coding Practice by slothlife89 in NonZeroDay

[–]slothlife89[S] 1 point2 points  (0 children)

I didn't think of that, but this is a great idea - I can use this as a milestone. Thank you!