You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsa-solutions/gfg-solutions/Easy problems/Square-Root.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
---
2
+
---
2
3
id: square-root
3
4
title: Square Root
4
5
sidebar_label: Square-Root
@@ -190,4 +191,4 @@ class Solution {
190
191
The provided solutions efficiently find the floor value of the square root of a given integer `x` using binary search. This approach ensures a time complexity of $ O(log N) and an auxiliary space complexity of $O(1)$. The algorithms are designed to handle large values of `x` up to 10^7 efficiently without relying on built-in square root functions.
Copy file name to clipboardExpand all lines: dsa-solutions/lc-solutions/0000-0099/0001-two-sum.md
+54-54
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,13 @@ tags:
7
7
- Hash Table
8
8
- Two Pointer
9
9
- Array
10
-
- LeetCode
11
10
- JavaScript
12
11
- TypeScript
13
12
description: "This is a solution to the Two Sum problem on LeetCode."
14
13
sidebar_position: 1
15
14
---
16
15
17
-
In this tutorial, we will solve the Two Sum problem using three different approaches: brute force, hash table, and two-pointer technique. We will provide the implementation of the solution in JavaScript, TypeScript, Python, Java, C++, and more.
16
+
In this tutorial, we will solve the Two Sum problem using three different approaches:brute force, hash table, and two-pointer technique. We will provide the implementation of the solution in JavaScript, TypeScript, Python, Java, C++, and more.
18
17
19
18
## Problem Description
20
19
@@ -441,28 +440,28 @@ function twoSumProblem() {
441
440
<TabItem value="TypeScript" label="TypeScript">
442
441
<SolutionAuthor name="@ajay-dhangar"/>
443
442
444
-
```ts
445
-
function twoSum(nums: number[], target: number): number[] {
0 commit comments