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 class Jewel | |
{ | |
public int Weight { get; set; } | |
public int Value { get; set; } | |
} | |
public static int KnapSack(int bagCapacity, List jewels) | |
{ | |
var itemCount = jewels.Count; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
//A* Search Pathfinding Example from : https://dotnetcoretutorials.com/2020/07/25/a-search-pathfinding-algorithm-in-c/ | |
namespace PathfindingExample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |