Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Quick sort have worst-case complexity of O(N^2). The Array Size for the third testcase is 10^5. | |
| So, it's producing an O(10^10) Complexity. In 1 second only 10^8 instructions can pass. Hence, it's giving a TLE. | |
| Use the inbuilt Sort function in C++/Java/Python. It's optimised enough for most problems. | |
| by Shantanu Sinha - hackerearth/codemonk/binarysearch comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| "main function with iostream": { | |
| "prefix": "main2", | |
| "body": [ | |
| "#include <iostream>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public Result<string> GetOrderMargin() | |
| { | |
| string jsonString = $$""" | |
| { | |
| "uid":"{{loggedInUser.UserId}}", | |
| "actid":"{{loggedInUser.UserId}}", | |
| "exch":"NSE", | |
| "tsym":"ASHOKLEY-EQ", | |
| "qty":"1", | |
| "prc":"0.0", |