<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yajindra Gautam</title>
    <description>The latest articles on DEV Community by Yajindra Gautam (@yajindragautam).</description>
    <link>https://dev.to/yajindragautam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F766588%2F775b3e80-02ad-459f-a2fc-95b119ec3c92.jpeg</url>
      <title>DEV Community: Yajindra Gautam</title>
      <link>https://dev.to/yajindragautam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yajindragautam"/>
    <language>en</language>
    <item>
      <title>how to download tiktok video without watermark</title>
      <dc:creator>Yajindra Gautam</dc:creator>
      <pubDate>Thu, 09 Mar 2023 16:22:38 +0000</pubDate>
      <link>https://dev.to/yajindragautam/how-to-download-tiktok-video-without-watermark-1lc6</link>
      <guid>https://dev.to/yajindragautam/how-to-download-tiktok-video-without-watermark-1lc6</guid>
      <description>&lt;p&gt;There is my TikTok video downloader available on the internet. Not only that different android apps are also available to download tiktok videos.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dvjNxfgm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p7qgf76negpt4wl9sy7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dvjNxfgm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p7qgf76negpt4wl9sy7o.png" alt="thumbnail" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Following is the list of best tiktok videos downloader:&lt;/p&gt;

&lt;p&gt;a)     TiktokDownloaderWeb.come&lt;br&gt;
b)     Savetik.com&lt;br&gt;
c)     SnapTik.app&lt;br&gt;
d)     SSSTIK&lt;/p&gt;

&lt;p&gt;The above are some of the best tiktok downloads available on the internet. Let’ 's explain their feature. Among them, tiktokdownloaderweb.com is at the top of the list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://tiktokdownloaderweb.com/"&gt;a) TiktokDownloaderWeb.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tiktokdownloaderweb.com&lt;/strong&gt; is the best tiktok video downloader tool available on the internet. Why I am saying this because Tiktokdownloaderweb.com have very user-friendly user interference. &lt;/p&gt;

&lt;p&gt;Not only that this website does not have annoying ads. Users will not face any problems while downloading their tiktok videos.&lt;br&gt;
Just copy the tiktok video from the web or mobile visit &lt;a href="https://tiktokdownloaderweb.com/blogs/best-online-tiktok-video-downloders"&gt;Tiktokdownloaderweb.com&lt;/a&gt; pest that URL and click download. Within a second you can download any tiktok videos audio and video. Tiktokdownloaderweb.com gives you two options whether to download the audio of the tiktok video or download the video. Tiktokdownloaderweb.com has the feature of watermark removal while downloading tiktok videos.&lt;/p&gt;

&lt;p&gt;Therefore, you will not have to remove the logo after downloading tiktok video.&lt;/p&gt;

&lt;p&gt;Features:&lt;br&gt;
Download tiktok videos without a watermark.&lt;br&gt;
Completely free to the user.&lt;br&gt;
Save as many videos as you can.&lt;br&gt;
Download high-quality tiktok videos.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://savetik.co/en"&gt;&lt;strong&gt;b) Savetik.com&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SaveTik is a Tiktok video downloader without a watermark. Support downloading videos from Tiktok without a logo on computers, and phones (iPhone, Android) without installing support software.&lt;br&gt;
SaveTik.co is the best TikTok downloader, allowing you to download mp4 videos and mp3 music on Tiktok. Just paste the Tiktok video link in the input box on SaveTik and you can download any MP4, MP3 video from Tiktok and Douyin for free.&lt;/p&gt;

&lt;p&gt;Our Tiktok Downloader allows you to download videos from Tiktok and Douyin without the logo and User ID above and below the video like a normal download. Download Tiktok videos in .mp3, and .mp4 format for all devices (PC, Mac, Android, iOS).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://snaptik.app/"&gt;c)  SnapTik.app&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
TikTok video downloader is a free online service that helps you to download TikTok videos without a watermark. You can access it on desktop PCs, smartphones (Android, iPhone), iPad and tablets. and save a video as a high-definition MP4 or MP3 of the best quality.&lt;br&gt;
Go to the TikTok app or website, copy a video URL, and paste it into the above input box. Download a video of no watermark just with a few mouse clicks. The service is free and imposes no limit on the number of downloads. It is easy and safe since no software installation and registration are required.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ssstik.io/en"&gt;&lt;strong&gt;d) SSSTIK&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;
SSSTIK is one of the best Tiktok video downloaders. If you are looking for the best tiktok video then SSTIK is one of them. I have a simple and user-friendly UI and straightforward tiktok video downloading without a watermark.&lt;/p&gt;

&lt;p&gt;Benefits of SSSTIk:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Download the tiktok video without the watermark.&lt;/li&gt;
&lt;li&gt;Support for TikTok videos in mp4 format and audio in MP3&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>news</category>
      <category>motivation</category>
    </item>
    <item>
      <title>Best Online TikTok Video Downloaders Without Watermark</title>
      <dc:creator>Yajindra Gautam</dc:creator>
      <pubDate>Sat, 04 Mar 2023 14:27:23 +0000</pubDate>
      <link>https://dev.to/yajindragautam/best-online-tiktok-video-downloaders-without-watermark-28m9</link>
      <guid>https://dev.to/yajindragautam/best-online-tiktok-video-downloaders-without-watermark-28m9</guid>
      <description>&lt;p&gt;&lt;strong&gt;TiktokDownloaderWeb.com&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://tiktokdownloaderweb.com/"&gt;Tiktokdownloaderweb.com&lt;/a&gt; is the best tiktok video downloader tool available on the internet. Why I am saying this because Tiktokdownloaderweb.com have very user-friendly user interference. Not only that this website does not have annoying ads. Users will not face any problems while downloading their tiktok videos.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--u6PO6pgX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i29krqhsmsz69t87c4u5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--u6PO6pgX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i29krqhsmsz69t87c4u5.png" alt="thumbnail" width="880" height="495"&gt;&lt;/a&gt;&lt;br&gt;
Just copy the tiktok video from the web or mobile visit Tiktokdownloaderweb.com pest that URL and click download. Within a second you can download any tiktok videos audio and video. Tiktokdownloaderweb.com gives you two options whether to download the audio of the tiktok video or download the video. Tiktokdownloaderweb.com has the feature of watermark removal while downloading tiktok videos.&lt;/p&gt;

&lt;p&gt;Therefore, you will not have to remove the logo after downloading tiktok video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;br&gt;
Download tiktok videos without a watermark.&lt;br&gt;
Completely free to the user.&lt;br&gt;
Save as many videos as you can.&lt;br&gt;
Download high-quality tiktok videos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://tiktokdownloaderweb.com/"&gt;Click Here To Visist&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>news</category>
      <category>wordpress</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>CamelCase Hackerrank [Easy Solution]</title>
      <dc:creator>Yajindra Gautam</dc:creator>
      <pubDate>Tue, 11 Oct 2022 14:08:56 +0000</pubDate>
      <link>https://dev.to/yajindragautam/camelcase-hackerrank-easy-solution-eci</link>
      <guid>https://dev.to/yajindragautam/camelcase-hackerrank-easy-solution-eci</guid>
      <description>&lt;p&gt;&lt;strong&gt;Problem Description&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is a sequence of words in CamelCase as a string of letters, , having the following properties:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is a concatenation of one or more words consisting of English 
letters.&lt;/li&gt;
&lt;li&gt;All letters in the first word are lowercase.&lt;/li&gt;
&lt;li&gt;For each of the subsequent words, the first letter is uppercase 
and rest of the letters are lowercase.
Given , determine the number of words in .&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;s = "ontTwoThree"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There are  words in the string: 'one', 'Two', 'Three'.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Function Description&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Complete the camelcase function in the editor below.&lt;/p&gt;

&lt;p&gt;camelcase has the following parameter(s):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;string s: the string to analyze&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Returns&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;int: the number of words in s&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Input Format&lt;/p&gt;

&lt;p&gt;A single line containing string s .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sample Input&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;saveChangesInTheEditor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Sample Output&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Explanation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;String  contains five words:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;save&lt;/li&gt;
&lt;li&gt;Change&lt;/li&gt;
&lt;li&gt;In&lt;/li&gt;
&lt;li&gt;The&lt;/li&gt;
&lt;li&gt;Editor&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;My Solution&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function camelcase(s) {
    // Write your code here
     const strArr = s.split(/(?=[A-Z])/)
    return  strArr.length ;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Code Explanation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Firstly, I have split the given string not only that I have split string using REGEX &lt;code&gt;/(?=[A-Z])/&lt;/code&gt;. After splitting the length of array is returned.&lt;/p&gt;

&lt;p&gt;Hope this post is helpful. I share my knowledge and teach people about programming and we have more than 12k &lt;a href="https://www.instagram.com/codewithyaji/"&gt;@codewithyahi &lt;/a&gt;Instagram family.&lt;/p&gt;

&lt;p&gt;Since you enjoyed reading my blog, why not buy me a coffee and support my work here!! &lt;a href="https://www.buymeacoffee.com/yajindra"&gt;https://www.buymeacoffee.com/yajindra☕&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Maximum Number of Words Found in Sentences</title>
      <dc:creator>Yajindra Gautam</dc:creator>
      <pubDate>Tue, 20 Sep 2022 07:13:18 +0000</pubDate>
      <link>https://dev.to/yajindragautam/maximum-number-of-words-found-in-sentences-5f58</link>
      <guid>https://dev.to/yajindragautam/maximum-number-of-words-found-in-sentences-5f58</guid>
      <description>&lt;p&gt;&lt;strong&gt;Maximum Number of Words Found in Sentences&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A sentence is a list of words that are separated by a single space with no leading or trailing spaces.&lt;/p&gt;

&lt;p&gt;You are given an array of strings sentences, where each sentences[i] represents a single sentence.&lt;/p&gt;

&lt;p&gt;Return the maximum number of words that appear in a single sentence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 1:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Input: sentences = ["alice and bob love leetcode", "i think so too", "this is great thanks very much"]
Output: 6
Explanation: 
- The first sentence, "alice and bob love leetcode", has 5 words in total.
- The second sentence, "i think so too", has 4 words in total.
- The third sentence, "this is great thanks very much", has 6 words in total.
Thus, the maximum number of words in a single sentence comes from the third sentence, which has 6 words.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example 2:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: sentences = ["please wait", "continue to fight", "continue to win"]
Output: 3
Explanation: It is possible that multiple sentences contain the same number of words. 
In this example, the second and third sentences (underlined) have the same number of words.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Constraints:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;1 &amp;lt;= sentences.length &amp;lt;= 100&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;1 &amp;lt;= sentences[i].length &amp;lt;= 100&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sentences[i]&lt;/code&gt; consists only of lowercase English letters and 
&lt;code&gt;' '&lt;/code&gt; only.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sentences[i]&lt;/code&gt; does not have leading or trailing spaces.&lt;/li&gt;
&lt;li&gt;All the words in &lt;code&gt;sentences[i]&lt;/code&gt; are separated by a single space.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The approach I have used here is the simplest, first I splice() it user forEach loop to fetch a sentence and spit it to count the words in it. Then compare it with temp.&lt;br&gt;
If sentence length is greater than the temp then I keep swiping the value until the maximum word is found.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The code is given below :&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var mostWordsFound = function(sentences) {
     const splitedArray = sentences.splice(',');
    let temp = 0;
    splitedArray.forEach((sentance, i) =&amp;gt; {
        if(sentance.split(' ').length &amp;gt; temp){
              temp = sentance.split(' ').length;
        }
    });

    return temp;
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Time Complexity: O(n)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Space Complexity: O(1)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Following is my code runtime and memory usage&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--29qvkFGC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atohs6yz5bk14c83aztd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--29qvkFGC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atohs6yz5bk14c83aztd.png" alt="Image description" width="774" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Runtime And Memory Usage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope this post is helpful. I share my knowledge and teach people about programming and we have more than 12k &lt;a href="https://www.instagram.com/codewithyaji/"&gt;@codewithyahi &lt;/a&gt;Instagram family.&lt;/p&gt;

&lt;p&gt;Since you enjoyed reading my blog, why not buy me a coffee and support my work here!! &lt;a href="https://www.buymeacoffee.com/yajindra"&gt;https://www.buymeacoffee.com/yajindra☕&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>leetcode</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Final Value of Variable After Performing Operations</title>
      <dc:creator>Yajindra Gautam</dc:creator>
      <pubDate>Sat, 17 Sep 2022 13:15:59 +0000</pubDate>
      <link>https://dev.to/yajindragautam/final-value-of-variable-after-performing-operations-412n</link>
      <guid>https://dev.to/yajindragautam/final-value-of-variable-after-performing-operations-412n</guid>
      <description>&lt;p&gt;&lt;strong&gt;Final Value of Variable After Performing Operations&lt;br&gt;
(LeetCode easy problem)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is a programming language with only four operations and one variable X:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;++X and X++ increments the value of the variable X by 1.
--X and X-- decrements the value of the variable X by 1.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Initially, the value of X is 0.&lt;/p&gt;

&lt;p&gt;Given an array of strings operations containing a list of operations, return the final value of X after performing all the operations.&lt;br&gt;
&lt;strong&gt;Example 1:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Input: operations = ["--X","X++","X++"]
Output: 1
Explanation: The operations are performed as follows:
Initially, X = 0.
--X: X is decremented by 1, X =  0 - 1 = -1.
X++: X is incremented by 1, X = -1 + 1 =  0.
X++: X is incremented by 1, X =  0 + 1 =  1.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example 2:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: operations = ["++X","++X","X++"]
Output: 3
Explanation: The operations are performed as follows:
Initially, X = 0.
++X: X is incremented by 1, X = 0 + 1 = 1.
++X: X is incremented by 1, X = 1 + 1 = 2.
X++: X is incremented by 1, X = 2 + 1 = 3.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example 3:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: operations = ["X++","++X","--X","X--"]
Output: 0
Explanation: The operations are performed as follows:
Initially, X = 0.
X++: X is incremented by 1, X = 0 + 1 = 1.
++X: X is incremented by 1, X = 1 + 1 = 2.
--X: X is decremented by 1, X = 2 - 1 = 1.
X--: X is decremented by 1, X = 1 - 1 = 0.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Constraints:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1 &amp;lt;= &lt;code&gt;operations.length &amp;lt;= 100&lt;/code&gt; &lt;code&gt;operations[i]&lt;/code&gt; will be either &lt;code&gt;"++X", "X++", "--X", or "X--"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The approach I have used here is the simplest, in case I encounter "++X" or "X++" I will simply increment the value of x, if I get, or "X--" I will simply decrement the value. In case I encounter anything else I will simply continue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The code is given below :&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var finalValueAfterOperations = function(operations) {
 let num = 0;
    operations.forEach((operation, i)=&amp;gt;{
         num = operation === '--X' || operation === 'X--'  ?  num - 1  : operation === 'X++' ||  operation === '++X' ? num + 1  : 0;

    })
    return num;
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**Time Complexity: O(n)&lt;/p&gt;

&lt;p&gt;Space Complexity: O(1)**&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4di8mt3izv0l84502gzh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4di8mt3izv0l84502gzh.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Runtime And Memory Usage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope this post is helpful. I share my knowledge and teach people about programming and we have more than 12k &lt;a href="https://www.instagram.com/codewithyaji/" rel="noopener noreferrer"&gt;@codewithyahi &lt;/a&gt;Instagram family.&lt;/p&gt;

&lt;p&gt;Since you enjoyed reading my blog, why not buy me a coffee and support my work here!! &lt;a href="https://www.buymeacoffee.com/yajindra" rel="noopener noreferrer"&gt;https://www.buymeacoffee.com/yajindra☕&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
