(i) We have three points: [1,2] [3,4] [4,5]. Now all the points are sorted based on x co-ordinates. …
Who doesn’t like earning extra money apart from getting salary from 9 to 5 job. Well, don’t know your case but I do and that’s the reason I trade in options. But if you have little bit knowledge about options, then you know how risky options can get, 1 option trade could either get you a Lamborghini or get you on streets. But don’t worry, the strategy that we are gonna look into here is less risky and if you get the maths right, then you can earn a constant flow of cash every week.
The strategy that I use to decrease the risk of my trades is — Credit Spreads. …
Have you ever come across a situation where you write code, ask it to perform something and when you look at the output, you realize this is not what you wanted and why is it behaving in a different manner.
Something similar happened with me, let me state the problem statement first.
Disclaimer:- This article assumes you have prior knowledge of Node.js and Google Firestore.
I have a list of categories of my shopping list with me and I have all the orders present inside my google firestore database. …
It’s easy to think of passive income as money earned while sitting on a beach sipping mojitos, but there is lots of work involved. So let’s not waste any more time and get onto this journey.
I personally feel everyone should start planning early for a way to implement a passive income source as passive income can be a great supplementary source of funds for many people and it can prove to be an especially valuable lifeline during a recession or during other tough times, such as the government lockdown imposed in response to the coronavirus pandemic.
In today’s article, I will share my initial efforts towards finding different sources of passive income. …
Let’s jump into the question and look at the bullet points for what the problem is asking from us.
1. Given a String with lowercase letter, numbers and dashes, split the string into groups of length K.
2. First group can be of any length less than K but can’t be zero.
3. Place dash between each group in the final string.
4. Covert any lowercase letters into uppercase letters in the final string.
Now that the problem statement is clear to us, let’s jump into the solution.
Before jumping into the algorithm, let’s discuss the main logic of the question. We are given a string of length N and we need to split it into different groups, each of length K. …
Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity.
Ok now without wasting any more time, let’s get onto the topic.
Install required Dependencies
Create a folder with any name and run the command
npm init . That will create a package.json file and few other config related files. Now, to install dependencies, run the below command inside the folder that you just created. …
The foundation of Unitechie is sharing knowledge and helping each other grow as a community. We will outline the steps to have your articles be co-published on Unitechie. Be sure to follow the us to help support our community of authors which we hope you choose to be a part of.
Given a binary tree, return the bottom-up level order traversal of its nodes values. (ie, from left to right, level by level from leaf to root).
For example: Given Below binary tree
Leetcode has a monthly challenge going on, where every day for the month of July, they will release one question a day and each individual will have 24 hours to come up with a solution. So, I decided to take this opportunity and improve my coding skills by solving one question a day and share my approach and ideas with all my medium family.
Below you can find the link for the challenge.
Firebase provides us with a storage mechanism, where we can create different buckets (in short rooms) to store a variety of items.
For example, one bucket can be used to store cat images, another bucket can be to store dog images. In short, you can store any kind of files onto Firebase storage.
To read on how one can upload a file to Firebase storage in Node.js , below is the link to the article.
Because Firebase Cloud Storage is a powerful yet easy-to-use tool for storing all sorts of objects. …