Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bf89e0d

Browse files
Update README.md
1 parent 2d4ae85 commit bf89e0d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

‎README.md‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
| Given a string, find the first non-repeating character in it. For example, if the input string is "GeeksforGeeks", then output should be ‘f’ and if input string is "GeeksQuiz", then output should be ‘G’. | [first_unique_letter.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/first_unique_letter.py) |
3333
| Write a function that given a list of non negative integers, arranges them such that they form the largest possible number. For example, given [50, 2, 1, 9], the largest formed number is 95021 | [gen_largest_num_frm_list.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/gen_largest_num_frm_list.py) |
3434
| Tree Data Structure in Python | [general_tree_structure.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/general_tree_structure.py) |
35-
| Given the arrival and departure times of all trains that reach a railway station, the task is to find the minimum number of platforms required for the railway station so that no train waits.
36-
We are given two arrays that represent the arrival and departure times of trains that stop. | [getMinPlatforms.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/getMinPlatforms.py) |
35+
| Given the arrival and departure times of all trains that reach a railway station, the task is to find the minimum number of platforms required for the railway station so that no train waits.<br /><br />We are given two arrays that represent the arrival and departure times of trains that stop.| [getMinPlatforms.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/getMinPlatforms.py) |
3736
| Print duplicate characters in a string | [get_dup_chars.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/get_dup_chars.py) |
3837
| Check if a given array has zero sum sub array | [hasZeroSumSubArray.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/hasZeroSumSubArray.py) |
3938
| Given a string, check if it only contains digits | [has_only_digits.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/has_only_digits.py) |
@@ -54,8 +53,7 @@ We are given two arrays that represent the arrival and departure times of trains
5453
| Implement Level Order traversal for a binary tree | [level_order_tree.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/level_order_tree.py) |
5554
| Linked List Data Structure | [linked_list_data_structure.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/linked_list_data_structure.py) |
5655
| Detect if a linked list has a loop | [loop_in_linkedlist.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/loop_in_linkedlist.py) |
57-
| Find the Lowest Common ancestor between two nodes in a binary search tree. Let T be a rooted tree. The lowest common ancestor between two nodes n1 and n2 is defined as the lowest node in T that has both n1 and n2 as descendants (where we allow a node to be a descendant of itself).
58-
The LCA of n1 and n2 in T is the shared ancestor of n1 and n2 that is located farthest from the root. | [lowest_common_ancestor.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/lowest_common_ancestor.py) |
56+
| Find the Lowest Common ancestor between two nodes in a binary search tree. Let T be a rooted tree. The lowest common ancestor between two nodes n1 and n2 is defined as the lowest node in T that has both n1 and n2 as descendants (where we allow a node to be a descendant of itself).<br /><br />The LCA of n1 and n2 in T is the shared ancestor of n1 and n2 that is located farthest from the root. | [lowest_common_ancestor.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/lowest_common_ancestor.py) |
5957
| A majority element in an array A[] of size n is an element that appears more than n/2 times. Find the majority element in the given array. | [majority_element.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/majority_element.py) |
6058
| Find the max number in an array without using built-in functions | [max_in_array.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/max_in_array.py) |
6159
| Given a list of positive and negative numbers, find the maximum subarray sum. Constraint: Solve it in O(n) | [maximum_subarray_sum.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/maximum_subarray_sum.py) |
@@ -86,9 +84,7 @@ The LCA of n1 and n2 in T is the shared ancestor of n1 and n2 that is located fa
8684
| Given a sorted array in which all elements appear twice (one after one) and one element appears only once. Find that element Constraints: in O(log n) complexity. | [search_unique.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/search_unique.py) |
8785
| A simple implementation of Selection Sort | [selection_sort.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/selection_sort.py) |
8886
| A simple implementation of Stack Data Structure | [stack_data_structure.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/stack_data_structure.py) |
89-
| The span Si of the stock’s price on a given day i is defined as the maximum number of consecutive days just before the given day, for which the price of the stock on the current day is less than or equal to its price on the given day.<br>
90-
91-
Problem: We have a series of n daily price quotes for a stock and we need to calculate span of stock’s price for all n days | [stock_span.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/stock_span.py) |
87+
| The span Si of the stock’s price on a given day i is defined as the maximum number of consecutive days just before the given day, for which the price of the stock on the current day is less than or equal to its price on the given day.<br /><br />Problem: We have a series of n daily price quotes for a stock and we need to calculate span of stock’s price for all n days | [stock_span.py](https://github.com/devAmoghS/Python-Interview-Problems-for-Practice/blob/master/stock_span.py) |
9288
| | []() |
9389
| | []() |
9490
| | []() |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /