---
title: "#codewithexplanation articles | Hashnode"
description: "Explore 4 articles tagged #codewithexplanation on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/codewithexplanation"
---

Tag

# #codewithexplanation

4 posts · 0 followers

[Sirisha Challagiri](https://hashnode.com/@Siri2316) · [Nov 22, 2023](https://hashnode.com/posts/1859-sorting-the-sentence/655e2a15f383449bb10b0673)

### [1859\. Sorting the Sentence](https://sirishachallagiri.hashnode.dev/1859-sorting-the-sentence?utm_source=hashnode&utm_medium=feed)

A sentence is a list of words that are separated by a single space with no leading or trailing spaces. Each word consists of lowercase and uppercase English letters. A sentence can be shuffled by appending the 1-indexed word position to each word and...

3 min read · [sirishachallagiri.hashnode.dev](https://sirishachallagiri.hashnode.dev/1859-sorting-the-sentence?utm_source=hashnode&utm_medium=feed)

[Sirisha Challagiri](https://hashnode.com/@Siri2316) · [Nov 21, 2023](https://hashnode.com/posts/1528-shuffle-string/655c780d59125b313dd34340)

### [1528\. Shuffle String](https://sirishachallagiri.hashnode.dev/1528-shuffle-string?utm_source=hashnode&utm_medium=feed)

You are given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the i<sup>th</sup> position moves to indices\[i\] in the shuffled string. Return the shuffled string. Example 1: Example...

3 min read · [sirishachallagiri.hashnode.dev](https://sirishachallagiri.hashnode.dev/1528-shuffle-string?utm_source=hashnode&utm_medium=feed)

[Sirisha Challagiri](https://hashnode.com/@Siri2316) · [Nov 15, 2023](https://hashnode.com/posts/factorial-of-a-number/6554b1428a06110e9c48e1a2)

### [Factorial of a number](https://sirishachallagiri.hashnode.dev/factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

Factorial of a non-negative number is the multiplication of all positive numbers that are smaller than are equal to n. Formula: n! = n\*(n-1)\\(n-2)\*... 2\\1 n=5 => 5\*4\*3\*2\*1 n=5 => 1\*2\*3\*4\*5 factorial of 5 is 120 0! = 1 Factorial using for loop: public...

2 min read · [sirishachallagiri.hashnode.dev](https://sirishachallagiri.hashnode.dev/factorial-of-a-number?utm_source=hashnode&utm_medium=feed)

[Sirisha Challagiri](https://hashnode.com/@Siri2316) · [Nov 11, 2023](https://hashnode.com/posts/swapping-of-two-numbers/654fb528f0b786cf5eff4c6c)

### [Swapping of two numbers](https://sirishachallagiri.hashnode.dev/swapping-of-two-numbers?utm_source=hashnode&utm_medium=feed)

swapping two numbers by using a temporary variable public class Swap { public static void main(String\[\] args) { int a=10,b=20; System.out.println("Before swapping: a="+a+",b="+b); int temp = a; a = b; b=temp; System.err.prin...

1 min read · [sirishachallagiri.hashnode.dev](https://sirishachallagiri.hashnode.dev/swapping-of-two-numbers?utm_source=hashnode&utm_medium=feed)
