Day 10 of June LeetCode Challenge

Aanchal Patial

Aanchal Patial

·

Follow

1 min read
·
Jun 10, 2020

--

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

You may assume no duplicates in the array.

Leetcode
Algorithms
Data Structures
Binary Search

--

--

Aanchal Patial

Written by Aanchal Patial

13 Followers

We never really grow up, we only learn how to act in public

More from Aanchal Patial

Aanchal Patial

Aanchal Patial

Day 27 of July LeetCode Challenge

Given inorder and postorder traversal of a tree, construct the binary tree.

1 min read·Jul 27, 2020

--

Aanchal Patial

Aanchal Patial

Day 25 of July LeetCode Challenge

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

1 min read·Jul 26, 2020

--

Aanchal Patial

Aanchal Patial

Day 26 of July LeetCode Challenge

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

1 min read·Jul 26, 2020

--

Aanchal Patial

Aanchal Patial

Day 24 of July LeetCode Challenge

Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order.

1 min read·Jul 24, 2020

--

See all from Aanchal Patial

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech